Can we send SMS alerts only when service is in Critical

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Can we send SMS alerts only when service is in Critical

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

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

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked