From 04d09e50da72e4dddec7aeb9c0bb124df99c9acf Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 11 Feb 2018 11:20:27 +0100 Subject: [PATCH] nagios: use dsa-check-systemd-services instead of systemctl is-system-running --- modules/sudo/files/sudoers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" -- 2.20.1