You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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
|