Page 1 of 1

Unable to monitor process in Linux Servers

Posted: Thu Jul 30, 2015 11:21 am
by bosecorp
I am trying to monitor a particular daemon by doing the following from the CLI before I roll this out.

# ps -ef | grep Eracent
root 11808 16468 0 12:20 pts/0 00:00:00 grep Eracent
root 27889 1 0 Jul06 ? 01:24:02 ./EracentEUAService -daemon
root 28086 1 0 Jul06 ? 01:36:09 ./EracentEPAService -daemon
root@nagmonus1:(07-30 11:16): /root

the above shows that the daemon is running

but when I tried the following doesn't work

# /usr/local/nagios/libexec/check_procs -C 'EracentEUAService -daemon'
PROCS OK: 0 processes with command name 'EracentEUAService -daemon'


I also tried

# /usr/local/nagios/libexec/check_procs -C 'EracentEUAService'
PROCS OK: 0 processes with command name 'EracentEUAService'

and

# /usr/local/nagios/libexec/check_procs -C './EracentEUAService -daemon'
PROCS OK: 0 processes with command name './EracentEUAService -daemon'

Re: Unable to monitor process in Linux Servers

Posted: Thu Jul 30, 2015 11:29 am
by jolson
Try using the following command:

/usr/local/nagios/libexec/check_procs -a 'EracentEUAService -daemon'

From the check_procs help:
-a, --argument-array=STRING
Only scan for processes with args that contain STRING.

Re: Unable to monitor process in Linux Servers

Posted: Thu Jul 30, 2015 11:39 am
by bosecorp
Great!.

worked

Re: Unable to monitor process in Linux Servers

Posted: Thu Jul 30, 2015 11:42 am
by jolson
Glad I could help - do you have any further questions, or may I close this thread?

Re: Unable to monitor process in Linux Servers

Posted: Sat Aug 01, 2015 10:52 am
by bosecorp
Ok.

it worked. you can go ahead and close the ticket