CHANGE SVC CHECK TIMEPERIOD
Command Format
CHANGE_SVC_CHECK_TIMEPERIOD;service;check_timeperiod
Description
Changes the check timeperiod for a particular service to what is specified by the 'check_timeperiod' option. The 'check_timeperiod' option should be the short name of the timeperod that is to be used as the service check timeperiod. The timeperiod must have been configured in Naemon before it was last (re)started.
Shell Script Usage Example
sh
#!/bin/sh
# This is a shell script showing how to submit the CHANGE_SVC_CHECK_TIMEPERIOD command
# to Naemon. Adjust variables to fit your environment as necessary.
printf "[%%lu] CHANGE_SVC_CHECK_TIMEPERIOD;service1;24x7\n" \
`date +%%s` \
> /var/lib/naemon/naemon.cmd