Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Checks the top running process on the system. Has arguments for warning and critical levels.
Current Version
Last Release Date
June 17, 2009
Owner
Nagios Exchange
Compatible With
check_top_process
You are forewarned about my coding skills. Basically, runs ps and finds the process with the highest cpu percentage. Default is to warn above 50% and critical above 80%, but these values can be changed using standard -w and -c syntax (I hope). Works on Linux, probably works other places, uses ps awk standard shell stuff. Why would you want this? In my case, certain systems will runaway processes spike above a certain percentage cpu usage. If any process runs above a specific mark, I'm pretty sure I have a runaway process. I can then go kill it before it causes other problems. Feel free to use or modify the code. It is very simple, but may make a good template or help out someone trying to figure out scripting in nagios. BTW, I use it through NRPE.
It was a nice idea it works allright. Had to to convert to unix format using dos2unix check_top_process.sh thanks for this script
You must be logged in to submit a review.
To:
From: