]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 9e9ac404bc5930befa614cdd490a6f5ecf11d50a..1407862221f477936ba7fc6f9d95ed942b6f5632 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