Nrpe... Not running


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:

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 5666
telnet: connect to address 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?

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

/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.

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