From: Peter Palfrader Date: Sun, 11 Feb 2018 10:20:27 +0000 (+0100) Subject: nagios: use dsa-check-systemd-services instead of systemctl is-system-running X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=04d09e50da72e4dddec7aeb9c0bb124df99c9acf;p=mirror%2Fdsa-puppet.git nagios: use dsa-check-systemd-services instead of systemctl is-system-running --- diff --git a/modules/sudo/files/sudoers b/modules/sudo/files/sudoers index cb640510c..bdf87ae81 100644 --- a/modules/sudo/files/sudoers +++ b/modules/sudo/files/sudoers @@ -54,7 +54,6 @@ root ALL=(ALL) ALL %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL # nagios -nagios ALL=(ALL) NOPASSWD: /bin/systemctl is-system-running nagios MQ_HOSTS=(rabbitmq) NOPASSWD: /usr/sbin/rabbitmqctl list_queues -p dsa name messages consumers nagios ALL=(ALL) NOPASSWD: /usr/sbin/service ekeyd-egd-linux restart nagios ALL=(ALL) NOPASSWD: /usr/sbin/service samhain restart @@ -62,6 +61,7 @@ nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup "" nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems "" nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-libs --ignore-younger=1h nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-stunnel-sanity "" +nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-systemd-services "" nagios handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire /var/lib/puppet/ssl/certs/ca.pem # with smartarray controllers nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""