Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This plug-in checks a collection of sensors included on Cisco Nexus. It checks voltage, temperature, fans and PSU. Performance data are also given.
Current Version
1.0
Last Release Date
2012-08-01
Owner
David Barbion
Website
http://blog.230ruedubac.fr
Download URL
https://github.com/david-barbion/monitoring/tree/master/check_cisco_nexus
License
GPL
Compatible With
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.
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
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 !
Check works perfectly for our two Nexus switches. Much appreciated.
Ran fine out of the box. As usual with Perl, need it installed.
[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.
You must be logged in to submit a review.
To:
From: