I already had the command configured in nrpe.cfg as:
Code: Select all
command[check_aacraid]=/usr/local/sbin/check-aacraid.py
But since it wasn't working I went ahead and tried removing NRPE from the equation anyway, nothing I've tried works.
Here are all the different "command_line"s I tried to use in the command definition:
Code: Select all
$USER1$/check_aacraid
$USER1$/check_aacraid.py
/usr/local/sbin/check_aacraid
/usr/local/sbin/check_aacraid.py
all return: Return code of 127 is out of bounds - plugin may be missing, I put a copy of check_aacraid.py into /usr/local/nagios/libexec for the commands that used $USER1$,
Code: Select all
python /usr/local/sbin/check_aacraid
python /usr/local/sbin/check_aacraid.py
both return (null). Not sure if any of these errors are better/worse/tell us any more about the NRPE error I was getting before, or even if I was doing the right thing to cut out NRPE. Afraid I can't work any more on this tonight but I will check back in tomorrow.