Phone notification only for specific hosts|services
Posted: Mon Nov 19, 2018 2:15 am
We have hundreds of hosts and thousands of services, but only some of them should have SMS notifications. How can I do that?
Separate contact for SMS notifications is a bad option, since in this case, the user will not be able to manage notifications.
Is it possible to add a variable to a host/service and check it in xi_host_notification_handler (/usr/local/nagiosxi/scripts/handle_nagioscore_notification.php) before sending SMS notifications?
For example
Could you point to the part of the code responsible for sending SMS, or suggest another solution?
Separate contact for SMS notifications is a bad option, since in this case, the user will not be able to manage notifications.
Is it possible to add a variable to a host/service and check it in xi_host_notification_handler (/usr/local/nagiosxi/scripts/handle_nagioscore_notification.php) before sending SMS notifications?
For example
Code: Select all
if ( sms_notification == 1)
send_sms()