# Nrpe... Not running

**URL:** <https://community.ipfire.org/t/nrpe-not-running/1690>\
**Category:** Monitoring\
**Created:** [23 March 2020 16:34 UTC](https://community.ipfire.org/t/nrpe-not-running/1690 "2020-03-23T16:34:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo78](https://community.ipfire.org/user_avatar/community.ipfire.org/pablo78/32/12788_2.png) [@pablo78](https://community.ipfire.org/u/pablo78)\
**Post date:** [23 March 2020 16:34 UTC](https://community.ipfire.org/t/nrpe-not-running/1690/1 "2020-03-23T16:34:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pablo78](https://community.ipfire.org/user_avatar/community.ipfire.org/pablo78/32/12788_2.png) [@pablo78](https://community.ipfire.org/u/pablo78)\
**Post date:** [25 March 2020 20:42 UTC](https://community.ipfire.org/t/nrpe-not-running/1690/2 "2020-03-25T20:42:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anon42188109](https://community.ipfire.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@anon42188109](https://community.ipfire.org/u/anon42188109)\
**Post date:** [25 March 2020 21:22 UTC](https://community.ipfire.org/t/nrpe-not-running/1690/3 "2020-03-25T21:22:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pablo78](https://community.ipfire.org/user_avatar/community.ipfire.org/pablo78/32/12788_2.png) [@pablo78](https://community.ipfire.org/u/pablo78)\
**Post date:** [26 March 2020 13:43 UTC](https://community.ipfire.org/t/nrpe-not-running/1690/4 "2020-03-26T13:43:12Z")

</div>

Thanks now the service is running

---

<div class="post-metadata">

**Author:** ![pablo78](https://community.ipfire.org/user_avatar/community.ipfire.org/pablo78/32/12788_2.png) [@pablo78](https://community.ipfire.org/u/pablo78)\
**Post date:** [8 April 2020 10:29 UTC](https://community.ipfire.org/t/nrpe-not-running/1690/5 "2020-04-08T10:29:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pablo78](https://community.ipfire.org/user_avatar/community.ipfire.org/pablo78/32/12788_2.png) [@pablo78](https://community.ipfire.org/u/pablo78)\
**Post date:** [8 April 2020 10:36 UTC](https://community.ipfire.org/t/nrpe-not-running/1690/6 "2020-04-08T10:36:11Z")

</div>

[https://wiki.ipfire.org/addons/nagios-nrpe](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
