Page 1 of 1

Can we send SMS alerts only when service is in Critical

Posted: Fri Jun 05, 2020 12:32 am
by Pratapa
A user requested that he wants to receive SMS alerts only when the service check is in critical state but do not want to receive SMS alerts when the service check is in Warning state. Can this be possible in Nagios.

Re: Can we send SMS alerts only when service is in Critical

Posted: Fri Jun 05, 2020 3:56 pm
by benjaminsmith
HI Pratapa,

Welcome to the Nagios Community Forum! We are delighted to have you here.

Would this question be for Nagios XI or Core? Please let me know. Also, if you are using Core, let me know how the SMS alerts are setup.

Benjamin
Nagios Support Team

Re: Can we send SMS alerts only when service is in Critical

Posted: Mon Jun 08, 2020 5:26 am
by Pratapa
This is for Nagios core.

For SMS alerts we have created a folder oncall. Under oncall there will be configuration file. In the configuration file we will define
using following syntax

members <server Name>,<service Name>

Under service definition, we will define contacts

contacts name1,name2


SMS alerts will go to the members name1,name2.


I

Re: Can we send SMS alerts only when service is in Critical

Posted: Tue Jun 09, 2020 4:53 pm
by benjaminsmith
HI Pratapa,

Ok. I think I got it. So If you have a dedicated contact for SMS, then add add this contact to the service, and then set the notifications option for the contact accordingly.

Code: Select all

service_notification_options	[u,c,r]
See:
Nagios Core Object Definitions