Unable to monitor process in Linux Servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Unable to monitor process in Linux Servers

Post 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'
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Unable to monitor process in Linux Servers

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Unable to monitor process in Linux Servers

Post by bosecorp »

Great!.

worked
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Unable to monitor process in Linux Servers

Post by jolson »

Glad I could help - do you have any further questions, or may I close this thread?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Unable to monitor process in Linux Servers

Post by bosecorp »

Ok.

it worked. you can go ahead and close the ticket
Locked