Trouble With This

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Osmosis
Posts: 2
Joined: Thu Jun 01, 2006 9:57 pm

Trouble With This

Post by Osmosis »

I have read everything four times, and I have no idea what im doing.

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>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please refer to the last link of my signature for a walkthrough. If in doubt, please re-post your snmpwalk with option -O n
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests