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
sh
#!/bin/sh
# This is a shell script showing how to 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