I’m running Nagios on RH Enterprise with a cPanel front end. cPanel comes with Exim which I use as the defualt mail program for the domains I host on this box.
Nagios is configured properly in terms of alerts and web interface. The only problem is when sending out alerts. I only need to send out an alert to qn e-mail address. Following is the error message I get when manually forcing an alert as a test and using the command Nagios would use.
/usr/bin/printf “%b” “Service: HTTP\nHost: myhost\nAddress: mydomain.com\nState: CRITICAL\n
Info: $OUTPUT$\nDate: $DATETIME$” | /bin/mail -s “PROBLEM: myalias/HT
TP is CRITICAL”
-bash: /bin/mail: Permission denied
So, I guess that the issue is permissions with the printf script in the /bin/mail directory. I tried changing permissions but received “Operation not Permitted”
Anyone with experience with Nagios and Exim please help.
Any and all help will be appreciated