# event_restart_fail2ban

This is a script that is executed via the event_command "command_event_fail2ban" in icinga2.
The event command works hand in hand with the check_command "command_fail2ban".
Both objects (command_event_fail2ban, command_fail2ban) are part of the fail2ban check in icinga2.
If the fail2ban check returns a Critical and also reaches a certain state, an attempt is made to restart the service. 
