How to Configure Email Notification, notifications missing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

How to Configure Email Notification, notifications missing

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to Configure Email Notification, notifications missi

Post 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"
Former Nagios employee
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: How to Configure Email Notification, notifications missi

Post 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.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to Configure Email Notification, notifications missi

Post by slansing »

As is shown in the document provided, the commands you are looking for end in handler, which are in that list.
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: How to Configure Email Notification, notifications missi

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to Configure Email Notification, notifications missi

Post by tmcdonald »

Do you have an associated XI user for each contact that you are trying to send emails to?
Former Nagios employee
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: How to Configure Email Notification, notifications missi

Post by swapnil.kadam »

Please find attached screen shots for users and contacts, do let me know if anything is missing.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to Configure Email Notification, notifications missi

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: How to Configure Email Notification, notifications missi

Post 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
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: How to Configure Email Notification, notifications missi

Post 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
Locked