Page 1 of 1

Email Notifications Problem

Posted: Wed Aug 22, 2012 2:48 am
by trungleviet
Dear all,
I installed postfix on my CentOS; i tested OK with postfix but i could not receive alert email from nagioscore. When checking /usr/local/nagios/var/nagioslog, i seen an error:

"emailaddress" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...

Can you please advice me for this error?

Re: Email Notifications Problem

Posted: Wed Aug 22, 2012 1:46 pm
by agriffin
Can you post your notification command definitions? Also, do you receive mail okay if you run the following command (edit to use your email address)?

Code: Select all

# echo testing | mail [email protected]

Re: Email Notifications Problem

Posted: Wed Aug 22, 2012 10:38 pm
by trungleviet
Many thanks agriffin,
After running "echo testing | mail myemailaddress@domainname" command;
i seen that i need to install mailx package for further, after done that, i could receive email from nagios

Many thanks for your help, agriffin :)