Mobile Text

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
[email protected]
Posts: 52
Joined: Wed Nov 12, 2014 3:09 pm

Mobile Text

Post by [email protected] »

I have configured "Mobile Text" under "Notification Methods" for my account. I sent a test message and got 1 text to my cell phone. After that no test text messages will send and we only get email notifications. Is there something on our exchange server that is stopping the new messages?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Mobile Text

Post by tmcdonald »

What are the Host Notification Command and Service Notification Command entries for the contact you are trying to send to? They will need to use the xi_host_notification_hander and xi_service_notification_handler commands.
Former Nagios employee
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mobile Text

Post by slansing »

Are you using the xi_host/service, or notify-host/service contacts on your hosts/services? Can you try switching one of your hosts over to the xi_* commands and then navigate to Home > Hostname > Advanced > Send Custom Notification. Let us know if you receive it.
[email protected]
Posts: 52
Joined: Wed Nov 12, 2014 3:09 pm

Re: Mobile Text

Post by [email protected] »

I set the following below and resent a test message. I got an email but no text message on my cell phone:

Under “Configure” “Contact Management” “Alert Settings” “Manage Host Notification Commands” and “Manage Service Notification Commands” add the following services:

xi_host_notification_handler
xi_service_notification_handler


Save, Close, Save, Apply Configuration…

Then "Home" "Send Test Notifications"

It said the following:

A test email notification was sent to [email protected]
A test mobile text notification was sent to [email protected]

But still no text message received...

<Posts combined>

I then went to "Home" "Host Detail" Selected a Host and went to "Advanced".

Then:

You are requesting to send a custom host notification

Your command request was successfully submitted to Nagios for processing.

Note: It may take a while before the command is actually processed.


The email:

==================================================
***** Nagios XI Alert *****



Notification Type: CUSTOM

Service: $
Host: phxsa.grhc.local
Address: 10.10.20.50
State: $
Info:
$
Date/Time: 2015-01-06 05:04:53

Respond: http://10.10.25.225/nagiosxi/rr.php?uid ... 32fd7bce5d
Nagios URL: http://10.10.25.225/nagiosxi/
====================================================



I got an email notification but no text message on cell phone.

<Posts combined>

Sent another custom host notification and also selected Forced and Broadcast:

============================================
***** Nagios XI Alert *****



Notification Type: CUSTOM
Host: phxsa.grhc.local
State: UP
Address: 10.10.20.50
Info: OK - 10.10.20.50: rta 0.232ms, lost 0%
Date/Time: 2015-01-06 05:14:04

Respond: http://10.10.25.225/nagiosxi/rr.php?uid ... 32fd7bce5d
Nagios URL: http://10.10.25.225/nagiosxi/
===============================================
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mobile Text

Post by slansing »

Are you using sendmail for your email? Or passing it through an SMTP relay / Exchange server? If you're passing it through, I'd check that server's mail logs to see if/where it is getting bounced out. You can also try sending one of those notifications while you are running:

tail -f /var/log/maillog

To see if you get some more detailed information from the local system's mail log, pertaining to that notification.
[email protected]
Posts: 52
Joined: Wed Nov 12, 2014 3:09 pm

Re: Mobile Text

Post by [email protected] »

I am using SMTP to mail relay on our Exchange server. The email notifications go through fine.

Sent another TEST NOTIFICATION and nothing shows in the following:

[root@localhost ~]# tail -f /var/log/maillog
Jan 6 07:00:06 localhost postfix/pickup[29536]: 8A6FD3925: uid=0 from=<root>
Jan 6 07:00:06 localhost postfix/cleanup[6220]: 8A6FD3925: message-id=<[email protected]>
Jan 6 07:00:06 localhost postfix/qmgr[1406]: 8A6FD3925: from=<[email protected]>, size=3685, nrcpt=1 (queue active)
Jan 6 07:00:06 localhost postfix/local[6223]: 8A6FD3925: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.13, delays=0.07/0.05/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 6 07:00:06 localhost postfix/qmgr[1406]: 8A6FD3925: removed
Jan 6 08:00:04 localhost postfix/pickup[29536]: 32FCC489E: uid=0 from=<root>
Jan 6 08:00:04 localhost postfix/cleanup[28107]: 32FCC489E: message-id=<[email protected]>
Jan 6 08:00:04 localhost postfix/qmgr[1406]: 32FCC489E: from=<[email protected]>, size=2624, nrcpt=1 (queue active)
Jan 6 08:00:04 localhost postfix/local[28115]: 32FCC489E: to=<[email protected]>, orig_to=<root@localhost>, relay=local, delay=0.14, delays=0.09/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 6 08:00:04 localhost postfix/qmgr[1406]: 32FCC489E: removed


I will have our Exchange admin check the Exchange logs..

<Posts combined>

By the way:

For the email to relay through our Exchange server my settings in NagiosXi are as follows:

General Mail Settings
Mail Method: SMTP

Send Mail From: Nagios XI <root@localhost>

SMTP Settings
Host: (Our email server)
Port: 25
Username: <BLANK>
Password: <BLANK>
Security: TLS
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Mobile Text

Post by scottwilkerson »

Being you are using SMTP, lets check the following logging location

Code: Select all

tail -f /usr/local/nagiosxi/tmp/phpmailer.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 52
Joined: Wed Nov 12, 2014 3:09 pm

Re: Mobile Text

Post by [email protected] »

Looks like it is not setup in relay. I will contact Exchange admin:

[root@localhost ~]# tail -f /usr/local/nagiosxi/tmp/phpmailer.log
(method=smtp;host=grhc-vs-excahb1.grhc.local;port=25;security=tls)
SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
</p>
(method=smtp;host=grhc-vs-excahb1.grhc.local;port=25;security=tls)
SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
</p>
(method=smtp;host=grhc-vs-excahb1.grhc.local;port=25;security=tls)
SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
</p>
(method=smtp;host=grhc-vs-excahb1.grhc.local;port=25;security=tls)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mobile Text

Post by slansing »

I agree, let us know what your admin finds out, and if he gets this sorted on that end, thanks!
[email protected]
Posts: 52
Joined: Wed Nov 12, 2014 3:09 pm

Re: Mobile Text

Post by [email protected] »

It worked. Thanks for your help....
Locked