nagios can run hpssacli via sudo
authorJulien Cristau <jcristau@debian.org>
Mon, 7 Dec 2015 14:02:39 +0000 (15:02 +0100)
committerJulien Cristau <jcristau@debian.org>
Mon, 7 Dec 2015 14:04:20 +0000 (15:04 +0100)
Signed-off-by: Julien Cristau <jcristau@debian.org>
modules/sudo/files/sudoers

index b3e8155..445e408 100644 (file)
@@ -65,6 +65,15 @@ nagios               handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire
 nagios         ALL=(ALL)       NOPASSWD: /sbin/hpasmcli ""
 nagios         ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
 nagios         franck=(ALL)    NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller all show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld all show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld [0-9] show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd all show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9]\:[0-9] show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
+nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] show status
+nagios         franck=(ALL)    NOPASSWD: /usr/sbin/hpssacli controller slot=1 enclosure 1E\:1 show detail
 nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
 nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld all show
 nagios         ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld [0-9] show