Monitoring Temperature of stacked Cisco 3750 switches

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

Moderators: Developers, Moderators

Post Reply
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Monitoring Temperature of stacked Cisco 3750 switches

Post by villieb »

hello,

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
And so far my template looks like:

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>
When applying this query to a graph, only one temperature value is showing:

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've spent all afternoon looking for the OID that will let me know how many switches are in the stack but still cant find one. I don't think one exists (unless someone can prove me wrong).

I was hoping to get some suggestions on how to monitor the temperature of all the devices in the stack.

Thanks
rickygm
Posts: 4
Joined: Thu Feb 14, 2008 10:29 pm

Re: Monitoring Temperature of stacked Cisco 3750 switches

Post by rickygm »

Hi, great job, I'm looking for a xml, containing, cpu usage, memory, and vlan ...

do you have a xml file ?

regardss
smallfish
Posts: 3
Joined: Mon Aug 30, 2010 8:41 pm

Re: Monitoring Temperature of stacked Cisco 3750 switches

Post by smallfish »

villieb wrote:hello,

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
And so far my template looks like:

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>
When applying this query to a graph, only one temperature value is showing:

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've spent all afternoon looking for the OID that will let me know how many switches are in the stack but still cant find one. I don't think one exists (unless someone can prove me wrong).

I was hoping to get some suggestions on how to monitor the temperature of all the devices in the stack.

Thanks
Hi, Do you know the OID of CPU and MEM?
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Re: Monitoring Temperature of stacked Cisco 3750 switches

Post by villieb »

Off the top of my head no I dont. The standard router template will allow you to monitor the cpu and memory (I think).

There was another template I found that monitors the temperature of the switches.

Im sure I found it on here somewhere. I'll see if I can find it again
villieb
Cacti User
Posts: 75
Joined: Fri Nov 09, 2012 5:14 am

Re: Monitoring Temperature of stacked Cisco 3750 switches

Post by villieb »

Found it...

http://forums.cacti.net/about10491.html


I'm sure this is the template I used

cheers
rickygm
Posts: 4
Joined: Thu Feb 14, 2008 10:29 pm

Re: Monitoring Temperature of stacked Cisco 3750 switches

Post by rickygm »

thnk friend
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests