I installed Nagios onto a box of mine which has CGI running suexec, since it’s being used to host customers as well. However I keep getting these types of errors:
Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios 1.0b4 *****\n\nNotification Type: PROBLEM\nHost: site.org\nState: DOWN\nAddress: 192.168.0.12\nInfo: /bin/ping -n -U -c 1 192.168.0.12\n\nDate/Time: Sat Mar 12 08:46:33 PST 2005\n" | /bin/mail -s "Host DOWN alert for site.org!" [[email protected]
)" resulted in a return code of 126. Make sure the script or binary you are trying to execute actually exists...
Because of this Nagios can’t send mail, can’t perform ping, etc. Any commands outside of the user’s home directory basically is offlimits it seems.
How do I go about fixing this problem? Nagios gives me such a huge headache. :evil: