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