This attempts to fix a problem with nrpe systems which did not
have pid_file defined in /etc/nagios/nrpe.cfg. The systemctl
now uses a non-forking start and does not go into daemon mode.
This update has been submitted for testing by smooge.
I am seeing this issue even with this updated version. My problem is that the /var/run/nrpe directory is not created (and since /var/run is now on a ramdisk, it is deleted on reboot).
This update has been submitted for testing by smooge.
Works as expected.
Works as expected, thanks!
This update has been pushed to testing.
This update has been submitted for batched by bodhi.
This update has been submitted for stable by averi.
This update has been pushed to stable.
I am seeing this issue even with this updated version. My problem is that the /var/run/nrpe directory is not created (and since /var/run is now on a ramdisk, it is deleted on reboot).
I had to add:
Run ExecStartPre with root-permissions
PermissionsStartOnly=true ExecStartPre=-/usr/bin/mkdir /var/run/nrpe ExecStartPre=/usr/bin/chown nrpe:nrpe /var/run/nrpe
to /usr/lib/systemd/system/nrpe.service
Chris.
That addition should have looked like:
# Run ExecStartPre with root-permissions
PermissionsStartOnly=true
ExecStartPre=-/usr/bin/mkdir /var/run/nrpe
ExecStartPre=/usr/bin/chown nrpe:nrpe /var/run/nrpe
Chris.
Never mind, my problem was that nrpe started before NIS, so the user did not exist at boot time. Added to local passwd file. Chris.161