alphagov/fabric-scripts — pull request #32 by dcarley (2014-02-04 14:53:03+00:00)
Title: Add nagios.loadhosts task

Add the ability to load a host list based on service status in Icinga.
Prompts for the URL because it can't be safely passed using CLI arguments.
Also prompts for confirmation of the loaded hosts, for safety.

Example usage to fix all NTP alerts (in a new environment only!):
```
(fabric)➜ fabric-scripts git:(master) ✗ fab p1production nagios.loadhosts ntp.resync
Icinga URL (jsonformat): https://nagios.p1production.alphagov.co.uk/cgi-bin/icinga/status.cgi?search_string=ntp+self-reported&limit=0&start=1&servicestatustypes=29&jsonoutput
```