Page 1 of 1

Enable SMS notification for specific service only

Posted: Wed Jul 28, 2021 7:47 am
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

Re: Enable SMS notification for specific service only

Posted: Thu Jul 29, 2021 2:25 am
by mohsin.khalid
Hello All,

Is anyone available to help

Thanks

Re: Enable SMS notification for specific service only

Posted: Thu Jul 29, 2021 8:28 am
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".