PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/opennms-base-assembly/src/main/filtered/etc/examples/devices/motorola_cpei_150_wimax_gateway/http-datacollection-config.xml

https://github.com/ajakubo1/opennms
XML | 60 lines | 52 code | 2 blank | 6 comment | 0 complexity | 795e81ae35992a06000800673251b324 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<http-datacollection-config  
 3    xmlns:http-dc="http://xmlns.opennms.org/xsd/config/http-datacollection" 
 4    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 5    xsi:schemaLocation="http://xmlns.opennms.org/xsd/config/http-datacollection http://www.opennms.org/xsd/config/http-datacollection-config.xsd" 
 6    rrdRepository="/opt/opennms/share/rrd/snmp/" >
 7
 8<!--
 9    This collection is for gathering operational statistics from the web UI of
10    a Motorola CPEi 150 WiMAX gateway.  It assumes that the manufacturer default
11    password "motorola" is set.  If your gateway has a different password, you
12    must change the value of the "login:command/password" parameter.
13-->
14
15  <http-collection name="cpei25150-stats">
16    <rrd step="30">
17      <rra>RRA:AVERAGE:0.5:1:8928</rra>
18      <rra>RRA:AVERAGE:0.5:12:8784</rra>
19      <rra>RRA:MIN:0.5:12:8784</rra>
20      <rra>RRA:MAX:0.5:12:8784</rra>
21    </rrd>
22    <uris>
23      <uri name="clear-stats">
24        <url path="/cgi-bin/webcm" method="POST"
25             user-agent="Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18" 
26             matches="(?s).*uphours\s*=\s*new\s+String.*?(\d+).*?upmins\s*=\s*new\s+String.*?(\d+).*?WiMAX\s+Radio\s+Temperature:.*?(\d+)\s+C.*?WiMAX\s+RSSI:.*?(-?[0-9]+)\s+dBm.*?WiMAX\s+CINR:.*?(-?[0-9]+)\s+dB.*?WiMAX\s+Downlink\s+Throughput:.*?([0-9]+)\s+kbps.*?WiMAX\s+Uplink\s+Throughput:.*?([0-9]+)\s+kbps.*?WiMAX\s+Packets\s+Received:.*?([0-9]+).*?WiMAX\s+Packets\s+Sent:.*?([0-9]+).*?WiMAX\s+Connection\s+Up\s+Time:.*?(\d+)\s*day\s+(\d+)\s*hr\s+(\d+)\s*min\s+(\d+)\s*sec.*" response-range="100-399" >
27          <parameters>
28            <parameter key="var:main" value="menu" />
29            <parameter key="var:style" value="style5" />
30            <parameter key="getpage"   value="/usr/www_safe/html/defs/style5/menus/menu.html" />
31            <parameter key="errorpage" value="/usr/www/index.html" />
32            <parameter key="var:pagename" value="status_network" />
33            <parameter key="var:errorpagename" value="status_network" />
34            <parameter key="var:menu" value="status" />
35            <parameter key="var:menutitle" value="Status" />
36            <parameter key="var:pagetitle" value="Network" />
37            <parameter key="var:pagemaster" value="status_network" />
38            <parameter key="login:command/username" value="router" />
39            <parameter key="login:command/password" value="CLEAR123" /><!-- Factory default is "motorola" -->
40          </parameters>
41        </url>
42        <attributes>
43          <attrib alias="cpei150DevUpHr"    match-group="1"  type="gauge32"/>
44          <attrib alias="cpei150DevUpMin"   match-group="2"  type="gauge32"/>
45          <attrib alias="cpei150RadioTemp"  match-group="3"  type="gauge32"/>
46          <attrib alias="cpei150RSSI"       match-group="4"  type="gauge32"/>
47          <attrib alias="cpei150CINR"       match-group="5"  type="gauge32"/>
48          <attrib alias="cpei150ThrputDown" match-group="6"  type="gauge32"/>
49          <attrib alias="cpei150ThrputUp"   match-group="7"  type="gauge32"/>
50          <attrib alias="cpei150PktsRx"     match-group="8"  type="counter32"/>
51          <attrib alias="cpei150PktsTx"     match-group="9"  type="counter32"/>
52          <attrib alias="cpei150ConnUpDay"  match-group="10" type="gauge32"/>
53          <attrib alias="cpei150ConnUpHr"   match-group="11" type="gauge32"/>
54          <attrib alias="cpei150ConnUpMin"  match-group="12" type="gauge32"/>
55          <attrib alias="cpei150ConnUpSec"  match-group="13" type="gauge32"/>
56        </attributes>
57      </uri>
58    </uris>
59  </http-collection>
60</http-datacollection-config>