Code: Select all
[root@client ~]# service nrpe restart
nrpe: unrecognized service
[root@client ~]#
Code: Select all
[root@client ~]# service nrpe restart
nrpe: unrecognized service
[root@client ~]#
Code: Select all
killall -9 nrpe
service xinetd restart
Code: Select all
[root@clientname ~]# cat /etc/xinetd.d/nrpe
# default: off
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
disable = no
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
only_from = 127.0.0.1 <nagiosserverIP>
log_on_failure += USERID
}
When running under xinetd it will not show in the process list like you showed.hemak88 wrote:nrpe is configured under xinetd service. Hence the process exist.
scottwilkerson wrote:Code: Select all
killall -9 nrpe service xinetd restart
Yes I did.Did you run the commands like I recommended?
Code: Select all
[root@clientname ~]# kill -9 nrpe
-bash: kill: nrpe: arguments must be process or job IDs
[root@clientname~]# ps -ef |grep nrpe
root 57074 57017 0 09:12 pts/0 00:00:00 grep nrpe
nagios 61841 1 0 Jul31 ? 00:00:02 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
[root@clientname ~]# kill -9 61841
[root@clientname ~]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@clientname ~]# ps -ef |grep nrpe
nagios 57222 1 0 09:13 ? 00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
root 57277 57017 0 09:13 pts/0 00:00:00 grep nrpe
[root@clientname ~]#
Code: Select all
systemctl disable nrpe
systemctl stop nrpe
service xinetd restart
Code: Select all
[root@clientname ~]# service nrpe stop
nrpe: unrecognized service
[root@clientname ~]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@clientname ~]#
Code: Select all
[root@clientname ~]# ps -ef |grep nrpe
root 37690 37661 0 16:06 pts/0 00:00:00 grep nrpe
nagios 57222 1 0 Aug02 ? 00:00:13 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
[root@clientname ~]#
Code: Select all
kill -9 57222
service xinetd restart