Just a random idea that perhaps we could implement.
func-reboot. It takes a hostname or hostnames as a argument, then does:
Is this a virthost?
yes:
1) Gather list of guests running on that host.
2) See if any users are logged into them
3) Display list of guests and ask if user wants to halt them. (note if
users are logged in to any)
4) add 15m downtime in nagios for host with triggered downtime for
guests.
5) halt all guests and wait for them to be down.
6) reboot host
no:
1) See if anyone is logged into host.
2) Confirm that user wants to reboot it.
3) add 15m downtime in nagios for host.
4) reboot host.
Just a thought. It might help with mass rebooting... saves us having to
deal with the nagios web interface and constructing the list of guests
on each host.
kevin