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'
Unable to monitor process in Linux Servers
Re: Unable to monitor process in Linux Servers
Try using the following command:
/usr/local/nagios/libexec/check_procs -a 'EracentEUAService -daemon'
From the check_procs help:
/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
Great!.
worked
worked
Re: Unable to monitor process in Linux Servers
Glad I could help - do you have any further questions, or may I close this thread?
Re: Unable to monitor process in Linux Servers
Ok.
it worked. you can go ahead and close the ticket
it worked. you can go ahead and close the ticket