Can we send SMS alerts only when service is in Critical
Can we send SMS alerts only when service is in Critical
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.
-
- 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
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can we send SMS alerts only when service is in Critical
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
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
-
- 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
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.
See:
Nagios Core Object Definitions
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]
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!