Notify by SMS
Notify by SMS
I created a new command to notify me via SMS of alerts and I'm trying to keep the notifications short but sweet. I've done this with core before and it works great however when I try the same with NagiosXI I only receive stuff like "DEV1 is up" which tells me NOTHING about the actual problem.
I've spent over an hour already trying different variables and still haven't found one that sends me the actual problem with the service or host.
Can somebody point out to me what I'm doing wrong...
Current configs below However when I get a service notification it only gives me this. Totally not useful! I want to know what the actual problem is!
I've spent over an hour already trying different variables and still haven't found one that sends me the actual problem with the service or host.
Can somebody point out to me what I'm doing wrong...
Current configs below However when I get a service notification it only gives me this. Totally not useful! I want to know what the actual problem is!
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notify by SMS
Your notify-host-by-sms command doesn't have the $HOSTOUTPUT$ macro, so if you are testing with a host it is only going to display the info you have in the command.
Re: Notify by SMS
The test I showed was with a service. Doesn't show me the information I want to see. I'll see what adding the $HOSTOUTPUT$ does for me though.scottwilkerson wrote:Your notify-host-by-sms command doesn't have the $HOSTOUTPUT$ macro, so if you are testing with a host it is only going to display the info you have in the command.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notify by SMS
If it was a service, then you added the the host notification command in the service spot on the contactt3dus wrote:The test I showed was with a service. Doesn't show me the information I want to see. I'll see what adding the $HOSTOUTPUT$ does for me though.scottwilkerson wrote:Your notify-host-by-sms command doesn't have the $HOSTOUTPUT$ macro, so if you are testing with a host it is only going to display the info you have in the command.
It should be like this
Code: Select all
define contact {
....
host_notification_commands notify-host-by-sms
service_notification_commands notify-service-by-sms
....
}Re: Notify by SMS
Can you explain how to do that in NagiosXI via the interface. I'm not manually editing config files directly like I do in Nagios Core
Thanks
Thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notify by SMS
CCM -> Contacts -> Edit Contact -> Alert Settings Tab
Manage Host Notification Commands -> Select notify-host-by-sms
Close
Manage Service Notification Commands -> Select notify-service-by-sms
Close
Save
Apply Configuration
This is how you add/change notification handlers
Manage Host Notification Commands -> Select notify-host-by-sms
Close
Manage Service Notification Commands -> Select notify-service-by-sms
Close
Save
Apply Configuration
This is how you add/change notification handlers
Re: Notify by SMS
Adding $HOSTOUTPUT$ just gives me more useless information.
I'm expecting to see something like this..
but in a nice clean version for mobile. If I send the e-mails using the standard template to my phone it gets broken up into two different messages which is super annoying.
Code: Select all
Notification Type: PROBLEM
Service: Drive C: Disk Usage
Host: Dev1
Address: 192.168.1.75
State: WARNING
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notify by SMS
Again, this like the $HOSTOUTPUT$ is being displayed on the service notification handler
Can you send a system profile from Admin -> System Profile and I can take a look
Thanks
Can you send a system profile from Admin -> System Profile and I can take a look
Thanks
Re: Notify by SMS
I have attached the profile.
This is an older version of Nagios XI Version 5.4.0 to be exact. We tried to upgrade it but it always fails and we haven't got around to building an entire new nagios server.
This is an older version of Nagios XI Version 5.4.0 to be exact. We tried to upgrade it but it always fails and we haven't got around to building an entire new nagios server.
Last edited by scottwilkerson on Fri Sep 06, 2019 10:04 am, edited 1 time in total.
Reason: removed profile from public forum
Reason: removed profile from public forum
