External Command Reference

External Commands Reference - SCHEDULE_FORCED_HOST_SVC_CHECKS

Command Format:

SCHEDULE_FORCED_HOST_SVC_CHECKS;host_name;check_time

Description:

Schedules a forced active check of all services associated with a particular host at ‘check_time’. The ‘check_time’ argument is specified in time_t format (seconds since the UNIX epoch). Forced checks are performed regardless of what time it is (e.g. timeperiod restrictions are ignored) and whether or not active checks are enabled on a service-specific or program-wide basis.

Shell Script Usage Example:

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

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