Re: Questions from a beginner
Posted: Thu May 02, 2013 6:12 am
We have the same problem. Notifications for users are sent out normally, but when there is only a contact, no email is sent.
THis is the output of [root@srvnagios01 ~]# ll /etc/alternatives/mta
lrwxrwxrwx. 1 root root 26 Jun 6 2012 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix
Also in the notifications area, you can see the notification to the contact should have been sent out, but no email is arriving in the mailbox.
Tried changing the hostname localhost in Nagios XI itself, and addign an entry to the /etc/hosts "<ip> <hostname> , but still no email notifications for contacts though.
Notifications for users still work though..
Looking into the /var/log/maillog it seems nagios is trying to connect to the wrong smtp server..
I can see the following entries:
May 2 15:35:09 srvnagios01 postfix/smtp[4552]: connect to mail2.domain.be[xxx.123.3.141]:25: Connection timed out
May 2 15:35:39 srvnagios01 postfix/smtp[4552]: connect to mail.domain.be[xxx.123.26.149]:25: Connection timed out
But mail.domain.be and the IP addresses don't exist... So obviously Nagios fails to send the email.. Can anyone tell me where I can change the smtp server he tries connecting to? As I seem to find only information about Nagios Core and Sendmail on the web.
Any help is much appreciated.
THis is the output of [root@srvnagios01 ~]# ll /etc/alternatives/mta
lrwxrwxrwx. 1 root root 26 Jun 6 2012 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix
Also in the notifications area, you can see the notification to the contact should have been sent out, but no email is arriving in the mailbox.
Tried changing the hostname localhost in Nagios XI itself, and addign an entry to the /etc/hosts "<ip> <hostname> , but still no email notifications for contacts though.
Notifications for users still work though..
Looking into the /var/log/maillog it seems nagios is trying to connect to the wrong smtp server..
I can see the following entries:
May 2 15:35:09 srvnagios01 postfix/smtp[4552]: connect to mail2.domain.be[xxx.123.3.141]:25: Connection timed out
May 2 15:35:39 srvnagios01 postfix/smtp[4552]: connect to mail.domain.be[xxx.123.26.149]:25: Connection timed out
But mail.domain.be and the IP addresses don't exist... So obviously Nagios fails to send the email.. Can anyone tell me where I can change the smtp server he tries connecting to? As I seem to find only information about Nagios Core and Sendmail on the web.
Any help is much appreciated.