Page 1 of 1
Cannot receive SMS alert when host/service critical
Posted: Tue Oct 13, 2020 9:53 pm
by dimsum
Hi,
As we cannot don't receive the sms alert when host/service down automatically but email still working well, we use SMS Eagle as the gateway with scrip command send. we have tested manually from shell console sms working well but just wonder why it does not work to the host/service notification.
Please see the notification report via the attachment which not see the custom but only Nagios XI in the dispatcher
Re: Cannot receive SMS alert when host/service critical
Posted: Wed Oct 14, 2020 2:14 pm
by benjaminsmith
Hi,
Just want to confirm that you added this new command to the appropriate contacts in the Core Configuration Manager.
sms-notifcation-commands.png
This process is covered in the guide below, although, it's not the same command/setup.
Configuring Core Contacts to Use Nagios XI PHPMailer SMTP Settings
Try testing by sending a custom notification. From the Status page, find the service then click on the
Advanced Tab.
Let me know if you further questions.
Benjamin
Re: Cannot receive SMS alert when host/service critical
Posted: Wed Oct 14, 2020 9:07 pm
by dimsum
Hi Benjamin,
Confirmed all the same compare to the another Nagios server. we set all as mirror.
Before it's working but we just observed that not work for a while.
The command already set in the contact management you can see via attachment
Regards,
Re: Cannot receive SMS alert when host/service critical
Posted: Thu Oct 15, 2020 1:04 pm
by benjaminsmith
Hi,
Perfect, that looks correct. Let's get a test notification sent while we capture some log data. First, find the select a host that has this contact assigned with the SMS handler, and we'll force notification and trace this back in the logs.
First run the following tail command:
Code: Select all
tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log /usr/local/nagios/var/nagios.log
Then go to Home > Details > Host Status, find/search for the host, click on the host link and select the Advanced Tab. From the Commands menu submit passive check results (down) until the host goes into HARD Down state. This will trigger a notification.
passive-checks.png
Copy the full output from the tail command to the thread and PM a current system profile. Also, let me know the exact name of the host and contact, and I can find the configurations.
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
Thanks,
Benjamin