Unable to monitor process in Linux Servers
Posted: Thu Jul 30, 2015 11:21 am
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'
# 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'