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 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
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_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).
Works on Nexus 3064 NX-OS 7.x without any problems.
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".
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.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!