Page 1 of 2

Mobile Text

Posted: Mon Jan 05, 2015 8:36 am
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?

Re: Mobile Text

Posted: Mon Jan 05, 2015 10:14 am
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.

Re: Mobile Text

Posted: Mon Jan 05, 2015 10:14 am
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.

Re: Mobile Text

Posted: Tue Jan 06, 2015 7:04 am
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/
===============================================

Re: Mobile Text

Posted: Tue Jan 06, 2015 10:17 am
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.

Re: Mobile Text

Posted: Tue Jan 06, 2015 10:40 am
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

Re: Mobile Text

Posted: Tue Jan 06, 2015 11:03 am
by scottwilkerson
Being you are using SMTP, lets check the following logging location

Code: Select all

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

Re: Mobile Text

Posted: Tue Jan 06, 2015 12:22 pm
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)

Re: Mobile Text

Posted: Tue Jan 06, 2015 12:44 pm
by slansing
I agree, let us know what your admin finds out, and if he gets this sorted on that end, thanks!

Re: Mobile Text

Posted: Tue Jan 06, 2015 1:50 pm
It worked. Thanks for your help....