Enable SMS notification for specific service only

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
mohsin.khalid
Posts: 3
Joined: Sat May 22, 2021 3:58 pm

Enable SMS notification for specific service only

Post by mohsin.khalid »

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

Post by mohsin.khalid »

Hello All,

Is anyone available to help

Thanks
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Enable SMS notification for specific service only

Post by mcapra »

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/
Locked