monitor router temperature

Chris atstake at gmail.com
Wed Feb 25 00:23:12 CET 2009


On Fri, Feb 13, 2009 at 1:46 PM, Max <perldork at webwizarddesign.com> wrote:
> On Thu, Feb 12, 2009 at 6:16 PM, Chris <atstake at gmail.com> wrote:
>> I was wondering if there is any way to monitor a router's internal
>> temperature via Nagios? I get lots of information when I use snmlwalk.
>> But most check_snmp_* plugins give me
>> "Error: walkoid() returned nothing" error. Thanks for any suggestions.
>
> I wrote and have used this script extensively:
>
> http://www.nagios3book.com/nagios-3-enm/checks/cisco/check_snmp_cisco_temp.pl
>
> If you get errors from scripts, most likely your device does not
> support the MIBs the scripts are looking for.
>
> as Marc stated, 7600s, 6000 series, and some 5000 series Ciscos
> support temperature sensors, 2x and 3x models do not, the 4000 series
> models I have used did not either.
>
> What kind of device are you querying?  If it is a Cisco device, it
> will need to support the
>
> CISCO-ENTITY-SENSOR MIB
>
> http://www.oidview.com/mibs/9/CISCO-ENTITY-SENSOR-MIB.html
>

Thanks. I tried your script but it gives me the following error. My
"router" is a multi-layer switch: Cisco 6509.

Error:

Can't locate Nagios/Plugin/SNMP.pm in @INC (@INC contains:
/usr/lib/nagios/plugins/lib
/usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at
./check_snmp_cisco_temp.pl line 60.
BEGIN failed--compilation aborted at ./check_snmp_cisco_temp.pl line 60.

How do I get rid of this error?

Thanks.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list