Trouble while configuring nagios notification
Posted: Sat Mar 07, 2015 4:12 pm
I am trying to configure Nagios notification but I don't know what wrong I am doing. Tried looking at numerous online documentations but still stuck at the same place.
I am unable to understand why the mails are sent to [email protected] instead of the configured contact email ids.
Would appreciate if someone can quickly point out the mistake and suggest corrective action.
My nagios v4.0.2 is running on Redhat Linux Server.
Command used:
notify-host-by-email: /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "$HOSTSTATE$ - $HOSTNAME$" -r "Nagios Alert <[email protected]>" $CONTACTEMAIL$
Error found in maillog:
Mar 8 02:02:26 msrv postfix/qmgr[29375]: 64DED300729: from=<[email protected]>, size=631, nrcpt=1 (queue active)
Mar 8 02:02:26 msrv postfix/smtp[33418]: 64DED300729: to=<[email protected]>, orig_to=<$>, relay=mail.abc.in[192.168.101.222]:25, delay=0.41, delays=0.28/0.01/0.03/0.08, dsn=5.1.1, status=bounced (host mail.abc.in[192.168.101.222] said: 550 5.1.1 Recipient unknown (in reply to RCPT TO command))
Please help.
Thanks,
Elson
I am unable to understand why the mails are sent to [email protected] instead of the configured contact email ids.
Would appreciate if someone can quickly point out the mistake and suggest corrective action.
My nagios v4.0.2 is running on Redhat Linux Server.
Command used:
notify-host-by-email: /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "$HOSTSTATE$ - $HOSTNAME$" -r "Nagios Alert <[email protected]>" $CONTACTEMAIL$
Error found in maillog:
Mar 8 02:02:26 msrv postfix/qmgr[29375]: 64DED300729: from=<[email protected]>, size=631, nrcpt=1 (queue active)
Mar 8 02:02:26 msrv postfix/smtp[33418]: 64DED300729: to=<[email protected]>, orig_to=<$>, relay=mail.abc.in[192.168.101.222]:25, delay=0.41, delays=0.28/0.01/0.03/0.08, dsn=5.1.1, status=bounced (host mail.abc.in[192.168.101.222] said: 550 5.1.1 Recipient unknown (in reply to RCPT TO command))
Please help.
Thanks,
Elson