Email notifications not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Email notifications not working

Post by lsazzad »

Hi,

I am not getting any email from my NAGIOS system. Receing Connection timedout notification in log. :o :o

Apr 8 13:20:01 RR-DE-NMS-1 postfix/qmgr[1330]: 2B316D20937: from=<[email protected]>, size=746, nrcpt=1 (queue active)
Apr 8 13:20:02 RR-DE-NMS-1 postfix/local[8048]: 2B316D20937: to=<[email protected]>, orig_to=<root>, relay=local, delay=1.1,
delays=0.01/0.08/0/1, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Apr 8 13:20:02 RR-DE-NMS-1 postfix/qmgr[1330]: 2B316D20937: removed
Apr 8 13:25:31 RR-DE-NMS-1 postfix/pickup[1329]: 5D4CCD20937: uid=0 from=<root>
Apr 8 13:25:31 RR-DE-NMS-1 postfix/cleanup[8088]: 5D4CCD20937: message-id=<[email protected]
ternal>
Apr 8 13:25:31 RR-DE-NMS-1 postfix/qmgr[1330]: 5D4CCD20937: from=<[email protected]>, size=501, nrcpt=1 (queue active)
Apr 8 13:26:01 RR-DE-NMS-1 postfix/smtp[8090]: connect to cluster8.eu.messagelabs.com[85.158.139.19]:25: Connection timed out
Apr 8 13:26:22 RR-DE-NMS-1 postfix/qmgr[1330]: 31A17D20936: from=<[email protected]>, size=718, nrcpt=1 (queue active)
Apr 8 13:26:31 RR-DE-NMS-1 postfix/smtp[8090]: connect to cluster8.eu.messagelabs.com[85.158.137.19]:25: Connection timed out
Apr 8 13:26:52 RR-DE-NMS-1 postfix/smtp[8093]: connect to cluster8.eu.messagelabs.com[85.158.137.19]:25: Connection timed out
Apr 8 13:27:01 RR-DE-NMS-1 postfix/smtp[8090]: connect to cluster8.eu.messagelabs.com[85.158.140.195]:25: Connection timed out
Apr 8 13:27:22 RR-DE-NMS-1 postfix/smtp[8093]: connect to cluster8.eu.messagelabs.com[85.158.140.195]:25: Connection timed out
Apr 8 13:27:31 RR-DE-NMS-1 postfix/smtp[8090]: connect to cluster8.eu.messagelabs.com[85.158.140.211]:25: Connection timed out
Apr 8 13:27:52 RR-DE-NMS-1 postfix/smtp[8093]: connect to cluster8.eu.messagelabs.com[85.158.139.19]:25: Connection timed out
Apr 8 13:28:01 RR-DE-NMS-1 postfix/smtp[8090]: connect to cluster8.eu.messagelabs.com[85.158.139.51]:25: Connection timed out
Apr 8 13:28:01 RR-DE-NMS-1 postfix/smtp[8090]: 5D4CCD20937: to=<[email protected]>, relay=none, delay=150, delays=0.

But, when i have tried manually to check postfix service, it seems ok using following command.
*POSTFIX MAIL checking:
telnet <IP> 25
EHLO
MAIL FROM: <from-email>
RCPT TO: <recipient-email>
DATA
Type message here.
. <Enter>
=>

SO, i suspect nagios alert configuration is having some problem. Anyone is having any idea over this?
Regards
Sazzad
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Email notifications not working

Post by abrist »

Can you post your notification handlers from commands.cfg?
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.
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: Email notifications not working

Post by lsazzad »

Issue has solved!

I have edited main.cf file postfix. There i just added my SMTP info at relayhost & it works...

Code: Select all

relayhost = [172.19.1.31]:25

Code: Select all

root@RR-DE-NMS-1:/etc/postfix# ls -lrt
total 84
drwxr-xr-x 2 root root  4096 Feb  5 19:36 sasl
-rwxr-xr-x 1 root root 28047 Feb  5 19:36 post-install
-rwxr-xr-x 1 root root  8861 Feb  5 19:36 postfix-script
-rw-r--r-- 1 root root 20281 Feb  5 19:36 postfix-files
-rw-r--r-- 1 root root   274 Apr 16 11:28 dynamicmaps.cf
-rw-r--r-- 1 root root  6068 Apr 16 11:28 master.cf
-rw-r--r-- 1 root root  1396 Apr 16 12:32 main.cf.balapril16
[u]-rw-r--r-- 1 root root  1422 Apr 16 12:34 main.cf[/u]
Admin can close the thread!!!!
Regards
Sazzad
Locked