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.
Re: Questions from a beginner
Re: Questions from a beginner
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Questions from a beginner
@WillemDH: Are you using sendmail or smtp in XI? Have you configured the "send mail from" address in brackets under Admin --> Manage email settings?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Questions from a beginner
We are using smtp in XI. Notifications for users are arrving normally. I'll check tomoorow if I put it between bracket.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Questions from a beginner
Could both of you PM me your latest configuration snapshot? It is located at Admin > Manage Snapshots > Download the latest one by clicking the diskette icon.
Re: Questions from a beginner
Config snapshot has been sent. The contact I have been testing with is "test.contact". Manage Email settings has been set but it's not within brackets => Nagios XI <[email protected]>
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Questions from a beginner
Have you set the hostname for this machine?
Re: Questions from a beginner
Yes the hostname of the machine has been set.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Questions from a beginner
Can you provide me with an example host/service who had tripped a notification to be sent? "I should have asked this before, apologies." You can send that information in a PM if need be. In addition, is this test.contact also a user? Do you have a sample user with it's own contact who is not receiving notifications?
Re: Questions from a beginner
Sent you a pm with new config file and tests.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Questions from a beginner
Excellent, I replied via PM, once we solve this there I'll post the resolution here.