Re: Questions from a beginner

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

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.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Questions from a beginner

Post by abrist »

@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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Questions from a beginner

Post by slansing »

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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Questions from a beginner

Post by scottwilkerson »

Have you set the hostname for this machine?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

Yes the hostname of the machine has been set.
Nagios XI 5.8.1
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

Post by slansing »

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?
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Questions from a beginner

Post by WillemDH »

Sent you a pm with new config file and tests.
Nagios XI 5.8.1
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

Post by slansing »

Excellent, I replied via PM, once we solve this there I'll post the resolution here.
Locked