Hello,
We have implemented an SMSEagle monitoring system for power down SMS notifications. According to SMSEagle, Nagios is able to send alerts to it. I'd like to set this up. I have followed the limited documentation provided by SMSEagle but i am stuck. The documentation is located here - https://www.smseagle.eu/integration-plu ... tegration/ . I believe i created the commands properly and the contact. I am unsure how to create the service checks.
Thanks.
SMSEagle setup
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: SMSEagle setup
Hello, @angus. Don't you already have some service and host checks? I think once you defined the command all you need to do is to open each contact in core configurations manager, go to the Alert Settings tab and assign the "host-notify-by-sms" as a host command in Manage Host Notification commands, and "notify-by-sms" in Manage Service Notification Commands.
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.
Re: SMSEagle setup
I think you are referring to the built in ability for Nagios to send SMS messages, correct? If so, we are using the SMSEagle for the SMS due to Nagios being on a VM. We also want to be alerted if email goes down and since the SMS messages go through email, we need something with mobile data access. Did i misinterpret your response?
Re: SMSEagle setup
@angus - You will first need to figure out how SMSEagle is expecting the payload, my guess, would be an API. Get this working properly with a simple CURL call.
From there, navigate to Configure -> Core Config Manager -> Commands - create a new command, and apply the command you figured out. You'll want to use macros to account for all of your different hosts / services variables. See this link for a list of possible fields - https://assets.nagios.com/downloads/nag ... olist.html
Once this is done, you can then assign the new notification command to your hosts / services similar to what @npolovenko described.
From there, navigate to Configure -> Core Config Manager -> Commands - create a new command, and apply the command you figured out. You'll want to use macros to account for all of your different hosts / services variables. See this link for a list of possible fields - https://assets.nagios.com/downloads/nag ... olist.html
Once this is done, you can then assign the new notification command to your hosts / services similar to what @npolovenko described.
Former Nagios Employee
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: SMSEagle setup
@angus, Service checks are services that Nagios is monitoring, Host checks are hosts that Nagios is monitoring. That's why I was confused when you said that you need to create new service checks in order for the SMS eagle notifications to work. -You don't have to create new services, all you need is to assign the proper command to the contact.
You created commands in CCM, right?
In the commands you replaced:
Next, all you need to do is open the contacts menu in CCM, figure out which of the existing contacts need to receive Eagle SMS alerts and edit those contacts. Assign the commands that you created to those contacts as I've shown on my screenshot in the previous post.
Also, looks like you need to add the pager variable to those contacts:
So open the contact in CCM, go to Misc Settings, Manage free Variables and add a new variable:
name -> put the word pager, value -> insert the phone number.
Code: Select all
Replace SMSEAGLEIP with IP Address of your SMSEagle device.
Replace SMSEAGLEUSER and SMSEAGLEPASSWORD with your user/password to SMSEagle.Also, looks like you need to add the pager variable to those contacts:
Code: Select all
pager contacts_phone_numbername -> put the word pager, value -> insert the phone number.
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.