External Command Reference

External Commands Reference - SCHEDULE_FORCED_SVC_CHECK

Command Format:

SCHEDULE_FORCED_SVC_CHECK;host_name;service_description;check_time

Description:

Schedules a forced active check of a particular service 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_SVC_CHECK command
# to Naemon. Adjust variables to fit your environment as necessary.

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