nrpe 3.1_6 service control broken on pfSense 2.7.0
-
Hi all
nrpe 3.1_5 works smooth on pfSense 2.7.0, after the upgrade to nrpe 3.1_6 the service can not be controled anymore via "Status" > "Services".
[2.7.0-RELEASE][admin@firewall.somedomain.local]/root: /usr/local/etc/rc.d/nrpe3.sh start /usr/local/etc/rc.d/nrpe3.sh: WARNING: run_rc_command: cannot run /usr/local/sbin/nrpe3
The start command is not anymore located at /usr/local/sbin/nrpe3.
[2.7.0-RELEASE][admin@wmthuwall.weiers.local]/root: find / -name nrpe | grep -i /usr/local/sbin /usr/local/sbin/nrpe
Changing the path in /usr/local/etc/rc.d/nrpe3.sh makes NRPE startable, but the "Status" > "Services" page does still not show NRPE as started.
Did not find out how to solve this; just found out, the PID file is reference is correct.
Any ideas?
Regards
Tom -
I have the same problem here!
For the status to work again, in config.xml you need to change the executable line in nrpe service section as well:
<service> <name>nrpe</name> <rcfile>nrpe3.sh</rcfile> <executable>nrpe</executable> <description><![CDATA[Nagios NRPE Daemon]]></description> </service>
-
Unfortunately, it still does not start from the NRPE Service Web interface. I edited the config.xml file to no avail.
As a further attempt, I also edited the file /usr/local/etc/rc.d/nrpe3.sh from nrpe3 to nrpe, but it does not start on the web interface.nrpe3_enable=${nrpe3_enable-"YES"} name="nrpe3" rcvar="${name}_enable" command="/usr/local/sbin/nrpe3"
The file "/usr/local/sbin/nrpe3" does not exist:
[2.7.0-RELEASE][root@local]/root: ls /usr/local/sbin/nrpe3 ls: /usr/local/sbin/nrpe3: No such file or directory
It can only be started from the CLI with the following command:
/usr/local/etc/rc.d/nrpe onestart
But then the web interface still shows that it is not running!
A solution can be found here, but there is no patch yet, and an update is unlikely within a few months.
redmine.pfsense.org/issues/14560 -
nrpe 4.1 is available now and seems to fix all issues!
-
-1
No, there is nrpe 4.1 in version 2.7.0 CE and this is the problem.
The pfSense Plus version (23.05) has nrpe3, which I don't understand because it is also FreeBSD 14.0 (no problem here).There was an update that solved the problem.
nrpe3.sh has been deleted and now there is only nrpe.
[2.7.0-RELEASE][root@lb2-redir.domain-robot.org]/root: cat /usr/local/etc/rc.d/nr nrpe* nrpe.sh*
Thanks to the developers!
-
seems that the service entry in config.xml is not updated automatically.
on an untouched system, after update to nrpe 4.1, config.xml still looked like this:
<service> <name>nrpe</name> <rcfile>nrpe3.sh</rcfile> <executable>nrpe3</executable>
with this the service was not starting.
after removing the "3"s I can start the service from web gui.