]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Let nagios check SA controllers
authorPeter Palfrader <peter@palfrader.org>
Tue, 7 Apr 2009 22:30:51 +0000 (00:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 7 Apr 2009 22:30:51 +0000 (00:30 +0200)
modules/sudo/files/common/sudoers

index 4e7bd70c4e34b3f518de840412566b0529cb90e1..e3f193ab1ffbb6f9adc0d51a1834f169f78cf93a 100644 (file)
@@ -35,6 +35,13 @@ root ALL=(ALL) ALL
 
 # nagios
 nagios         ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
+# with smartarray controllers
+nagios         ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd all show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 show status
 
 # groups and their role accounts
 %mirroradm     ALL=(archvsync) ALL