Top Process (Windows or Linux)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Top Process (Windows or Linux)

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Top Process (Windows or Linux)

Post 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.)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
SeanFromIT
Posts: 105
Joined: Sun Dec 12, 2010 9:07 pm

Re: Top Process (Windows or Linux)

Post by SeanFromIT »

I'm all for it, but it would be textual output rather than numerical. Can Nagios handle storing text data over time?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Top Process (Windows or Linux)

Post 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 ; )
Locked