#!/bin/sh # Submit the SCHEDULE_FORCED_SVC_CHECK command to Nagios now=`date +%s` commandfile='/var/log/nagios/rw/nagios.cmd' host=$1 service=$2 /usr/bin/printf "[%lu] SCHEDULE_FORCED_SVC_CHECK;$host;$service;1110741500\n" $now > $commandfile