NagiosXI mailnotification issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

NagiosXI mailnotification issue

Post by nagarjuna »

Dear Team,

We have installed CentOS 6-5 configured latest nagiosxi from web
http://assets.nagios.com/downloads/nagi ... ctions.pdf

Now we are facing issue with mail notification, As we have selected sendmail from notification mail configuration. we are getting following error message in /var/log/maillog

:40 nagiosXI postfix/error[17286]: A93CF2D90: to=<[email protected]>, relay=none, delay=52595, delays=52595/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17288]: A3C4F44ED: to=<[email protected]>, relay=none, delay=306943, delays=306943/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: AF8A35A74: to=<[email protected]>, relay=none, delay=172907, delays=172907/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17287]: AE2D4636F: to=<[email protected]>, relay=none, delay=57209, delays=57209/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17288]: A6ABF5052: to=<[email protected]>, relay=none, delay=215898, delays=215897/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: A4D05324B: to=<[email protected]>, relay=none, delay=432905, delays=432905/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/cleanup[17278]: 288655E25: message-id=<[email protected]>
Jul 30 21:05:40 nagiosXI postfix/error[17285]: AB7D824F2: to=<[email protected]>, relay=none, delay=433400, delays=433400/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17286]: A5AAC5D37: to=<[email protected]>, relay=none, delay=126354, delays=126353/0.01/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/bounce[17282]: A4D05324B: sender non-delivery notification: 288655E25
Jul 30 21:05:40 nagiosXI postfix/cleanup[17278]: 2A5855E29: message-id=<[email protected]>
Jul 30 21:05:40 nagiosXI postfix/bounce[17284]: AB7D824F2: sender non-delivery notification: 2A5855E29
Jul 30 21:05:40 nagiosXI postfix/local[17280]: 2A5855E29: to=<[email protected]>, relay=local, delay=0.02, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: A107335A0: to=<[email protected]>, relay=none, delay=407784, delays=407784/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17288]: AE5DF4791: to=<[email protected]>, relay=none, delay=281765, delays=281765/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17285]: A24B55E78: to=<[email protected]>, relay=none, delay=96953, delays=96953/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17287]: AE15F3518: to=<[email protected]>, relay=none, delay=411821, delays=411821/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/local[17280]: 288655E25: to=<[email protected]>, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jul 30 21:05:40 nagiosXI postfix/error[17286]: A0B895D41: to=<[email protected]>, relay=none, delay=139374, delays=139374/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17288]: A9F844667: to=<[email protected]>, relay=none, delay=294306, delays=294306/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: A42CC2B90: to=<[email protected]>, relay=none, delay=340995, delays=340995/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17287]: AFCA73B37: to=<[email protected]>, relay=none, delay=353178, delays=353178/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17285]: ADBC62B78: to=<[email protected]>, relay=none, delay=324795, delays=324795/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: A6168626A: to=<[email protected]>, relay=none, delay=81417, delays=81417/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17288]: A48325314: to=<[email protected]>, relay=none, delay=197775, delays=197775/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17285]: A4B5A5964: to=<[email protected]>, relay=none, delay=156501, delays=156501/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: AF90A6306: to=<[email protected]>, relay=none, delay=69840, delays=69840/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17286]: ACE8E4CCB: to=<[email protected]>, relay=none, delay=248013, delays=248013/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17288]: A38854FAB: to=<[email protected]>, relay=none, delay=227148, delays=227148/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17285]: A98176A7B: to=<[email protected]>, relay=none, delay=10098, delays=10098/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
Jul 30 21:05:40 nagiosXI postfix/error[17289]: AED792B88: to=<[email protected]>, relay=none, delay=312498, delays=312498/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)

As we have configured SMTP also, we have properly mentioned ip,username,password but not able to get mail notification on "[email protected]"
please help on this thanks in advanced ...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagiosXI mailnotification issue

Post by tmcdonald »

Code: Select all

connect to mail2.drreddys.com[202.3.66.84]:25: Connection timed out)
It looks like your mail server is not responsive. Can you ping/nmap it?

Code: Select all

ping 202.3.66.84
nmap -v 202.3.66.84
Former Nagios employee
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: NagiosXI mailnotification issue

Post by nagarjuna »

# ping 202.3.66.84
PING 202.3.66.84 (202.3.66.84) 56(84) bytes of data.

# nmap 202.3.66.84
Starting Nmap 5.51 ( http://nmap.org ) at 2014-08-04 23:41 IST
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 6.90 seconds
You have mail in /var/spool/mail/root

# nmap -Pn 202.3.66.84

Starting Nmap 5.51 ( http://nmap.org ) at 2014-08-04 23:43 IST
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.04 seconds
You have mail in /var/spool/mail/root

As we have configured smtp server with mail server (192.168.1.200) with port 25.
Also we need to configure proxy in this VM CentOS Machine where we installed NagiosXI.

We are not able to send mail from command prompt also..... .please suggest.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagiosXI mailnotification issue

Post by tmcdonald »

It definitely looks like that IP is down.

What is the IP address of the SMTP server you are trying to use? Is that the 192.168.1.200 or is that a proxy? I think you've just got the wrong IP in use for your SMTP server.

Go to Admin -> Manage Email Settings and tell me what you have in the "Host:" field.
Former Nagios employee
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: NagiosXI mailnotification issue

Post by nagarjuna »

As i have mentioned 192.168.1.200 thats my mistake, SMTP Server IP is 152.63.1.200

NagiosXI IP : 152.63.2.155


Admin --> Manage Email Setting -->

Host: 152.63.1.200 (SMTP Server)
Port : 25
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagiosXI mailnotification issue

Post by tmcdonald »

So the next step is to try and ping that server and nmap it:

Code: Select all

ping 152.63.1.200
nmap -vv 152.63.1.200
It's looking pretty down from my end. Are you certain that is the right IP and that the server is running? Are there firewall rules in place preventing contact to it?
Former Nagios employee
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: NagiosXI mailnotification issue

Post by nagarjuna »

Thank you very much...
tonight i am not on desk tomorrow morning i will get all the details with ping and nmap -vv.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: NagiosXI mailnotification issue

Post by nagarjuna »

HI..

all is good ,
This server is not connected to internet
We are not sure- from where it is picking - mail1.drreddys.com[202.3.66.85]
Plese help- desired output enclosed

-----

[root@nagiosXI ~]#
[root@nagiosXI ~]# ping 152.63.1.200
PING 152.63.1.200 (152.63.1.200) 56(84) bytes of data.
64 bytes from 152.63.1.200: icmp_seq=1 ttl=128 time=0.328 ms
64 bytes from 152.63.1.200: icmp_seq=2 ttl=128 time=0.294 ms
64 bytes from 152.63.1.200: icmp_seq=3 ttl=128 time=0.345 ms
^C
--- 152.63.1.200 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2870ms
rtt min/avg/max/mdev = 0.294/0.322/0.345/0.025 ms
[root@nagiosXI ~]# nmap -vv 152.63.1.200

Starting Nmap 5.51 ( http://nmap.org ) at 2014-08-05 20:13 IST
Initiating ARP Ping Scan at 20:13
Scanning 152.63.1.200 [1 port]
Completed ARP Ping Scan at 20:13, 0.02s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 20:13
Completed Parallel DNS resolution of 1 host. at 20:13, 0.00s elapsed
Initiating SYN Stealth Scan at 20:13
Scanning mymail.mydrreddys.com (152.63.1.200) [1000 ports]
Discovered open port 135/tcp on 152.63.1.200
Discovered open port 25/tcp on 152.63.1.200
Discovered open port 139/tcp on 152.63.1.200
Discovered open port 1025/tcp on 152.63.1.200
Discovered open port 3389/tcp on 152.63.1.200
Discovered open port 80/tcp on 152.63.1.200
Discovered open port 445/tcp on 152.63.1.200
Discovered open port 5900/tcp on 152.63.1.200
Discovered open port 1032/tcp on 152.63.1.200
Discovered open port 1352/tcp on 152.63.1.200
Discovered open port 5555/tcp on 152.63.1.200
Discovered open port 5800/tcp on 152.63.1.200
Discovered open port 1311/tcp on 152.63.1.200
Discovered open port 389/tcp on 152.63.1.200
Discovered open port 465/tcp on 152.63.1.200
Discovered open port 8081/tcp on 152.63.1.200
Completed SYN Stealth Scan at 20:13, 1.16s elapsed (1000 total ports)
Nmap scan report for mymail.mydrreddys.com (152.63.1.200)
Host is up (0.00051s latency).
Scanned at 2014-08-05 20:13:44 IST for 1s
Not shown: 984 closed ports
PORT STATE SERVICE
25/tcp open smtp
80/tcp open http
135/tcp open msrpc
139/tcp open netbios-ssn
389/tcp open ldap
445/tcp open microsoft-ds
465/tcp open smtps
1025/tcp open NFS-or-IIS
1032/tcp open iad3
1311/tcp open rxmon
1352/tcp open lotusnotes
3389/tcp open ms-term-serv
5555/tcp open freeciv
5800/tcp open vnc-http
5900/tcp open vnc
8081/tcp open blackice-icecap
MAC Address: 00:15:C5:FD:E6:72 (Dell)

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 1.30 seconds
Raw packets sent: 1082 (47.592KB) | Rcvd: 1001 (40.092KB)
[root@nagiosXI ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI mailnotification issue

Post by scottwilkerson »

If you want to send via SMTP you can configure this in Admin -> Manage Email Settings
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: NagiosXI mailnotification issue

Post by nagarjuna »

Dear Team,

We have configured SMTP as you have mentioned please check the following setting in attachment.
You do not have the required permissions to view the files attached to this post.
Locked