How to get graphs of a windows process

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vrouwerfq
Posts: 3
Joined: Fri Dec 24, 2010 7:34 am

How to get graphs of a windows process

Post by vrouwerfq »

I want to monitor one windows process, i've managed to check if he's running or not.But I wanna see the performance counters of that process in a graph like cpu and memory of that particular process.
Does anyone know how to manage this, i'm very new with Nagios.

So a little help would be fine.

Quirinus
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: How to get graphs of a windows process

Post by nscott »

vrouwefq,

Its possible, however it would require editing the plugin that Nagios runs on the remote host.

How a performance data works is that nagios runs a plugin and gets a string like this back:

OK: All processes are running.

The 'OK: All processes are running.' is what you'll see in the Nagios gui for the status of the host. If you wanted to add performance data you would need to edit the plugin to return something like this:

OK: All processes are running. | processes_running=23;;;;;

Where the number 23 is the number of processes running at that particular time. So when Nagios gets the return string from plugin, it parses the string, everything before the | gets returned to the gui, and everything after is processes as performance data. Here it would write 23 to the rrd file that was associated with this particular host or service.
Nicholas Scott
Former Nagios employee
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to get graphs of a windows process

Post by mguthrie »

A search on exchange brought up the following results.

http://exchange.nagios.org/index.php?op ... %20process

You might have to test a few of these out and see if they do what you need. Here's a doc on what to do with new plugins.
http://assets.nagios.com/downloads/nagi ... hp#plugins
(see "Managing plugins in Nagios XI")