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_mcpu

Rating
0 votes
Favoured:
0
Hits
147746
Files:
FileDescription
check_mcpuPerl Script
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 plugin checks the amount of used or idle CPU (default is idle) for each processor on multiprocessor or single processor Linux systems.
This plugin checks the amount of used or idle cpu (default is idle) for multiple cpus. All arguments are optionals.

Usage: check_mcpu --warning --critical --reports --interval

check_mcpu -u | --used [-w | --warning] [-c | --critical] [-r | --reports] [-i | --interval]
check_mcpu -h | --help


-c | --critical
Exit with CRITICAL status if idle CPU is less than the critical percentage value.
In used mode exits with CRITICAL status if the amount of used CPU is more tan the critical percentage value.
Default value: 10
Deafault value in used mode: 90

-w | --warning
Exit with WARNING status if idle CPU is less than the warning percentage value.
In used mode exits with WARNING status if the amount of used CPU is more tan the critical percentage value.
Default value: 20
Default value in used mode: 80

-i | --interval
Amount of time in seconds between each report of mpstat.
Default value: 1

-r | --reports
Number of reports generated at interval seconds apart for mpstat.
Default value: 1

-u | --used
Check the amount of used CPU instead of the idle CPU.

-h | --help
Show this help.

This plugin depends on the sysstat package:
http://perso.orange.fr/sebastien.godard/index.html

Changelog
=========
1.10 Fixed bug when sysstats is installed with nls support (20.09.2007)
1.9 Added -u option and some cosmetics changes in the output (17.07.2007)
1.2 Initial Public Release (05.07.2007)