No E-mail Notifications are coming through

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
domsch1988
Posts: 32
Joined: Tue Aug 15, 2017 1:20 am

No E-mail Notifications are coming through

Post by domsch1988 »

Hello Everyone,

I just registered here after reading the forums for months. You have always been helpful and so i hope, to get some guidance on how to fix a Problem i'm encountering.

First off, the facts
Nagios XI 5.4.4 (Update to 5.4.8 is planned)
CentOS 7.3.1611 (Core) 64bit
Virtual Machine, 4 cores 8GB Ram

I've been given the machine at work to build up as our central customer monitoring. I have not done the Installation myself, but did 99% of the post installation configuration.

Currently i have 44 Hostgroups, 450 Hosts and about 1.600 Services Configured. Everything is sailing really smoothly. Apart from the fact i can't get any e-mail notifications to work. They did work initially. Upon recieveing over 300 E-Mails over one night, i did set "First Notificaton delay" to 60 Minutes. Everything else is XI Default or how the wizards set it (i can post the settings in detail if needed). After that i never got a mail again. I reverted the setting back, but mails did not come back.

I'm really lost here. Notifications and Alerts are configured in three or four places (in Services, In Users, In Contacts, Hosts, Hostgroups...) and i have no clue which are the relevant ones. I am using an Internal Exchange Server with SMTP an dwithout Authentication. A Testmail Send via the Admin Page is recieved perfectly fine.

Any tips on how to troubleshoot this are highly welcome! If you need any more information, please let me know.

Greetings,
Dominik
bolson

Re: No E-mail Notifications are coming through

Post by bolson »

Hello domsch1988,

Thank you for your interest in NagiosXI.

Did you use this guide to setup notifications?

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Please post the output of the following command:

Code: Select all

tail -n 40 /var/log/maillog
domsch1988
Posts: 32
Joined: Tue Aug 15, 2017 1:20 am

Re: No E-mail Notifications are coming through

Post by domsch1988 »

Thanks for the response.
So, the Mail log is full of those Messages:

Code: Select all

Aug 16 07:13:29 localhost postfix/error[53792]: 4A43C386A5BB: to=<servicedesk@*.com>, relay=none, delay=433131, delays=433070/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx02.*.com[89.1.69.70]:25: Connection timed out)
It seems postfix is not using the SMTP Server thats configured in the Admin Pages Email Settings. The Mail Server it's trying to use (mx02.*) is different from the one configured in the Mail Settings. I'm now going through the setup guide to see why.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: No E-mail Notifications are coming through

Post by dwhitfield »

domsch1988 wrote:the SMTP Server thats configured in the Admin Pages Email Settings
I bet you need to take a look at https://assets.nagios.com/downloads/nag ... Mailer.pdf

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
domsch1988
Posts: 32
Joined: Tue Aug 15, 2017 1:20 am

Re: No E-mail Notifications are coming through

Post by domsch1988 »

My last post got disapproved, so here i try again:
The Problem was already resolved. The Mail Log pushed me in the right direction.
We're using an Ironport for Spam Protection. After putting that as a smart host into /etc/postfix/main.cf Mails are going out like they should.
I spend the whole day yesterday putting all the random settings i tried concerning notifications back to reasonable settings. Now everything is fine.

Thanks for the help!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: No E-mail Notifications are coming through

Post by dwhitfield »

domsch1988 wrote:My last post got disapproved, so here i try again:
That's strange. You posted the exact same message? Obviously, your account is working.

Regardless, glad it's working for you!
Locked