I've spent all morning trying to create a data query that will allow me to monitor the temperature of individual switches in a stack. I currently have three stacks, one that has 4 switches, the other that has 7 and the last has two.
So far I've managed to find the Temperature OID:
Code: Select all
SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1005 = STRING: "SW#1, Sensor#1, GREEN "
SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.2005 = STRING: "SW#2, Sensor#1, GREEN "
SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.3005 = STRING: "SW#3, Sensor#1, GREEN "
SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.4005 = STRING: "SW#4, Sensor#1, GREEN "
SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.1005 = Gauge32: 45
SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.2005 = Gauge32: 44
SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.3005 = Gauge32: 45
SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.4005 = Gauge32: 42
Code: Select all
<temperature>
<name>Cisco 3750 Temperature</name>
<description>Gets temperature from Cisco 3750 stack</description>
<oid_index>.1.3.6.1.4.1.9.9.13.1.3.1.2</oid_index>
<ciscoswitchno>
<name>Description</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.9.13.1.3.1.2</oid>
</ciscoswitchno>
<switchtempvalue>
<name>Value</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.13.1.3.1.3</oid>
</switchtempvalue>
</fields>
</temperature>
Code: Select all
+ Running data query [11].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/temperature3750.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.13.1.3.1.2' Index Count: 1
+ Index found at OID: '1.3.6.1.4.1.9.9.13.1.3.1.2.1005' value: 'SW#1, Sensor#1, GREEN'
+ Located input field 'ciscoTempDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.13.1.3.1.2'
+ Found item [ciscoTempDescr='SW#1, Sensor#1, GREEN'] index: 1005 [from value]
+ Located input field 'ciscoTempValue' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.13.1.3.1.3'
+ Found item [ciscoTempValue='40'] index: 1005 [from value]
I was hoping to get some suggestions on how to monitor the temperature of all the devices in the stack.
Thanks