External Command Reference

External Commands Reference - ENABLE_HOSTGROUP_HOST_NOTIFICATIONS

Command Format:

ENABLE_HOSTGROUP_HOST_NOTIFICATIONS;hostgroup_name

Description:

Enables notifications for all hosts in a particular hostgroup. This does not enable notifications for the services associated with the hosts in the hostgroup - see the ENABLE_HOSTGROUP_SVC_NOTIFICATIONS command for that. In order for notifications to be sent out for these hosts, notifications must be enabled on a program-wide basis as well.

Shell Script Usage Example:

#!/bin/sh
# This is a sample shell script showing how you can submit the ENABLE_HOSTGROUP_HOST_NOTIFICATIONS command
# to Naemon. Adjust variables to fit your environment as necessary.

printf "[%lu] ENABLE_HOSTGROUP_HOST_NOTIFICATIONS;hostgroup1\n" `date +%s` > /var/lib/naemon/naemon.cmd