Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_cisco_nexus_hardware

Rating
7 votes
Favoured:
0
Current Version
1.0
Last Release Date
2012-08-01
Compatible With
  • Nagios 3.x
License
GPL
Hits
76081
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This plug-in checks a collection of sensors included on Cisco Nexus. It checks voltage, temperature, fans and PSU.

Performance data are also given.
It has been successfully tested on Cisco Nexus 7000 and 5000.

Help:
$ ./check_cisco_nexus_hardware.pl -h
##############################################
# ADEO Services #
##############################################
Usage:./check_cisco_nexus_hardware.pl
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,
used with SNMP v1 and v2c
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
-k (--key) snmp V3 key
-p (--password) snmp V3 password
-u (--username) snmp v3 username
-V (--version) Plugin version
-h (--help) usage help

-l (--list) list probes
-i (--sysdescr) use sysdescr instead of sysname for label display

-d (--debug) debug level (1 -> 15)

Example usage:
./check_cisco_nexus_hardware.pl -H 10.XX.XX.XX -C SnmpV1V2Community -v 2

The sysName is written on output but you can choose to display the sysDescr instead with -i (sysDescr give Cisco nexus model and firmware release).

-l displays all sensors, fans and PSUs.
Reviews (6)
byVO, July 31, 2017
Works on Nexus 3064 NX-OS 7.x

But some sensors give strange results:
| Ethernet1/1_Lane_1_Transceiver_Temperature_Sensor_300000007=39347celsius;;;;
Ethernet1/1_Lane_1_Transceiver_Bias_Current_Sensor_300000004=34984amperes;;;;
Ethernet1/1_Lane_1_Transceiver_Receive_Power_Sensor_300000013=-2700dBm;;;;
Ethernet1/1_Lane_1_Transceiver_Transmit_Power_Sensor_300000014=-1592dBm;;;;
Ethernet1/1_Lane_1_Transceiver_Voltage_Sensor_300000003=3308voltsDC;;;;

Looks like some multipliers are wrong and the sensors above show value times 1000.
I had to add
# nagios: -epn
otherwise it returned "Service check did not exit properly"
and also change the use lib to
use lib "/usr/lib/nagios/plugins";

Regards
bycharn, December 2, 2015
for alls, the perl plugins Nagios::Plugin doesn't exist now,
you can download the lastest realease with all dependencies -> Monitoring::Plugin (perl -MCPAN -e 'install Monitoring::Plugin') and modify line 28 "use Nagios:: Plugin by Monitoring::Plugin"
thanks for your bitcode !
byCS01, October 14, 2014
Check works perfectly for our two Nexus switches. Much appreciated.
byrrobert, August 27, 2013
Ran fine out of the box. As usual with Perl, need it installed.
byjakobau, July 30, 2013
0 of 1 people found this review helpful
[root@kl ~]# /usr/local/bin/check_cisco_nexus_cpu.pl
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/local/bin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/check_cisco_nexus_cpu.pl line 25.
BEGIN failed--compilation aborted at /usr/local/bin/check_cisco_nexus_cpu.pl line 25.