Difference between revisions of "Monitor fail2ban with check mk 1.6"

From Levy

(Created page with "For monitoring the status of fail2ban with check_mk there is an external plugin, which can be found [https://notes.benv.junerules.com/fail2ban/ here]. Follow the instructions...")
 
Line 9: Line 9:


That should fix the issue and fail2ban monitoring is working again.
That should fix the issue and fail2ban monitoring is working again.
[[Category:Linux]][[Category:Monitoring]]

Revision as of 10:29, 22 November 2019

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.