Process state and metric monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SanjayHirani
Posts: 3
Joined: Mon Mar 14, 2016 11:31 am

Process state and metric monitoring

Post by SanjayHirani »

centos6.x, Nagios XI 64bit
We are trying to monitor a process for up/down state and also cpu and memory usage. How is that done in Nagios xi ? I see check_procs but it does not appear in the list when i try and create a service. Do I need to run multiple checks ( one for each metric) or will one plugin work? do I give it a pid file location or a RE for the command line?

Thank you
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Process state and metric monitoring

Post by bwallace »

Have you tried using the Windows (or Linux) server wizard to add processes that you would like to monitor? It should already contain the checks/settings you're looking for.
Be sure to check out the Knowledgebase for helpful articles and solutions!
SanjayHirani
Posts: 3
Joined: Mon Mar 14, 2016 11:31 am

Re: Process state and metric monitoring

Post by SanjayHirani »

I tried that and added a process name in the process section after the init.d section. It put the check_command as check_nrpe!check_services!-a '<command>'
This is the same as it put for init.d services which appears to be wrong. I am not sure check if the process is up using the process tables as appose to running service <services> status

I want to able to monitor a process as an autonomous object since today it can be on one server and tomorrow it could be running on a different server. The associations can be flipped manually but I just need cpu/memory/state to be available at all times

Is that possible in Nagios Xi ?

Thank you
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Process state and metric monitoring

Post by rkennedy »

What version of XI are you running? Also, what wizard did you use, and what version is the wizard? Are you seeing an error for the check at all?

I just tried to replicate this, and wasn't able to using the most recent version of the linux wizard. The command that it generates for me is check_nrpe!check_init_service!-a 'nagios'

Also, from the CLI -

Code: Select all

[root@suse11 libexec]# ./check_nrpe -H 192.168.3.42 -c check_init_service -a nagios
nagios (pid 11828) is running...
You should be able to accomplish what you're looking for with XI.
Former Nagios Employee
Locked