Operating System - Linux
1752583 Members
4667 Online
108788 Solutions
New Discussion юеВ

Re: Nagios NRPE + sudo + hpacucli not working

 
GoranTornqvist
Occasional Advisor

Re: Nagios NRPE + sudo + hpacucli not working

/etc/sudoers:

nagios ALL = NOPASSWD: /usr/sbin/hpacucli controller slot=0 ld all show
Rick Garland
Honored Contributor

Re: Nagios NRPE + sudo + hpacucli not working

I know this is closed but to add my experience;

My sudoers file has the following,
nagios ALL=NOPASSWD:/usr/sbin/hpacucli

This has worked for several months without issue.


Instead of the check_array plugin I am using a script, but HP says it doesn't matter.

What has been an issue is that the array check via hpacucli is not supported and has caused some of our systems to crash and not reboot. Feedback from HP says that even though there is this hpacucli check option it is not intended to query the array for prolonged periods. HP says that doing the hpacucli forces the array to init and flush the buffers. Most of the time this is not a concern as it will ride out. But watch out for when it does come back and bite you.

If a system does crash check the messages file. The last entry is a nagios sudo to run the hpacucli.
GoranTornqvist
Occasional Advisor

Re: Nagios NRPE + sudo + hpacucli not working

thanks for the tip ...

should add that the real solution for this was to uncomment "Defaults requiretty" in /etc/sudoers.