Unable to send notifications to contact SMS email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Unable to send notifications to contact SMS email

Post by jsharris »

I am trying to get notifications for specific services sent to the cell phones of contacts in Nagios but they are not being received. If I change a user's email address to the SMS email gateway address and send a test message it is received without issue. If trying to send to a contact, however, it does not make it. Notification history shows a message is sent. We are using SMTP through a local Exchange server for mail processing.

I have tried both the generic and xi_contact contact templates, as well as the notify-service-by-email and xi-service-notification-handler service notification commands without success (as well as combinations of both). When I have a user with a regular email and a contact with an SMS email address, the user receives the notification as expected but nothing arrives at the phone.

We could set up users instead of contacts but want to limit the number of users configured in Nagios. Also, we need to limit the notifications going out to phones to only a limited number of service and hosts checks.

Please help me figure out what I am missing. Thanks!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to send notifications to contact SMS email

Post by avandemore »

Can we start with this:

XI > Admin > System Profile > Download Profile

Please include the zip file in your response. You can PM myself or other support personnel if you have privacy concerns.
Previous Nagios employee
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Unable to send notifications to contact SMS email

Post by jsharris »

I am unable to download the system profile getting this when I try:

Code: Select all

PROFILE BUILD FAILED

Array
(
)

CODE: 1
I mentioned this in another post where the profile was needed but we did not come up with a solution.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to send notifications to contact SMS email

Post by avandemore »

Here is the probable resolution to that problem:

https://support.nagios.com/kb/article.p ... ategory=44
Previous Nagios employee
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Unable to send notifications to contact SMS email

Post by jsharris »

Those were the same instructions provided previously. I tried it again but the results are the same. Even went so far as to restart the server following the process. Still getting the PROFILE BUILD FAILED error.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to send notifications to contact SMS email

Post by avandemore »

Please attach or PM your /etc/sudoers.
Previous Nagios employee
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Unable to send notifications to contact SMS email

Post by jsharris »

Tried to work around this by setting up a distribution group in Active Directory but that doesn't work, either. When sending to the AD group, none of the members receive it. I can successfully send a message from a mail client to the distribution group and receive it in both my mail client and my phone. If I set the service notification to go to just my user, it works. When sent to a contact in Nagios XI with an email address of my external account it is not received. When my user account in Nagios is configured to use my phone or external email address everything works fine. If I change the contact (non-user) address to the same address as my user's, it is not received.

We only seem to be having a problem sending to non-user contacts, regardless of the destination address.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to send notifications to contact SMS email

Post by avandemore »

Can you run /usr/local/nagiosxi/scripts/reset_config_perms.sh and attempt the profile again?
Previous Nagios employee
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Unable to send notifications to contact SMS email

Post by jsharris »

Same error. Any service restarts or the like necessary for the change to be recognized?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to send notifications to contact SMS email

Post by dwhitfield »

Can you post or PM the output of the following:

Code: Select all

tail -100 /var/log/maillog
tail -100 /var/log/httpd/error_log
Also, at this point, the output of "Show Profile" rather than the larger "Download Profile" should give us some clues as to what is going on.
Locked