I'm trying to create some graphs for some NewTec modems we have running in our environment. So far I've created the following XML:
Code: Select all
<interface>
<name>NewTec</name>
<description>Getting SNMP values from NewTec modems</description>
<oid_index>1.3.6.1.4.1.5835.3.1.13.1.50.1</oid_index>
<index_order_type>numeric</index_order_type>
<fields>
<DmMeasEsNo>
<name>Es/No estimation</name>
<method>walk</method>
<source>VALUE/REGEXP:^0,(.*)$</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.5835.3.1.13.1.50.1</oid>
</DmMeasEsNo>
<MoOutLevelDet>
<name>Modulator output level measurement</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.5835.3.1.3.1.75.1.1</oid>
</MoOutLevelDet>
<DmMeasAGC>
<name>Receive level</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.5835.3.1.13.1.15.1</oid>
</DmMeasAGC>
<DmEstLinMar>
<name>Link margin</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.5835.3.1.13.1.32.1.1</oid>
</DmEstLinMar>
<MoOutputLevel>
<name>Output level</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.5835.3.1.3.1.29.1.1</oid>
</MoOutputLevel>
</fields>
</interface>
Here's the values I'm interested in:
MoOutLevelDet : 1.3.6.1.4.1.5835.3.1.3.1.75.1.1
MoOutputLevel : 1.3.6.1.4.1.5835.3.1.3.1.29.1.1.[1 .. 2]
DmMeasAGC: 1.3.6.1.4.1.5835.3.1.13.1.15.1.1
DmMeasEsNo: 1.3.6.1.4.1.5835.3.1.13.1.50.1
DmEstLinMar: 1.3.6.1.4.1.5835.3.1.13.1.32.1.1
And here's the example when doing snmpwalk from the command line:
Code: Select all
$ snmpwalk -Os -c public -v 1 10.1.1.23 1.3.6.1.4.1.5835.3.1.13.1.50.1
iso.3.6.1.4.1.5835.3.1.13.1.50.1.1 = STRING: "0,13.25"
$ snmpwalk -Os -c public -v 1 10.1.1.23 1.3.6.1.4.1.5835.3.1.3.1.75.1.1
iso.3.6.1.4.1.5835.3.1.3.1.75.1.1 = STRING: "-11.9"
$ snmpwalk -Os -c public -v 1 10.1.1.23 1.3.6.1.4.1.5835.3.1.13.1.15.1
iso.3.6.1.4.1.5835.3.1.13.1.15.1.1 = STRING: "-28.76"
$ snmpwalk -Os -c public -v 1 10.1.1.23 1.3.6.1.4.1.5835.3.1.13.1.32.1.1
iso.3.6.1.4.1.5835.3.1.13.1.32.1.1 = STRING: "0.83"
$ snmpwalk -Os -c public -v 1 10.1.1.23 1.3.6.1.4.1.5835.3.1.3.1.29.1.1
iso.3.6.1.4.1.5835.3.1.3.1.29.1.1.1 = STRING: "-12.5"
iso.3.6.1.4.1.5835.3.1.3.1.29.1.1.2 = STRING: "ERROR:DATA SYNTAX"
Code: Select all
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/newtec.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '1.3.6.1.4.1.5835.3.1.13.1.50.1'
+ Index found at OID: '1.3.6.1.4.1.5835.3.1.13.1.50.1.1' value: '0,13.23'
+ Located input field 'DmMeasEsNo' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.5835.3.1.13.1.50.1'
+ Found item [DmMeasEsNo='13.22'] index: 1 [from regexp value parse]
+ Located input field 'MoOutLevelDet' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.5835.3.1.3.1.75.1.1'
+ Located input field 'DmMeasAGC' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.5835.3.1.13.1.15.1'
+ Found item [DmMeasAGC='-28.77'] index: 1 [from value]
+ Located input field 'DmEstLinMar' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.5835.3.1.13.1.32.1.1'
+ Located input field 'MoOutputLevel' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.5835.3.1.3.1.29.1.1'
+ Found item [MoOutputLevel='-12.5'] index: 1 [from value]
+ Found item [MoOutputLevel='ERROR:DATA SYNTAX'] index: 2 [from value]
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/newtec.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/newtec.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/newtec.xml'