We have check_hparray plugin installed on all of our HP servers, running CentOS, for monitoring hardware raid via HP Array Configuration Utility CLI (hpacucli) tool, and we have NRPE installed as well for this check from our remote Nagios server.
Yesterday we’ve setup another HP server and installed NRPE, check_hparray, and hpacucli, same process used on previous installations. NRPE worked fine locally and from the Nagios server as the local disk space check was configured properly, but when we tried check_hparray we got “check_hparray Error”. This error can have different causes like invalid slot value used or problems with permissions on executing hpacucli command.
We reviewed our setup and installations and we have the same settings (based on setup with other servers).
We run check_hparray from NRPE we got the error:
and it worked fine if run
check_hparray command directly:
Both of the commands above were tested using root and nagios users and they have the same results. Then we enabled NRPE DEBUG option to get details on the problem:
1 2 3 4 5 6
and by looking on the system logs we saw the problem with our sudo:
and the solution was to comment out in
/etc/sudoers file the line: