TOP LEVEL CATEGORIES
EXPLORE
Description:
Nagios plugin to check CPU performance statistics.
This script has been tested on the following Linux and Unix platforms: RHEL 4, RHEL 5, RHEL 6, CentOS 4, CentOS 5, CentOS 6, SUSE, Ubuntu, Debian, AIX 5, AIX 6, FreeBSD 7, Solaris 8, Solaris 9 and Solaris 10.
The script is used to obtain key CPU performance statistics by executing the sar command; eg. user, system, iowait, steal, nice, idle
The Nagios Threshold test is based on CPU idle percentage only, this is NOT CPU used.
Note for AIX Servers :- The percentage of ‘idle’ CPU is calculated by dividing ‘physc’ by ‘Maximum Capacity’ where: * physc indicates the number of physical processors consumed by the logical processor * Maximum Capacity is the maximum number of processing units this LPAR was defined to ever have.
Support has been added for Nagios Plugin Performance Data for integration with Splunk, NagiosGrapher, PNP4Nagios, opcp, NagioStat, PerfParse, fifo-rrd, rrd-graph, etc
USAGE: ./check_cpu_perf.sh {warning} {critical}
Example: ./check_cpu_perf.sh 20 10 OK: CPU Idle = 84.10% | CpuUser=12.99; CpuNice=0.00; CpuSystem=2.90; CpuIowait=0.01; CpuSteal=0.00; CpuIdle=84.10:20:10
Note: the option exists to NOT test for a threshold. Specifying 0 (zero) for both warning and critical will always return an exit code of 0.
Current Version
1.2
Last Release Date
2011-09-08
Compatible With
Owner
Luke Harris
Download URL
https://github.com/skywalka/check-cpu-perf/
License
GPL
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.