mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-12 21:43:46 +01:00
Add sudoers support to check_hpacucli
Affects okconfig issue 3
This commit is contained in:
parent
71673753ff
commit
a570b1c40e
@ -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 <palli@opensource.is> 1.2-2
|
||||
|
1
check_hpacucli/sudoers.d/check_hpacucli
Normal file
1
check_hpacucli/sudoers.d/check_hpacucli
Normal file
@ -0,0 +1 @@
|
||||
nrpe ALL=(ALL) NOPASSWD: /usr/lib64/nagios/plugins/check_hpacucli.py
|
Loading…
Reference in New Issue
Block a user