From a570b1c40e969c97cebff5e32971fa21c264604c Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Sun, 19 May 2013 17:43:43 +0000 Subject: [PATCH] Add sudoers support to check_hpacucli Affects okconfig issue 3 --- check_hpacucli/nagios-okplugin-check_hpacucli.spec | 2 ++ check_hpacucli/sudoers.d/check_hpacucli | 1 + 2 files changed, 3 insertions(+) create mode 100644 check_hpacucli/sudoers.d/check_hpacucli diff --git a/check_hpacucli/nagios-okplugin-check_hpacucli.spec b/check_hpacucli/nagios-okplugin-check_hpacucli.spec index ee775d0..3b90f7b 100644 --- a/check_hpacucli/nagios-okplugin-check_hpacucli.spec +++ b/check_hpacucli/nagios-okplugin-check_hpacucli.spec @@ -19,6 +19,7 @@ Checks HP Array with hpacucli %prep %setup -q perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_hpacucli.cfg +perl -pi -e "s|/usr/lib|%{_libdir}|g" sudoers.d/* %build @@ -36,6 +37,7 @@ rm -rf %{buildroot} %doc README LICENSE %{_libdir}/nagios/plugins/* /etc/nrpe.d/check_hpacucli.cfg +/etc/sudoers.d/check_hpacucli %changelog * Thu Aug 23 2012 Pall Sigurdsson 1.2-2 diff --git a/check_hpacucli/sudoers.d/check_hpacucli b/check_hpacucli/sudoers.d/check_hpacucli new file mode 100644 index 0000000..f966ff6 --- /dev/null +++ b/check_hpacucli/sudoers.d/check_hpacucli @@ -0,0 +1 @@ +nrpe ALL=(ALL) NOPASSWD: /usr/lib64/nagios/plugins/check_hpacucli.py