Create reboot_halted_host.pl

This file may be scheduled by cron so it will control .state file of host and reboot it using iLO ssh through 30 min.
Cron can be configured to run this script only at night.
So this how I decide to reboot halted hosts.
I could to rely to Nagios to reboot halted host by Event but... it can't forever run event script if host isn't changed it's status... So if host halted at working time and nobody has reboot it, host will not be rebooted by Nagios event because no change of host status.