Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Python plugin to report the amount of idle CPU on unix based systems.
Current Version
Last Release Date
June 16, 2009
Owner
Nagios Exchange
Website
http://valhalla.com.au/check_cpu
I use this in conjunction with a plugin to monitor the user count. Obsess over both and utilise the gathered info in capacity management.
I prefer this to other cpu checks as it returns an average figure over a time period rather than a snapshot.
Requires Python 2.2 or above (or Optik python plugin for python 2.0+)
Currently tested on RH 7.x, 8.0, 9.0, Fedora Core1, Fedora Core2, Fedora Core3, FreeBSD, OpenBSD, NetBSD, (K)Ubuntu, Slackware. Full testing required for SUSE & Debian, though I believe that it works under these OSes.
Looking for people to test under other unix systems. Solaris supported, but requires Python which is not part of the native install.
Current version is 0.4.0.
There was bug when the first item (r) is not one char. That is a simple fix for it: --- check_cpu.py.orig 2011-11-05 20:23:46.000000000 +0100 +++ check_cpu.py 2011-11-05 20:14:00.000000000 +0100 @@ -117,13 +117,13 @@ statLines = string.split( statOut, 'n') -lastLine = statLines[-2] +lastLine = statLines[-2].strip() n = len(statLines) for i in range(0, n): idcheck = re.search("id", statLines[i]) if idcheck: - idLine = statLines[i] + idLine = statLines[i].strip()
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!