Some help with a smnp query

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
M@tth3w
Posts: 13
Joined: Tue Feb 10, 2009 4:22 am

Some help with a smnp query

Post by M@tth3w »

Below is a copy of the XML I've made and the output from a verbose query.

I attempted to adapt this from the example in the documentation. It's supposed to get the data from an IIS6 box, the bottom section is the information stored in each OID. If I go to create a graph for the host, each of these OID's seem to be listed, but had the name of the actual value within them :-?

I'm clearly making a glaring error here so any help is appreciated as I'm beaten bu feel I'm close! lol




<query>
<name>Get IIS counters</name>
<description>Queries a host for a list of monitorable IIS Counters</description>
<oid_index>.1.3.6.1.4.1.311.1.7.3.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
<oid_num_indexes>.1.3.6.1.4.1.311.1.7.3.1</oid_num_indexes>
<index_order>ifDescr:ifName:ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<index_order_type>numeric</index_order_type>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.311.1.7.3.1</oid>
</ifIndex>

<totalBytesSentHighWord>
<name>Total Bytes Sent</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.311.1.7.3.1.1.0</oid>
</totalBytesSentHighWord>
<totalBytesSentLowWord>
<name>Total Bytes Sent</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.311.1.7.3.1.2.0</oid>
</totalBytesSentLowWord>
<totalBytesReceivedHighWord>
<name>Total Bytes Received HW</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.311.1.7.3.1.3.0</oid>
</totalBytesReceivedHighWord>
<totalBytesReceivedLowWord>
<name>Total Bytes Recieved LW</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.311.1.7.3.1.4.0</oid>
</totalBytesReceivedLowWord>
</fields>
</query>

Data Query Debug Information

+ Running data query [15].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/Inetpub/cacti087d/resource/snmp_queries/iisv3.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.311.1.7.3.1'
+ Index found at OID: 'enterprises.311.1.7.3.1.1.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.2.0' value: ' 3838357859'
+ Index found at OID: 'enterprises.311.1.7.3.1.3.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.4.0' value: ' 250066399'
+ Index found at OID: 'enterprises.311.1.7.3.1.5.0' value: ' 89121'
+ Index found at OID: 'enterprises.311.1.7.3.1.6.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.7.0' value: ' 14'
+ Index found at OID: 'enterprises.311.1.7.3.1.8.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.9.0' value: ' 455290'
+ Index found at OID: 'enterprises.311.1.7.3.1.10.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.11.0' value: ' 326'
+ Index found at OID: 'enterprises.311.1.7.3.1.12.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.13.0' value: ' 8'
+ Index found at OID: 'enterprises.311.1.7.3.1.14.0' value: ' 326'
+ Index found at OID: 'enterprises.311.1.7.3.1.15.0' value: ' 80972'
+ Index found at OID: 'enterprises.311.1.7.3.1.16.0' value: ' 455290'
+ Index found at OID: 'enterprises.311.1.7.3.1.17.0' value: ' 82'
+ Index found at OID: 'enterprises.311.1.7.3.1.18.0' value: ' 424472'
+ Index found at OID: 'enterprises.311.1.7.3.1.19.0' value: ' 53603'
+ Index found at OID: 'enterprises.311.1.7.3.1.20.0' value: ' 69'
+ Index found at OID: 'enterprises.311.1.7.3.1.21.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.22.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.23.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.24.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.25.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.26.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.27.0' value: ' 152'
+ Index found at OID: 'enterprises.311.1.7.3.1.28.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.29.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.30.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.31.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.32.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.33.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.34.0' value: ' 14'
+ Index found at OID: 'enterprises.311.1.7.3.1.35.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.36.0' value: ' 232346'
+ Index found at OID: 'enterprises.311.1.7.3.1.37.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.38.0' value: ' 126'
+ Index found at OID: 'enterprises.311.1.7.3.1.39.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.40.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.41.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.42.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.43.0' value: ' 6941'
+ Index found at OID: 'enterprises.311.1.7.3.1.44.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.45.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.46.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.47.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.48.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.49.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.50.0' value: ' 0'
+ Index found at OID: 'enterprises.311.1.7.3.1.51.0' value: ' 0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.1.0' results: '1.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.2.0' results: '2.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.3.0' results: '3.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.4.0' results: '4.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.5.0' results: '5.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.6.0' results: '6.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.7.0' results: '7.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.8.0' results: '8.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.9.0' results: '9.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.10.0' results: '10.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.11.0' results: '11.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.12.0' results: '12.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.13.0' results: '13.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.14.0' results: '14.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.15.0' results: '15.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.16.0' results: '16.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.17.0' results: '17.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.18.0' results: '18.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.19.0' results: '19.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.20.0' results: '20.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.21.0' results: '21.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.22.0' results: '22.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.23.0' results: '23.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.24.0' results: '24.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.25.0' results: '25.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.26.0' results: '26.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.27.0' results: '27.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.28.0' results: '28.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.29.0' results: '29.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.30.0' results: '30.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.31.0' results: '31.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.32.0' results: '32.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.33.0' results: '33.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.34.0' results: '34.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.35.0' results: '35.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.36.0' results: '36.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.37.0' results: '37.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.38.0' results: '38.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.39.0' results: '39.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.40.0' results: '40.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.41.0' results: '41.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.42.0' results: '42.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.43.0' results: '43.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.44.0' results: '44.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.45.0' results: '45.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.46.0' results: '46.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.47.0' results: '47.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.48.0' results: '48.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.49.0' results: '49.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.50.0' results: '50.0'
+ index_parse at OID: 'enterprises.311.1.7.3.1.51.0' results: '51.0'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.311.1.7.3.1'
+ Found item [ifIndex=' 0'] index: 1.0 [from value]
+ Found item [ifIndex=' 3838357859'] index: 2.0 [from value]
+ Found item [ifIndex=' 0'] index: 3.0 [from value]
+ Found item [ifIndex=' 250066399'] index: 4.0 [from value]
+ Found item [ifIndex=' 89121'] index: 5.0 [from value]
+ Found item [ifIndex=' 0'] index: 6.0 [from value]
+ Found item [ifIndex=' 14'] index: 7.0 [from value]
+ Found item [ifIndex=' 0'] index: 8.0 [from value]
+ Found item [ifIndex=' 455290'] index: 9.0 [from value]
+ Found item [ifIndex=' 0'] index: 10.0 [from value]
+ Found item [ifIndex=' 326'] index: 11.0 [from value]
+ Found item [ifIndex=' 0'] index: 12.0 [from value]
+ Found item [ifIndex=' 8'] index: 13.0 [from value]
+ Found item [ifIndex=' 326'] index: 14.0 [from value]
+ Found item [ifIndex=' 80972'] index: 15.0 [from value]
+ Found item [ifIndex=' 455290'] index: 16.0 [from value]
+ Found item [ifIndex=' 82'] index: 17.0 [from value]
+ Found item [ifIndex=' 424472'] index: 18.0 [from value]
+ Found item [ifIndex=' 53603'] index: 19.0 [from value]
+ Found item [ifIndex=' 69'] index: 20.0 [from value]
+ Found item [ifIndex=' 0'] index: 21.0 [from value]
+ Found item [ifIndex=' 0'] index: 22.0 [from value]
+ Found item [ifIndex=' 0'] index: 23.0 [from value]
+ Found item [ifIndex=' 0'] index: 24.0 [from value]
+ Found item [ifIndex=' 0'] index: 25.0 [from value]
+ Found item [ifIndex=' 0'] index: 26.0 [from value]
+ Found item [ifIndex=' 152'] index: 27.0 [from value]
+ Found item [ifIndex=' 0'] index: 28.0 [from value]
+ Found item [ifIndex=' 0'] index: 29.0 [from value]
+ Found item [ifIndex=' 0'] index: 30.0 [from value]
+ Found item [ifIndex=' 0'] index: 31.0 [from value]
+ Found item [ifIndex=' 0'] index: 32.0 [from value]
+ Found item [ifIndex=' 0'] index: 33.0 [from value]
+ Found item [ifIndex=' 14'] index: 34.0 [from value]
+ Found item [ifIndex=' 0'] index: 35.0 [from value]
+ Found item [ifIndex=' 232346'] index: 36.0 [from value]
+ Found item [ifIndex=' 0'] index: 37.0 [from value]
+ Found item [ifIndex=' 126'] index: 38.0 [from value]
+ Found item [ifIndex=' 0'] index: 39.0 [from value]
+ Found item [ifIndex=' 0'] index: 40.0 [from value]
+ Found item [ifIndex=' 0'] index: 41.0 [from value]
+ Found item [ifIndex=' 0'] index: 42.0 [from value]
+ Found item [ifIndex=' 6941'] index: 43.0 [from value]
+ Found item [ifIndex=' 0'] index: 44.0 [from value]
+ Found item [ifIndex=' 0'] index: 45.0 [from value]
+ Found item [ifIndex=' 0'] index: 46.0 [from value]
+ Found item [ifIndex=' 0'] index: 47.0 [from value]
+ Found item [ifIndex=' 0'] index: 48.0 [from value]
+ Found item [ifIndex=' 0'] index: 49.0 [from value]
+ Found item [ifIndex=' 0'] index: 50.0 [from value]
+ Found item [ifIndex=' 0'] index: 51.0 [from value]
+ Located input field 'totalBytesSentHighWord' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.311.1.7.3.1.1.0'
+ Located input field 'totalBytesSentLowWord' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.311.1.7.3.1.2.0'
+ Located input field 'totalBytesReceivedHighWord' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.311.1.7.3.1.3.0'
+ Located input field 'totalBytesReceivedLowWord' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.311.1.7.3.1.4.0'
+ Found data query XML file at 'C:/Inetpub/cacti087d/resource/snmp_queries/iisv3.xml'
+ Found data query XML file at 'C:/Inetpub/cacti087d/resource/snmp_queries/iisv3.xml'
+ Found data query XML file at 'C:/Inetpub/cacti087d/resource/snmp_queries/iisv3.xml'



IIS6 SNMP


totalBytesSentHighWord.0
totalBytesSentLowWord.0
totalBytesReceivedHighWord.0
totalBytesReceivedLowWord.0
totalFilesSent.0
totalFilesReceived.0
currentAnonymousUsers.0
currentNonAnonymousUsers.0
totalAnonymousUsers.0
totalNonAnonymousUsers.0
maxAnonymousUsers.0
maxNonAnonymousUsers.0
currentConnections.0
maxConnections.0
connectionAttempts.0
logonAttempts.0
totalOptions.0
totalGets.0
totalPosts.0
totalHeads.0
totalPuts.0
totalDeletes.0
totalTraces.0
totalMove.0
totalCopy.0
totalMkcol.0
totalPropfind.0
totalProppatch.0
totalSearch.0
totalLock.0
totalUnlock.0
totalOthers.0
currentCGIRequests.0
currentBGIRequests.0
totalCGIRequests.0
totalBGIRequests.0
maxCGIRequests.0
maxBGIRequests.0
currentBlockedRequests.0
totalBlockedRequests.0
totalAllowedRequests.0
totalRejectedRequests.0
totalNotFoundErrors.0
totalLockedErrors.0
measuredBandwidth.0
currentCALsforAuthenticatedUsers.0
maxCALsforAuthenticatedUsers.0
totalCALFailedAuthenticatedUser.0
currentCALsforSecureConnections.0
maxCALsforSecureConnections.0
totalCALFailedSecureConnection.0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post a walk of the SNMP table you want to use. I suppose the error is related to the index you're using
Reinhard
M@tth3w
Posts: 13
Joined: Tue Feb 10, 2009 4:22 am

Post by M@tth3w »

Now you've questioned me I'm not entirely sure I'm looking at the correct table, but here goes. :)

C:\snmpwalk>snmpwalk -v2c -c public 192.168.2.254 .1.3.6.1.4.1.311.1.7.3.1

Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
SNMPv2-SMI::enterprises.311.1.7.3.1.1.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.2.0 = Counter32: 104828987
SNMPv2-SMI::enterprises.311.1.7.3.1.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.4.0 = Counter32: 6101283
SNMPv2-SMI::enterprises.311.1.7.3.1.5.0 = Counter32: 2072
SNMPv2-SMI::enterprises.311.1.7.3.1.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.7.0 = Counter32: 6
SNMPv2-SMI::enterprises.311.1.7.3.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.9.0 = Counter32: 10824
SNMPv2-SMI::enterprises.311.1.7.3.1.10.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.11.0 = Counter32: 82
SNMPv2-SMI::enterprises.311.1.7.3.1.12.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.13.0 = Counter32: 11
SNMPv2-SMI::enterprises.311.1.7.3.1.14.0 = Counter32: 83
SNMPv2-SMI::enterprises.311.1.7.3.1.15.0 = Counter32: 1583
SNMPv2-SMI::enterprises.311.1.7.3.1.16.0 = Counter32: 10824
SNMPv2-SMI::enterprises.311.1.7.3.1.17.0 = Counter32: 8
SNMPv2-SMI::enterprises.311.1.7.3.1.18.0 = Counter32: 10132
SNMPv2-SMI::enterprises.311.1.7.3.1.19.0 = Counter32: 1187
SNMPv2-SMI::enterprises.311.1.7.3.1.20.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.21.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.22.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.23.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.24.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.25.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.26.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.27.0 = Counter32: 9
SNMPv2-SMI::enterprises.311.1.7.3.1.28.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.29.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.30.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.31.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.32.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.33.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.34.0 = Counter32: 6
SNMPv2-SMI::enterprises.311.1.7.3.1.35.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.36.0 = Counter32: 4791
SNMPv2-SMI::enterprises.311.1.7.3.1.37.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.38.0 = Counter32: 26
SNMPv2-SMI::enterprises.311.1.7.3.1.39.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.40.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.41.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.42.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.43.0 = Counter32: 55
SNMPv2-SMI::enterprises.311.1.7.3.1.44.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.45.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.46.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.47.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.48.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.49.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.50.0 = Counter32: 0
SNMPv2-SMI::enterprises.311.1.7.3.1.51.0 = Counter32: 0



.1.3.6.1.4.1.311.1.7.3.1
.1.3.6.1.4.1.311.1.7.3
.1.3.6.1.4.1.311.1.7
.1.3.6.1.4.1.311

These last four all give me the same details, which confuses me :-? I know the information is the 51 snmp values availble on IIS6, so I'm close :lol:
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests