Enable SMS notification for specific service only

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Enable SMS notification for specific service only

Postby mohsin.khalid » Wed Jul 28, 2021 7:47 am

Hello,

I need to enable SMS notifications for specific services of a specific host.
How can i enable it?
Right now all SMS notification is enabled but as per my requirement I want to enable SMS notification only for some services of random hosts

Thanks in advance
mohsin.khalid
 
Posts: 3
Joined: Sat May 22, 2021 3:58 pm

Re: Enable SMS notification for specific service only

Postby mohsin.khalid » Thu Jul 29, 2021 2:25 am

Hello All,

Is anyone available to help

Thanks
mohsin.khalid
 
Posts: 3
Joined: Sat May 22, 2021 3:58 pm

Re: Enable SMS notification for specific service only

Postby mcapra » Thu Jul 29, 2021 8:28 am

For the standard Nagios Core event handlers, I think you'd need to create separate "email" and "sms" contact (or contactgroup) definitions and selectively assign them to the service/host objects you wish to receive either email/sms notifications on.

You could also have separate "do SMS" and "do email" event handlers, assigned to specific host/service objects. That could allow you to reference the same contact object for both.

Or a single custom event handler which references custom variables in your host/service object definitions to know when one should be "SMS notified" and another should be "email notified".
Former Nagios employee
https://www.mcapra.com/
User avatar
mcapra
 
Posts: 3709
Joined: Thu May 05, 2016 3:54 pm


Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 13 guests