ex/icinga2/needrestart-sudoers
raw| 1 | # needrestart nagios plugin sudoers.d config file |
| 2 | # ----------------------------------------------- |
| 3 | # |
| 4 | # Please consider a look at /etc/sudoers.d/README howto enable this file. |
| 5 | # |
| 6 | |
| 7 | # Allow nagios to execute the needrestart command on debian based systems (icinga user is called "nagios") |
| 8 | nagios ALL=NOPASSWD: /usr/sbin/needrestart |
| 9 | # Allow nagios to execute the needrestart command on centos and family (icinga user is called "icinga") |
| 10 | icinga ALL=NOPASSWD: /usr/sbin/needrestart |