Issue with CentOS 7 and apache systemd /tmp isolation can't find nagios_restart_request

12 views
Skip to first unread message

Cullen Philippson

unread,
Oct 17, 2019, 3:00:57 PM10/17/19
to nagrestconf-users
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:
Reply all
Reply to author
Forward
0 new messages