External Commands Reference - ENABLE_HOSTGROUP_HOST_NOTIFICATIONS
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.
#!/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