Monitoring The Number of Processes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Monitoring The Number of Processes

Post by rdhall01 »

I have had process monitoring in place for awhile, it monitors java processes and the time they have been up!. I have been using the check_proc_age plugin and it was working perfectly! We recently added another application that runs a java process and it runs as an agent, but know the monitoring numbers are skewed by an additional processes as well as it reports as the oldest! How can I get back to monitoring the 2 specific java instances without havaing to stop the agent from running (or excluding this one from the plugin)? Any help would be greatly appreciated on this one. I looked in the exchange but there is not a plugin for this already in place

Nagios XI 2014R1.3
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring The Number of Processes

Post by sreinhardt »

Do you have a link to the check_proc_age plugin? Maybe there is a usage flag to exclude processes by name or regex.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Re: Monitoring The Number of Processes

Post by rdhall01 »

The plugin will not work even if you give the full path for the process and user account it still sees all 3 process from the same path and the same user. So its back to the drawing board to monitor the homegrown application. Unlees anyone has some input:

Example I have an running twice so there are 2 java processes running
We used to check for the java processes and check the age and after a set time it would alert (basically to say the process needed to be restarted, because the automation didnt run)
Newly added Sumo Logic agent now adds a third java process and will always have the lomgest runtime as it runs as an agent!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring The Number of Processes

Post by sreinhardt »

Well, again I'd be happy to look over check_proc_age, maybe there is a small tweak we can do to make it suite your needs. Otherwise is this a windows or linux system, maybe we know of something that will do this already.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked