Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_cpu.py - usage and IO Wait
1.7
2014-11-09
GPL
35161
File | Description |
---|---|
check_cpu.py | Nagios plugin - python script |
check_cpu.php | PNP4Nagios template - php script |
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 plugin will generate an alert if
* The overall CPU usage exceeds a given threshold
* The overall CPU IO Wait exceeds a given threshold
* The CPU usage of any single CPU core exceeds a threshold
* The CPU IO Wait of any single CPU core exceeds a threshold
* The CPU steal of any single CPU core exceeds a threshold
This plugin also generates performance data suitable for PNP4Nagios, and a suitable PNP4Nagios template is supplied.
The template provides a neater presentation than the default.
Note that this plugin measures CPU usage by reading /proc/stat twice over a time interval (default is 1 second).
As such:
* It is specific to Linux, and probably won't work on other systems
* It does NOT rely on the python library psutil, and hence is backwards compatible
with older Linux systems which do have the psutil library.
New features for version 1.5
* Can alert on overall IO Wait (missing from previous versions)
* Can output the raw values from /proc/stat - see option '-a'
* Also outputs ctxt and processes (context switches and new processes) as performance data (no alerting, just for graphing)
This plugin is a fork of check_cpu.py by Kirk Hammond, and was written to cater for older Linux distributions which do
not have a the library psutil available. It also adds the feature of monitoring IO Wait explicitly.
* The overall CPU usage exceeds a given threshold
* The overall CPU IO Wait exceeds a given threshold
* The CPU usage of any single CPU core exceeds a threshold
* The CPU IO Wait of any single CPU core exceeds a threshold
* The CPU steal of any single CPU core exceeds a threshold
This plugin also generates performance data suitable for PNP4Nagios, and a suitable PNP4Nagios template is supplied.
The template provides a neater presentation than the default.
Note that this plugin measures CPU usage by reading /proc/stat twice over a time interval (default is 1 second).
As such:
* It is specific to Linux, and probably won't work on other systems
* It does NOT rely on the python library psutil, and hence is backwards compatible
with older Linux systems which do have the psutil library.
New features for version 1.5
* Can alert on overall IO Wait (missing from previous versions)
* Can output the raw values from /proc/stat - see option '-a'
* Also outputs ctxt and processes (context switches and new processes) as performance data (no alerting, just for graphing)
This plugin is a fork of check_cpu.py by Kirk Hammond, and was written to cater for older Linux distributions which do
not have a the library psutil available. It also adds the feature of monitoring IO Wait explicitly.
Reviews (1)
byk2patel, October 13, 2014
it good, but it might require more switches to control too much info.