Hi, jeremiah wrote: > i check the manual and this is what it says about this particular error: > > On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote: >> I just chown'd the file for nagios. >> >> $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py >> >> $ ls -la *.py >> -rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 21:55 >> report_loadscript_error_log.py >> >> I'm now getting a different error after i fixed the path issue. >> >> $ /usr/lib/nagios/plugins/check_nrpe -H 10.10.10.45 -c >> loadscript_check_error_log >> NRPE: Unable to read output >> >> Thoughts?
"/home/jesterj/" is probably chowned to 700 anyway so the NRPE daemon won't be able to access and execute it anyway. Try running it manually with sudo to see the actual result: sudo -u nagios /usr/local/bin/python /home/jesterj/report_loadscript_error_log.py Also, you should copy your script in a more appropriate location such as /usr/local/bin or even /usr/lib/nagios/plugins if you have installed Nagios on a Debian or Ubuntu server. You can also try to start NRPE with "debug=1": "How to go about debugging other problems... When debugging problems it may be useful to edit the NRPE configuration file and change the debug=0 entry to debug=1. Once you do that, restart the NRPE daemon if it is running as a standalone daemon. After you try using the check_nrpe plugin again, you should be able to see some debugging information in the log files of the remote host. Check your logs carefully – they should be able to help provide clues as to where the problem lies..." Ref.: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf -- Mathieu ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null