NOtification Not Working.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
harshvardhan.dave
Posts: 10
Joined: Thu Jun 30, 2016 6:05 am

NOtification Not Working.

Post by harshvardhan.dave »

We are facing a issue where the notification are not getting generated to the Email ID. W have enabled the Notification preferences,Add the host notification handler and Service notification Handler,selected the Alert for Down,Unreachable and Flapping. The test mail are firing but unable to get the notification.
Last edited by harshvardhan.dave on Mon Apr 17, 2017 4:58 am, edited 1 time in total.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NOtification Not Working.

Post by dwhitfield »

Please run through https://support.nagios.com/kb/article.php?id=36

If that KB does not resolve your issue, 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.
harshvardhan.dave
Posts: 10
Joined: Thu Jun 30, 2016 6:05 am

Re: NOtification Not Working.

Post by harshvardhan.dave »

We are able to send the test mail ti our id but while enabling the notification we get the following error in /var/log/maillog
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NOtification Not Working.

Post by dwhitfield »

What's the output of the following commands from the Nagios server:

Code: Select all

telnet SMTPSERVER 25
traceroute STMPSERVER
You may need to install traceroute first.

It's helpful if you provide text output in code blocks rather than screenshots, unless you are displaying stuff in a GUI. It's probably quicker for you too since you can just do a find/replace on any sensitive info.
harshvardhan.dave
Posts: 10
Joined: Thu Jun 30, 2016 6:05 am

Re: NOtification Not Working.

Post by harshvardhan.dave »

telnet 172.17.104.72 25
Trying 172.17.104.72...
Connected to 172.17.104.72.
Escape character is '^]'.
220 southmail. Microsoft ESMTP MAIL Service ready at Wed, 19 Apr 2017 18:02:38 +0530
500 5.3.3 Unrecognized command
500 5.3.3 Unrecognized command
500 5.3.3 Unrecognized command
500 5.3.3 Unrecognized command
500 5.3.3 Unrecognized command
421 4.7.0 Too many errors on this connection, closing transmission channel
Connection closed by foreign host.

traceroute 172.17.104.72
traceroute to 172.17.104.72 (172.17.104.72), 30 hops max, 60 byte packets
1 172.17.130.2 (172.17.130.2) 1.546 ms 1.509 ms 1.492 ms
2 172.17.156.115 (172.17.156.115) 0.816 ms 0.451 ms 0.433 ms
3 172.17.156.68 (172.17.156.68) 1.434 ms 1.486 ms 1.632 ms
harshvardhan.dave
Posts: 10
Joined: Thu Jun 30, 2016 6:05 am

Re: NOtification Not Working.

Post by harshvardhan.dave »

We are receiving the Test Mail sent from graphical Interface. Even can see nagios firing the notification under homepage-->Incident Management-->notification
But not receiving a single mail to the in box
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NOtification Not Working.

Post by dwhitfield »

Those errors suggest there's something up with your Exchange server. There seem to be many possible resolutions: https://social.technet.microsoft.com/Fo ... ginglegacy

Personally, I'd just start with rebooting the Exchange server, if that's an option.
harshvardhan.dave
Posts: 10
Joined: Thu Jun 30, 2016 6:05 am

Re: NOtification Not Working.

Post by harshvardhan.dave »

After the reboot we are facing the following error in /var/log/messages
Apr 20 18:20:28 localhost postfix/error[60742]: 87FA816204A: to=<harshvardhan.dave@amrutsoftware.com>, relay=none, delay=38601, delays=38601/0/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.aspmx.l.google.com[173.194.77.27]:25: Connection refused)
Apr 20 18:20:35 localhost postfix/pickup[60740]: 4B9FB167732: uid=503 from=<nagios>
Apr 20 18:20:35 localhost postfix/cleanup[54820]: 4B9FB167732: message-id=<20170420125035.4B9FB167732@SRVBAN19NAPVM01>
Apr 20 18:20:35 localhost postfix/qmgr[43412]: 4B9FB167732: from=<nagios@sisahpm.com>, size=769, nrcpt=1 (queue active)
Apr 20 18:20:35 localhost postfix/error[60758]: 4B9FB167732: to=<devaraj.j@sisahpm.com>, relay=none, delay=0.08, delays=0.07/0/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to sisahpm.com[10.81.113.147]:25: Connection refused)
Apr 20 18:20:44 localhost postfix/smtp[60261]: connect to mpasis.com[192.168.131.65]:25: Connection timed out
Apr 20 18:20:44 localhost postfix/smtp[60261]: connect to sisahpm.com[10.81.113.123]:25: Connection refused
Apr 20 18:20:44 localhost postfix/smtp[60261]: connect to sisahpm.com[10.81.113.147]:25: Connection refused
Apr 20 18:20:55 localhost postfix/smtp[60183]: connect to sisahpm.com[192.168.131.65]:25: Connection timed out
Apr 20 18:20:55 localhost postfix/smtp[60183]: 1AD9C16771E: to=<devaraj.j@sisahpm.com>, relay=none, delay=90, delays=0.06/0.04/90/0, dsn=4.4.1, status=deferred (connect to sisahpm.com[192.168.131.65]:25: Connection timed out)
Apr 20 18:21:04 localhost postfix/pickup[60740]: 7ACB8167735: uid=503 from=<nagios>
Apr 20 18:21:04 localhost postfix/cleanup[54820]: 7ACB8167735: message-id=<20170420125104.7ACB8167735@SRVBAN19NAPVM01>
Apr 20 18:21:04 localhost postfix/qmgr[43412]: 7ACB8167735: from=<nagios@sisahpm.com>, size=791, nrcpt=1 (queue active)
Apr 20 18:21:04 localhost postfix/error[60728]: 7ACB8167735: to=<devaraj.j@sisahpm.com>, relay=none, delay=0.1, delays=0.08/0/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to sisahpm.com[10.81.113.147]:25: Connection refused)
^[[28~Apr 20 18:21:14 localhost postfix/smtp[60261]: connect to sisahpm.com[172.16.144.179]:25: Connection timed out
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NOtification Not Working.

Post by dwhitfield »

You should rerun

Code: Select all

telnet SMTPSERVER 25
traceroute STMPSERVER
for those different servers.

You never did send 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.

Also, can you post a screenshot of http://YOURSERVER/nagiosxi/admin/mailsettings.php
harshvardhan.dave
Posts: 10
Joined: Thu Jun 30, 2016 6:05 am

Re: NOtification Not Working.

Post by harshvardhan.dave »

Hi please find the profile below.
You do not have the required permissions to view the files attached to this post.
Locked