EMCLI scripting
I'm thinking about setting some automation to restart agents if they are down.
At the moment the only reason they should be down is if they are blacked out - for maintenance or something
So my emcli script will...
1. emcli get_blackouts
then for each blackout with a status of active I run
2. emcli get_blackout_targets
and search for my agent in the blackout list
Seems a bit long winded - can anyone think of a better way ?
or even suggest a useful corrective action or piece of automation I could add to my system - one of my objectives that needs looking at.