Page 2 of 5

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 10:01 am
by benningtonr
ok, i created this file:
/usr/share/snmp/mibs/FOUNDRY-SN-AGENT.mib

and put this in it:

snChasActualTemperature OBJECT-TYPE
SYNTAX INTEGER (-110..250)
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Temperature of the chassis. Each unit is 0.5 degrees Celcius.
Only management module built with temperature sensor hardware
is applicable. For those non-applicable management module, it
returns no-such-name."
::= { snChasGen 18 }


I am way out of my element here, so was this correct?

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 10:03 am
by nscott
You are close. You must copy the entirety of the text in the MIB into that file.

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 10:10 am
by benningtonr
ok, I followed your link and from the info in the right pane i took everything from:
FOUNDRY-SN-AGENT-MIB DEFINITIONS ::= BEGIN

to the last line:
END

and pasted it into the file mentioned before.
Is that correct?

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 11:15 am
by nscott
Yes, it should work, do the numeric OIDs change to text ones when you do an SNMP walk?

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 11:25 am
by benningtonr
no, i am using enterprises.1991.1.1.2.13.1.1.3.1.1 as the top level

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 11:27 am
by benningtonr
here is the output using enterprises.1991.1.1.2.13.1.1.3 as the top level

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 11:31 am
by nscott
Could you run the following on the command line?

snmpwalk <Brocade Address> -c <community string> -v2c enterprises.1991.1.1.2.13.1.1.3

Re: I would like to monitor the temp of my brocade bdr route

Posted: Tue Jul 31, 2012 11:37 am
by benningtonr
[root@nagios libexec]# snmpwalk 192.168.98.6 -c public -v2c enterprises.1991.1.1.2.13.1.1.3
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.1.1 = STRING: "Line module 1, sensor 1 temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.1.2 = STRING: "Line module 1, sensor 2 temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.2.1 = STRING: "Line module 2, sensor 1 temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.2.2 = STRING: "Line module 2, sensor 2 temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.5.1 = STRING: "Active management module temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.5.2 = STRING: "Active management module temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.6.1 = STRING: "Standby management module temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.6.2 = STRING: "Standby management module temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.7.1 = STRING: "Switch Fabric module 0, sensor 1 temperature"
SNMPv2-SMI::enterprises.1991.1.1.2.13.1.1.3.8.1 = STRING: "Switch Fabric module 1, sensor 1 temperature"

Re: I would like to monitor the temp of my brocade bdr route

Posted: Wed Aug 01, 2012 7:10 am
by benningtonr
Any other ideas?

Re: I would like to monitor the temp of my brocade bdr route

Posted: Wed Aug 01, 2012 9:26 am
by nscott
It looks like the MIB isn't getting picked up, can you try doing an SNMP walk down

snmpwalk 192.168.98.6 -c public -v2c FOUNDRY-SN-AGENT-MIB

and

snmpwalk 192.168.98.6 -c public -v2c FOUNDRY-SN-AGENT

Do any of these return any values, and please post the error codes for them.