Running via NRPE

When running via NRPE:

This plugin uses sudo to load /usr/sbin/MegaCli.

/etc/sudoers must be modified to allow nagios to run this command as root. AND you must comment out the “Defaults requiretty” line as follows:

# Defaults requiretty
nagios ALL = NOPASSWD: /usr/sbin/MegaCli