Notify by SMS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Notify by SMS

Post by t3dus »

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
config1.PNG
However when I get a service notification it only gives me this.
Screenshot_20190905-131405_Messages.jpg
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

Post by scottwilkerson »

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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Notify by SMS

Post by t3dus »

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.
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
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notify by SMS

Post by scottwilkerson »

t3dus wrote:
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.
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.
If it was a service, then you added the the host notification command in the service spot on the contact

It should be like this

Code: Select all

define contact {
....
    host_notification_commands       notify-host-by-sms
    service_notification_commands    notify-service-by-sms
....
}
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Notify by SMS

Post by t3dus »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notify by SMS

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Notify by SMS

Post by t3dus »

Oh I've already done that...
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Notify by SMS

Post by t3dus »

Adding $HOSTOUTPUT$ just gives me more useless information.
Screenshot_20190905-224901_Messages.jpg
I'm expecting to see something like this..

Code: Select all

Notification Type: PROBLEM

Service: Drive C: Disk Usage
Host: Dev1
Address: 192.168.1.75
State: WARNING
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.
20190905_225532.jpg
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

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Notify by SMS

Post by t3dus »

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.
Last edited by scottwilkerson on Fri Sep 06, 2019 10:04 am, edited 1 time in total.
Reason: removed profile from public forum
Locked