monitoring a process

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

monitoring a process

Post 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 ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: monitoring a process

Post 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!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring a process

Post by srikanth.kallu »

I already tried using ldapdb2 but it wouldnt work.

I attaching the configuration attachment.

Thank you.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: monitoring a process

Post 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
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring a process

Post by srikanth.kallu »

it is working with check_procs now

Thanks for your help.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: monitoring a process

Post by slansing »

Awesome, thank you for letting me know! I figured it would be as easy as that.
Locked