Random Project

Had one problem running from NRPE

Worked fine when run from the command line, but when I called it from NRPE using check_nrpe, I was getting “NRPE: Unable to read output”

The problem was the plugin’s reliance on the swapinfo command. On my system, that is in /usr/sbin, which was apparently not in the PATH of the nrpe user my NRPE daemon runs as. I modified this file to run /usr/sbin/swapinfo to get the memory info and then it worked fine.