Build precise queries to find exactly what you need
Press ESC to close
@josby
Member Since: March 21, 2012
Favorites0
Views
Projects0
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.
Reviewed 14 years ago