Page 2 of 2

Re: Preventing to add a contact

Posted: Fri Aug 05, 2016 2:26 pm
by mdsupersonic
here is the output of runnig this command ps -aef | grep nagios.cfg


[root@tornagios3 tmp]# ps -aef | grep nagios.cfg
nagios 9187 1 0 15:21 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 9201 9187 0 15:21 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 10880 7987 0 15:23 pts/0 00:00:00 grep --color=auto nagios.cfg
[root@tornagios3 tmp]#

I have 2 service running but I can not kill them.

killall -g nagios
nagios: no process found
[root@tornagios3 tmp]#

this syntax is right ? killall -g Nagios
it can not kill :(

Re: Preventing to add a contact

Posted: Mon Aug 08, 2016 3:04 am
by Box293

Code: Select all

killall -9 nagios
Two processes are normal.
The first line is PID 9187 which is the parent processes.
The second line is PID 9201 which is a child of the parent process, that is why the second number is 9187.