Page 1 of 1

monitoring a process

Posted: Thu Jul 10, 2014 9:25 am
by srikanth.kallu
Hi,

I am trying to monitor a process "ibmslapd" from one of our linux server.

I added that process through monitoring wizard, but i am getting the error "NRPE: Unable to read output"

[root@nadrsds01 ~]# ps -ef | grep ibmslapd | grep -v grep
ldapdb2 26592 1 0 Jul09 pts/0 00:00:07 /opt/ibm/ldap/V6.3.1/sbin/64/ibmslapd -I ldapdb2 -t -n


Can i get help with this ?

Re: monitoring a process

Posted: Thu Jul 10, 2014 12:02 pm
by slansing
Looks like "ldapdb2" would be the actual name of the currently running process, try that one out first, can you also show us the service configuration for this check? Navigate to CCM > Services > 'service name', click the diskette icon and share the output here in codewraps or as a attachment, so we can see how the command is being passed. Thanks!

Re: monitoring a process

Posted: Thu Jul 10, 2014 2:29 pm
by srikanth.kallu
I already tried using ldapdb2 but it wouldnt work.

I attaching the configuration attachment.

Thank you.

Re: monitoring a process

Posted: Thu Jul 10, 2014 2:53 pm
by slansing
I'm not sure what your check_init_service nrpe command is mapped to, but I'd suggest using check_procs instead, like so:
Examples:
check_procs -w 2:2 -c 2:1024 -C portsentry
Warning if not two processes with command name portsentry.
Critical if < 2 or > 1024 processes

Re: monitoring a process

Posted: Thu Jul 10, 2014 3:18 pm
by srikanth.kallu
it is working with check_procs now

Thanks for your help.

Re: monitoring a process

Posted: Thu Jul 10, 2014 4:23 pm
by slansing
Awesome, thank you for letting me know! I figured it would be as easy as that.