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.
If you plan on using postfix I would use the .../usr/sbin/sendmail.postfix binary. You can run the "file" command to make sure it is an ELF executable.
Otherwise if you wish to use mailx, run "which mailx" and that will show you the binary's location.
Ok, I changed the /usr/bin/mail command to /usr/sbin/postfix and then I tried sending another custom host notification. I'm getting the following message that gives me hope:
[1406763948] EXTERNAL COMMAND: SEND_CUSTOM_HOST_NOTIFICATION;srv-FNW;0;nagiosadmin;Yet another test yet again
[1406763948] HOST NOTIFICATION: JobeePhone;srv-FNW;CUSTOM (UP);notify-host-by-email;PING OK - Packet loss = 0%, RTA = 0.13 ms;nagiosadmin;Yet another test yet again
[1406763949] wproc: NOTIFY job 96 from worker Core Worker 6904 is a non-check helper but exited with return code 1
[1406763949] wproc: host=srv-FNW; service=(none); contact=JobeePhone
[1406763949] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
I can't tell if I'm closer or just off in a different direction.
Thank you tmcdonald! Using sendmail.postfix did the trick after I removed the -s parameter. I just ran another custom host notification check and I received my text message in about five seconds. A big hearty thank you to everyone who helped with this issue.
jbruyet wrote:Thank you tmcdonald! Using sendmail.postfix did the trick after I removed the -s parameter. I just ran another custom host notification check and I received my text message in about five seconds. A big hearty thank you to everyone who helped with this issue.
And a big hearty "You're welcome!" to you. Gonna lock this one up now.