/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. This collection is for gathering operational statistics from the web UI of
  9. a Motorola CPEi 150 WiMAX gateway. It assumes that the manufacturer default
  10. password "motorola" is set. If your gateway has a different password, you
  11. must change the value of the "login:command/password" parameter.
  12. -->
  13. <http-collection name="cpei25150-stats">
  14. <rrd step="30">
  15. <rra>RRA:AVERAGE:0.5:1:8928</rra>
  16. <rra>RRA:AVERAGE:0.5:12:8784</rra>
  17. <rra>RRA:MIN:0.5:12:8784</rra>
  18. <rra>RRA:MAX:0.5:12:8784</rra>
  19. </rrd>
  20. <uris>
  21. <uri name="clear-stats">
  22. <url path="/cgi-bin/webcm" method="POST"
  23. 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"
  24. 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" >
  25. <parameters>
  26. <parameter key="var:main" value="menu" />
  27. <parameter key="var:style" value="style5" />
  28. <parameter key="getpage" value="/usr/www_safe/html/defs/style5/menus/menu.html" />
  29. <parameter key="errorpage" value="/usr/www/index.html" />
  30. <parameter key="var:pagename" value="status_network" />
  31. <parameter key="var:errorpagename" value="status_network" />
  32. <parameter key="var:menu" value="status" />
  33. <parameter key="var:menutitle" value="Status" />
  34. <parameter key="var:pagetitle" value="Network" />
  35. <parameter key="var:pagemaster" value="status_network" />
  36. <parameter key="login:command/username" value="router" />
  37. <parameter key="login:command/password" value="CLEAR123" /><!-- Factory default is "motorola" -->
  38. </parameters>
  39. </url>
  40. <attributes>
  41. <attrib alias="cpei150DevUpHr" match-group="1" type="gauge32"/>
  42. <attrib alias="cpei150DevUpMin" match-group="2" type="gauge32"/>
  43. <attrib alias="cpei150RadioTemp" match-group="3" type="gauge32"/>
  44. <attrib alias="cpei150RSSI" match-group="4" type="gauge32"/>
  45. <attrib alias="cpei150CINR" match-group="5" type="gauge32"/>
  46. <attrib alias="cpei150ThrputDown" match-group="6" type="gauge32"/>
  47. <attrib alias="cpei150ThrputUp" match-group="7" type="gauge32"/>
  48. <attrib alias="cpei150PktsRx" match-group="8" type="counter32"/>
  49. <attrib alias="cpei150PktsTx" match-group="9" type="counter32"/>
  50. <attrib alias="cpei150ConnUpDay" match-group="10" type="gauge32"/>
  51. <attrib alias="cpei150ConnUpHr" match-group="11" type="gauge32"/>
  52. <attrib alias="cpei150ConnUpMin" match-group="12" type="gauge32"/>
  53. <attrib alias="cpei150ConnUpSec" match-group="13" type="gauge32"/>
  54. </attributes>
  55. </uri>
  56. </uris>
  57. </http-collection>
  58. </http-datacollection-config>