FYI: We ran into an issue rebuilding our Nagios/NagRestConf server
The cron script that restarts nagios when changes are applied in NagRestConf, searches for the file /tmp/nagios_restart_request and ends up not finding the file because it gets created by apache in a protected directory under /tmp.
example:
/tmp/systemd-private-774978cb0a8741848e7dac93a1c355bd-httpd.service-XTu47r/tmp/nagios_restart_request
This is the default behavior under CentOS.
Changing true
to false
inside: /etc/systemd/system/multi-user.target.wants/httpd.service
:
[Service]
PrivateTmp=false
...
Then restart the httpd service
Ref: