I have a some snmp data that i want graphed. Each index as a new line. Is there any general info to get me started, or someone could possibly help me out.
Basically I need to graph Each extNames and extOutput as a line on a graph.
So I would have 1 graph, with 5 lines.
Here is my values.
Code: Select all
snmpwalk -c public 127.0.0.1 .1.3.6.1.4.1.2021.8.1
UCD-SNMP-MIB::extIndex.1 = INTEGER: 1
UCD-SNMP-MIB::extIndex.2 = INTEGER: 2
UCD-SNMP-MIB::extIndex.3 = INTEGER: 3
UCD-SNMP-MIB::extIndex.4 = INTEGER: 4
UCD-SNMP-MIB::extIndex.5 = INTEGER: 5
UCD-SNMP-MIB::extNames.1 = STRING: noerror
UCD-SNMP-MIB::extNames.2 = STRING: servfail
UCD-SNMP-MIB::extNames.3 = STRING: notimp
UCD-SNMP-MIB::extNames.4 = STRING: refused
UCD-SNMP-MIB::extNames.5 = STRING: nxdomain
UCD-SNMP-MIB::extCommand.1 = STRING: /usr/local/share/cacti/scripts/dns-stats.sh noerror
UCD-SNMP-MIB::extCommand.2 = STRING: /usr/local/share/cacti/scripts/dns-stats.sh servfail
UCD-SNMP-MIB::extCommand.3 = STRING: /usr/local/share/cacti/scripts/dns-stats.sh notimp
UCD-SNMP-MIB::extCommand.4 = STRING: /usr/local/share/cacti/scripts/dns-stats.sh refused
UCD-SNMP-MIB::extCommand.5 = STRING: /usr/local/share/cacti/scripts/dns-stats.sh nxdomain
UCD-SNMP-MIB::extResult.1 = INTEGER: 0
UCD-SNMP-MIB::extResult.2 = INTEGER: 0
UCD-SNMP-MIB::extResult.3 = INTEGER: 0
UCD-SNMP-MIB::extResult.4 = INTEGER: 0
UCD-SNMP-MIB::extResult.5 = INTEGER: 0
UCD-SNMP-MIB::extOutput.1 = STRING: 22
UCD-SNMP-MIB::extOutput.2 = STRING: 0
UCD-SNMP-MIB::extOutput.3 = STRING: 0
UCD-SNMP-MIB::extOutput.4 = STRING: 5805
UCD-SNMP-MIB::extOutput.5 = STRING: 4
UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0
UCD-SNMP-MIB::extErrFix.2 = INTEGER: 0
UCD-SNMP-MIB::extErrFix.3 = INTEGER: 0
UCD-SNMP-MIB::extErrFix.4 = INTEGER: 0
UCD-SNMP-MIB::extErrFix.5 = INTEGER: 0
UCD-SNMP-MIB::extErrFixCmd.1 = STRING:
UCD-SNMP-MIB::extErrFixCmd.2 = STRING:
UCD-SNMP-MIB::extErrFixCmd.3 = STRING:
UCD-SNMP-MIB::extErrFixCmd.4 = STRING:
UCD-SNMP-MIB::extErrFixCmd.5 = STRING:
Code: Select all
<interface>
<name>Get BIND Statistics via SNMP</name>
<description>Queries a host for a list of zones</description>
<oid_index>.1.3.6.1.4.1.2021.8.1</oid_index>
<fields>
<bindIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.8.1.1</oid>
</bindIndex>
<bindMethod>
<name>Query Type</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.8.1.2</oid>
</bindMethod>
<bindCount>
<name>Successful Query Count</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.8.1.101</oid>
</bindCount>
</fields>
</interface>