Skip to content

CHANGE HOST CHECK TIMEPERIOD

Command Format

CHANGE_HOST_CHECK_TIMEPERIOD;host_name;check_timeperiod

Description

Changes the valid check period for the specified host.

Shell Script Usage Example

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

printf "[%%lu] CHANGE_HOST_CHECK_TIMEPERIOD;host1;24x7\n" \
    `date +%%s` \
    > /var/lib/naemon/naemon.cmd