From 760f74512f8a7993ea68648d6693dc93d6a01f5e Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 7 Dec 2015 15:02:39 +0100 Subject: [PATCH] nagios can run hpssacli via sudo Signed-off-by: Julien Cristau --- modules/sudo/files/sudoers | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/sudo/files/sudoers b/modules/sudo/files/sudoers index b3e815562..445e40851 100644 --- a/modules/sudo/files/sudoers +++ b/modules/sudo/files/sudoers @@ -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 -- 2.20.1