Page 1 of 2

How to Configure Email Notification, notifications missing

Posted: Mon Feb 02, 2015 10:42 am
by swapnil.kadam
Hello Team,

Can you help me to configure email alert notification in Nagios XI, I already have a SMTP server up and running in my environment and I want to use the same for Nagios Alert Notifications.

I have attached current configuration screen shots for your reference.

Do let me know what is that I am missing to configure.

Regards,
Swapnil

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 10:52 am
by tmcdonald
Make sure that the contacts you have set up also have associated XI users, and that they are using the xi_host_notification_command xi_host_notification_handler and xi_service_notification_command xi_service_notification_handler set instead of the notify-host-by-email and notify-service-by-email command set.

http://assets.nagios.com/downloads/nagi ... ntacts.pdf

Edit: I typed "command" instead of "handler"

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 11:15 am
by swapnil.kadam
I cannot find xi_host_notification_command and xi_service_notification_command while setting up a contact, please find attached screen shot.

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 11:18 am
by slansing
As is shown in the document provided, the commands you are looking for end in handler, which are in that list.

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 11:53 am
by swapnil.kadam
Still no luck with email notifications, how can I troubleshoot what is causing the problem.
I am not getting any email after clicking on send test email in Nagios XI

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 12:05 pm
by tmcdonald
Do you have an associated XI user for each contact that you are trying to send emails to?

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 12:17 pm
by swapnil.kadam
Please find attached screen shots for users and contacts, do let me know if anything is missing.

Re: How to Configure Email Notification, notifications missi

Posted: Mon Feb 02, 2015 12:31 pm
by scottwilkerson
Can you run the following after hitting the test mail settings button

Code: Select all

tail -50 /usr/local/nagiosxi/tmp/phpmailer.log

Re: How to Configure Email Notification, notifications missi

Posted: Tue Feb 10, 2015 2:12 pm
by swapnil.kadam
[root@ip-x-x-x-x ec2-user]# tail -50 /usr/local/nagiosxi/tmp/phpmailer.log
SMTP Error: Could not connect to SMTP host. (method=smtp;host=x.x.x.x;port=25;smtpauth=true;security=ssl)

However I have checked that I can telnet the SMTP Host from the same Nagios XI Server

[root@ip-x-x-x-x ec2-user]# telnet x.x.x.x 25
Trying x.x.x.x...
Connected to x.x.x.x.
Escape character is '^]'.
220 xxxxxxxxxxx.Domain.local Microsoft ESMTP MAIL Service, Version: 7.5.7601.17514 ready at Tue, 10 Feb 2015 19:11:46 +0000

What could be the possible reason for not getting the alert notification emails through the Nagios XI

Re: How to Configure Email Notification, notifications missi

Posted: Tue Feb 10, 2015 2:53 pm
by swapnil.kadam
I have tested that I can send emails through command line, however no notifications are going through Nagios XI


[ec2-user@ip-x-x-x-x ~]$ mail -s "Hello Nagios Team" [email protected]
Hello Nagios Team
Please help to fix this issue with notifications
EOT
[ec2-user@ip-x-x-x-x ~]$


-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, February 10, 2015 2:52 PM
To: Kadam, Swapnil
Subject: Hello Nagios Team

Hello Nagios Team
Please help to fix this issue with notifications