Hi,
I have got issues with notification email on Solaris 10.
I created a link for mailx called Mail, like the documentation said, but emails were not delivered for timeout:

[1272615221] Warning: Contact 'admin' service notification command '/usr/bin/printf "%b" "PROBLEM: Connectivity - LAN is CRITICAL on host XXXXXXX: CRITICAL - 10.19.17.200: rta n an, lost 100%\n\nService: Connectivity - LAN\nHost: www.187.it\nAlias: portale 187\nAddress: 10.19.17.200\nState: CRITICAL\nComment: ()\nDate/Time: Fri Apr 30 10:13:10 CEST 2010\n \nAdditional Info:\n\nCRITICAL - 10.19.17.200: rta nan, lost 100%" | /usr/bin/Mail -s "PROBLEM: Connectivity - LAN is CRITICAL on XXXXXXX" r...@xxxxxxx' timed out after
30 seconds

I've patched /usr/local/nagios/bin/nagconfgen.pl addind "\n.\n" at the end of the command before the pipe to /usr/bin/Mail. It seems that Solaris mailx need the single dot to terminate the email.

Strangely if I run the command as the nagios user on a shell, "\n.\n", is not required.

Any ideas?

Thanks,
Emilio
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to