nagios needs to be able to run systemctl as root otherwise dbus is needed
authorPaul Wise <pabs@debian.org>
Mon, 15 Dec 2014 22:46:45 +0000 (06:46 +0800)
committerPaul Wise <pabs@debian.org>
Mon, 15 Dec 2014 22:47:14 +0000 (06:47 +0800)
modules/sudo/files/sudoers

index 9e9ac40..1407862 100644 (file)
@@ -50,6 +50,7 @@ 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