Email Notifications Problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
trungleviet
Posts: 35
Joined: Sat Mar 03, 2012 11:36 am
Location: Hanoi - Vietnam
Contact:

Email Notifications Problem

Post 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?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Email Notifications Problem

Post 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]
trungleviet
Posts: 35
Joined: Sat Mar 03, 2012 11:36 am
Location: Hanoi - Vietnam
Contact:

Re: Email Notifications Problem

Post 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 :)
Locked