Network Connections, Stats and Bandwidth

check_cisco_nexus_cpu

Description:

This plug-in gives CPU usage (in %) on 5 seconds, 1 minute and 5 minutes average.

Performance data are also given.

It has been successfully tested on Cisco Nexus 7000 and 5000.

Current Version

1.0

Last Release Date

2012-08-01

Compatible With

  • Nagios 3.x

License

GPL


Project Notes
It has been successfully tested on Cisco Nexus 7000 and 5000. Help: $ ./check_cisco_nexus_cpu.pl -h ############################################## # ADEO Services # ############################################## Usage:./check_cisco_nexus_cpu.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 -i (--sysdescr) use sysdescr instead of sysname for label display -w (--warning) pass 3 values for warning threshold (5 seconds, 1 minute and 5 minutes cpu average usage in %) -c (--critical) pass 3 values for critical threshold (5 seconds, 1 minute and 5 minutes cpu average usage in %) -d (--debug) debug level (1 -> 15) Example usage: ./check_cisco_nexus_cpu.pl -H 10.XX.XX.XX -C SnmpV1V2Community -v 2 -w 80,70,60 -c 90,80,70 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).
Reviews (3) Add a Review
Works on 3064
by VO, July 31, 2017

Works on Nexus 3064 NX-OS 7.x without any problems.



Useful
by icecoffee, August 31, 2013

Tested with Nexus 5000 and works fine... I think the output could be more comfortable to read. And the warning and critical thresholds are necessary, otherwise the script will throw some errors like "Use of uninitialized value".



Error
by capricorn, January 31, 2013

I tried this on Nexus 5010 but getting errors: Use of uninitialized value $five_sec in numeric gt (>) at ./check_cisco_nexus_cpu.pl line 192. Use of uninitialized value $one_min in numeric gt (>) at ./check_cisco_nexus_cpu.pl line 192. Use of uninitialized value $five_sec in concatenation (.) or string at ./check_cisco_nexus_cpu.pl line 199. Use of uninitialized value $one_min in concatenation (.) or string at ./check_cisco_nexus_cpu.pl line 199. Use of uninitialized value $five_sec in concatenation (.) or string at ./check_cisco_nexus_cpu.pl line 200. Use of uninitialized value $one_min in concatenation (.) or string at ./check_cisco_nexus_cpu.pl line 200.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.3 (3)
Favorites
0
Views
66,072