#!/bin/bash

twominutes=`date -d "2 minutes"`
end=`date -d "2 hours"`

/usr/local/monitoring/princeton/nagios_op -d -H $2 -E -a ESS -C "Downtime due to thermal event" -t "${twominutes}=${end}"

echo "$(date): Scheduled downtime for \"$2\"" >> /usr/local/monitoring/log/downtime_temp
