NagiosEnterprises / nrpe

NRPE Agent
GNU General Public License v2.0
263 stars 134 forks source link

Disable PrivateTmp, used by some nagios plugins #174

Closed ludovic-gasc closed 4 years ago

ludovic-gasc commented 6 years ago

Hi,

To enable us to execute needrestart as nagios-plugin, we need to disable this option in the systemd unit file. All details in this issue: liske/needrestart#83

It might be related with this issue: #149

Thanks for the merge.

Regards.

sawolf commented 4 years ago

Thanks for the contribution!

Given the issue in needrestart, I can understand why you'd want to make the change. However, a nagios plugin that writes to /tmp is exactly the sort of thing that led to PrivateTmp in systemd. Individual users can disable it if they want to, but it shouldn't be that way by default.