Nrpe... Not running

Hello,everybody,

i am trying to get the package nagios_nrpe (nagios-plugins) up and running as the check_mk-agent has unfortunately been removed from core 142.

I have installed both packages and also xinetd and edited the file “etc/nagios/nrpe.cfg”.

Here are the most important lines:
server_port=5666
allowed_hosts=127.0.0.1,::1,10.10.1.201

But I cannot connect to the port although the rule is configured correctly. Even on the ipFire system using the telnet command I get the message:

[root@router /]# telnet 127.0.0.1 5666
Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused

[root@router /]# /etc/init.d/nrpe restart
Stopping nrpe… Not running. [ WARN ]
Starting nrpe… [ OK ]

[root@router /]# /etc/init.d/nrpe status
/usr/bin/nrpe is not running.

MfG Paul

Does nobody have an idea or am I just too impatient or the only one who wants to monitor his router?
:wink:

edit /etc/nagios/nrpe.cfg and fix pid_file, it should be /var/run/nrpe.pid

/etc/init.d/nrpe start
Starting nrpe...
/etc/init.d/nrpe status
nrpe is running with Process ID(s) 11033.

Thanks now the service is running

How can I let the service nrpe start automatically? I restarted my router and the service did not run.

https://wiki.ipfire.org/addons/nagios-nrpe

ln -s /etc/init.d/nrpe /etc/rc.d/rc3.d/S40nrpe
ln -s /etc/init.d/nrpe /etc/rc.d/rc0.d/K20nrpe
ln -s /etc/init.d/nrpe /etc/rc.d/rc6.d/K20nrpe