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_cpu

Rating
3 votes
Favoured:
0
Current Version
1.0
Last Release Date
2012-08-01
Compatible With
  • Nagios 3.x
License
GPL
Hits
66047
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 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.
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)
byVO, July 31, 2017
Works on Nexus 3064 NX-OS 7.x without any problems.
byicecoffee, August 15, 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".
bycapricorn, January 14, 2013
0 of 1 people found this review helpful
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.