Search Exchange
Search All Sites
Login
check_cisco_nexus_cpu
Current Version
1.0
Last Release Date
2012-08-01
Compatible With
- Nagios 3.x
Owner
Website
License
GPL
Hits
23512
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).
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 (1)
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.
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.


New Listings


