No text messages received from nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

No text messages received from nagiosxi

Post by bosecorp »

I'm not receiving any text alerts, is there any service that i need verify on the nagiosxi server?
I dint found any error related to text/sms in the log file "/usr/local/nagiosxi/var/eventman.log"

FYI - Email notification works fine, and i have already verified under notification that the text notification is sent to the correct contact.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No text messages received from nagiosxi

Post by lmiltchev »

If the text notification was sent by nagios to the correct contact, but hasn't been received, it is possible that the mobile carrier is blocking the email-to-text messages for this contact.

Have you tried sending a test SMS notification, while logged in as this user? Are you using SMTP or Sendmail? Can you find any clues in "/var/log/maillog" or "/usr/local/nagiosxi/tmp/phpmailer.log"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: No text messages received from nagiosxi

Post by bosecorp »

When i try to send the text alert manually it works fine.

root@nagmonus1:(01-24 13:38): /root
# echo "test" | /bin/mail -s "testing 1 2 3" -r [email protected] [email protected]

(Note : I have replaced my cell number to xxx for security reasons)

# ls -lh /var/mail/nagios
-rw-rw---- 1 nagios mail 49M Jan 24 13:44 /var/mail/nagios

==> /var/log/maillog <==
Jan 24 13:41:01 nagmonus1 postfix/pickup[13287]: 87ED8E3B: uid=59991 from=<root>
Jan 24 13:41:01 nagmonus1 postfix/cleanup[26980]: 87ED8E3B: message-id=<[email protected]>
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 87ED8E3B: from=<[email protected]>, size=685, nrcpt=1 (queue active)
Jan 24 13:41:01 nagmonus1 postfix/local[7913]: 87ED8E3B: to=<[email protected]>, orig_to=<nagios>, relay=local, delay=0.1, delays=0.06/0/0/0.03, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/nagios for user nagios. error writing message: File too large)
Jan 24 13:41:01 nagmonus1 postfix/cleanup[26980]: 99DF1E83: message-id=<[email protected]>
Jan 24 13:41:01 nagmonus1 postfix/bounce[7914]: 87ED8E3B: sender non-delivery notification: 99DF1E83
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 99DF1E83: from=<>, size=2612, nrcpt=1 (queue active)
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 87ED8E3B: removed
Jan 24 13:41:01 nagmonus1 postfix/local[7913]: 99DF1E83: to=<[email protected]>, relay=local, delay=0.11, delays=0.07/0/0/0.03, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:01 nagmonus1 postfix/qmgr[3701]: 99DF1E83: removed
Jan 24 13:41:08 nagmonus1 postfix/pickup[13287]: 1FB94E3B: uid=0 from=<[email protected]>
Jan 24 13:41:08 nagmonus1 postfix/cleanup[26980]: 1FB94E3B: message-id=<5a68d344.QAFKGrHVBdjZ9bcj%[email protected]>
Jan 24 13:41:08 nagmonus1 postfix/qmgr[3701]: 1FB94E3B: from=<[email protected]>, size=428, nrcpt=1 (queue active)
Jan 24 13:41:08 nagmonus1 postfix/smtp[31402]: 1FB94E3B: to=<[email protected]>, relay=smtp.bose.com[10.101.21.126]:25, delay=0.24, delays=0.12/0/0/0.12, dsn=2.6.0, status=sent (250 2.6.0 <5a68d344.QAFKGrHVBdjZ9bcj%[email protected]> [InternalId=84720158] Queued mail for delivery)
Jan 24 13:41:08 nagmonus1 postfix/qmgr[3701]: 1FB94E3B: removed
Jan 24 13:41:16 nagmonus1 postfix/pickup[13287]: 9ACB96F4: uid=0 from=<root>
Jan 24 13:41:16 nagmonus1 postfix/cleanup[26980]: 9ACB96F4: message-id=<[email protected]>
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: 9ACB96F4: from=<[email protected]>, size=233892, nrcpt=1 (queue active)
Jan 24 13:41:16 nagmonus1 postfix/local[7913]: 9ACB96F4: to=<[email protected]>, orig_to=<root>, relay=local, delay=64, delays=64/0/0/0.04, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:16 nagmonus1 postfix/cleanup[26980]: CA1F7E3B: message-id=<[email protected]>
Jan 24 13:41:16 nagmonus1 postfix/bounce[7914]: 9ACB96F4: sender non-delivery notification: CA1F7E3B
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: CA1F7E3B: from=<>, size=2687, nrcpt=1 (queue active)
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: 9ACB96F4: removed
Jan 24 13:41:16 nagmonus1 postfix/local[7913]: CA1F7E3B: to=<[email protected]>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:16 nagmonus1 postfix/qmgr[3701]: CA1F7E3B: removed
Jan 24 13:41:39 nagmonus1 postfix/pickup[13287]: 2C2825DD: uid=0 from=<root>
Jan 24 13:41:39 nagmonus1 postfix/cleanup[26980]: 2C2825DD: message-id=<[email protected]>
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 2C2825DD: from=<[email protected]>, size=21701, nrcpt=1 (queue active)
Jan 24 13:41:39 nagmonus1 postfix/local[7913]: 2C2825DD: to=<[email protected]>, orig_to=<root>, relay=local, delay=79, delays=79/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:39 nagmonus1 postfix/cleanup[26980]: 4FFFA6F4: message-id=<[email protected]>
Jan 24 13:41:39 nagmonus1 postfix/bounce[7914]: 2C2825DD: sender non-delivery notification: 4FFFA6F4
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 4FFFA6F4: from=<>, size=23616, nrcpt=1 (queue active)
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 2C2825DD: removed
Jan 24 13:41:39 nagmonus1 postfix/local[7913]: 4FFFA6F4: to=<[email protected]>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
Jan 24 13:41:39 nagmonus1 postfix/qmgr[3701]: 4FFFA6F4: removed

Not sure if this is relevant.

# tail -f /usr/local/nagiosxi/tmp/phpmailer.log
[06-05-2017 06:51:17] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:01:22] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:23:53] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:57:16] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 07:57:16] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 08:05:01] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 08:09:53] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 08:09:53] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 12:22:14] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[06-05-2017 12:22:33] SMTP Error: Could not authenticate. (method=smtp;host=smtp.bose.com;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: No text messages received from nagiosxi

Post by dwhitfield »

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44

UPDATE: Profile received and shared with techs
Last edited by dwhitfield on Wed Jan 24, 2018 3:35 pm, edited 1 time in total.
Reason: pm received
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: No text messages received from nagiosxi

Post by bosecorp »

Cant upload the profile.zip, when i tried it says "The file is too big, maximum allowed size is 1 MiB"
I have emailed you the profile. Kindly confirm
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: No text messages received from nagiosxi

Post by npolovenko »

@bosecorp, Would you be able to upload it to a cloud storage of your choice, say a Google Drive for example and share a download link? Otherwise, you could send the profile to me via PM. It has a higher upload threshold.
***If you send it via pm please post something in this thread to bring it back up in the support queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: No text messages received from nagiosxi

Post by bosecorp »

Engineer "dwhitfield" has the profile, i emailed him. Can i get an update here?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: No text messages received from nagiosxi

Post by npolovenko »

@bosecorp, I got a hold of the profile. First, I see that you do have a lot of these messages:

Code: Select all

tatus=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)
That could be because in `send email from` field you've chosen a non-existing email and so by default Nagios writes out all bounce-back messages to /var/mail/root and, or /var/mail/nagios. Their limit is 50 mb by default and looks like it's already maxed out. Please run this command to clear out the log files:

Code: Select all

> /var/mail/root
> /var/mail/nagios
Next, please make sure that all these settings are enabled(i bet they are but just in case):
Untitled2.png
Untitled.png
And my last recommendation would be to use SMTP Settings instead of Sendmail settings if you can. If you go to the Admin menu, then under System Config you'll see "manage email settings". Change the mail method to SMTP, fill out the host, port, username, and password.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked