Monitor fail2ban with check mk 1.6

From Levy

Revision as of 10:29, 22 November 2019 by Louis (talk | contribs)

For monitoring the status of fail2ban with check_mk there is an external plugin, which can be found here. Follow the instructions on the site to install the plugin. This works fine on versions of check_mk up to 1.5.x.

However, in check_mk 1.6 a change is made to the inventory function of the check_mk plugin. In order to fix this, edit /omd/sites/Home/local/share/check_mk/checks/fail2ban, and make the following change:
def inventory_fail2ban(checkname, info):
to:
def inventory_fail2ban(info):

That should fix the issue and fail2ban monitoring is working again.