Greetings,
I’ve got Nagios set up on RHEL, and notifications work just fine. However, I’d like our notifications to be sent to an internal e-mail address ([email protected]) instead of to each of the contacts directly.
It seems that nagios is able to queue up the mail for sending, but we never get the e-mail. I’ve checked /var/log/maillog, and I see this:
Jul 20 16:27:44 xxx sendmail[16417]: o6KKRiQl016417: from=<nagios@xxx>, size=629, class=0, nrcpts=1, msgid=<201007202027.o6KKRiJj016416@xxx>, proto=ESMTP, daemon=MTA, relay=xxx
Jul 20 16:27:44 xxx sendmail[16416]: o6KKRiJj016416: [email protected], ctladdr=nagios (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30309, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o6KKRiQl016417 Message accepted for delivery)
Jul 20 16:27:44 xxx sendmail[16419]: o6KKRiQl016417: to=<[email protected]>, ctladdr=<nagios@xxx> (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120629, relay=yy.int, dsn=5.1.2, stat=Host unknown (Name server: yy.int: host not found)
Jul 20 16:27:44 xxx sendmail[16419]: o6KKRiQl016417: o6KKRiQl016419: DSN: Host unknown (Name server: yy.int: host not found)
Jul 20 16:27:44 xxx sendmail[16419]: o6KKRiQl016419: to=<nagios@xxx>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31891, dsn=2.0.0, stat=Sent
So it seems nagios is not able to resolve the yy.int address. Is this because of the relay that the e-mail is getting sent to? Do I have to contact the admin of our relay to allow it to accept e-mail from my nagios machine?
Thanks for the help