Systemd fail2ban - Display of statistics

Hello everyone,

I have edited the check “Setup-> Services → Enforced services → Systemd single service” and added the service fail2ban to monitor it. Is there a way to include the statistics (how many bans are there etc.)?
Or is this individuality only possible via a local check?
As far as I can see, there are only parameters for the status of the service.

Since systemd does not know what each service is doing and the services do not provide any metrics/statistics to systemd, the check cannot collect and display any such information.

This systemd check can only monitors the status of the systemd service. To monitor the fail2ban service itself, you need a dedicated check such as https://exchange.checkmk.com/p/fail2ban-2 or https://exchange.checkmk.com/p/fail2ban-3.

Of course, this can also be realised via a self-written local/mrpe check.

2 Likes

Thank you very much for your answer.
Unfortunately I am using the RAW edition. I took a look at the MKP documentation, but I don’t have a menu item “Extension packages”, so I can’t upload the package.
Is the RAW edition designed for this?

As I use the Enterprise Edition, I cannot answer this question

Maybe you can install mkp via command line:

Finally, you can also open the mkp file as an example with 7z and then copy the files manually to the correct locations.

mkp add ... and mkp enable ... are used to install an extension package.

You will have to deploy the agent plugin to the host yourself.

3 Likes