Move nagios sudo privileges from evolix-users to nagios-nrpe role

The nagios-nrpe role does not depend on the evolix-users role but
the sudo privileges the role requires to function are in the evolix-users
sudoers template. This commit moves those privileges over to the
/etc/sudoers.d/nagios file. This new task is part of the nagios-nrpe role.
This commit is contained in:
Patrick Marchand 2019-05-28 22:57:58 +02:00
parent 490708c76d
commit c28e15231f

View file

@ -0,0 +1,5 @@
nagios ALL = NOPASSWD: /usr/lib/nagios/plugins/check_procs
nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_minifirewall
nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_haproxy_stats
nagios ALL = NOPASSWD: /usr/sbin/bkctld check
nagios ALL = (clamav) NOPASSWD: /usr/bin/clamscan /tmp/safe.txt