Page 1 of 1

Top Process (Windows or Linux)

Posted: Wed Jul 11, 2012 12:59 pm
by SeanFromIT
Does anyone have a good check script which will keep track of what the single top CPU consuming process is on Windows and Linux?

check_top_process is just for Linux and I'm not sure it's exactly what I'm looking for.

Re: Top Process (Windows or Linux)

Posted: Wed Jul 11, 2012 4:38 pm
by scottwilkerson
I don't believe I have seen such a plugin.

Certainly one could be made if you came up with a command that could be run from the command line (on Linux) or vbscript (on Windows) to produce the output you are looking for.

One problem that always seem to come up with this type of inquiry is the amount of time you are filtering over, (ie. 1 second, last 5 sec.)

Re: Top Process (Windows or Linux)

Posted: Thu Jul 12, 2012 9:58 am
by SeanFromIT
I'm all for it, but it would be textual output rather than numerical. Can Nagios handle storing text data over time?

Re: Top Process (Windows or Linux)

Posted: Thu Jul 12, 2012 10:15 am
by mguthrie
I think top actually has some command line arguments that you could pass so that you wouldn't need to store the temp data. From looking at the man page on it there's a ton of stuff that can be done with it. I'd lean toward making that do the work, and then just passing the data back to Nagios as a single result. However if you need to monitor the top process for more than 30 seconds, then you would want to do this as a passive check.

I'm pretty ignorant on the windows side of things, so I probably can't help you there ; )