Skip to content

ENABLE EVENT HANDLERS

Command Format

ENABLE_EVENT_HANDLERS;downtime_start_time;comment

Description

Enables host and service event handlers on a program-wide basis.

Shell Script Usage Example

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

printf "[%%lu] ENABLE_EVENT_HANDLERS;1478648441;This is an example comment.\n" \
    `date +%%s` \
    > /var/lib/naemon/naemon.cmd