#!/bin/sh # Submit the SCHEDULE_FORCED_HOST_SVC_CHECKS command to Nagios (foces all check # of all services on a host) now=`date +%s` commandfile='/var/log/nagios/rw/nagios.cmd' host=$1 /usr/bin/printf "[%lu] SCHEDULE_FORCED_HOST_SVC_CHECKS;$host;%ul\n" $now $now > $commandfile