Is there anyone who get Cacti and Fail2ban work togheter?

As title,

I would like to monitor the banned ip using cacti but I'm not able to monitor it,

I installed the fail2ban template on my cacti instance and I always got a NAN as a result

in graph.

all others graph works well.

4 Replies

What quantifiable attribute about the banned IP are you looking to graph?

@hoopycat:

What quantifiable attribute about the banned IP are you looking to graph?

the numbers of banned ip, what else?

The number of packets from banned IPs, maximum/average length of time IPs have been on the list, breakdown of banned IPs by offense, number of IPs that are about to be banned if they offend once more, etc.

Does the script thing that cacti uses to check fail2ban work if you run it manually? Is it throwing any errors? I've used neither fail2ban nor cacti, but if I had to guess, I'd say that cacti probably doesn't inherently have permission to access fail2ban's data…

@hoopycat:

The number of packets from banned IPs, maximum/average length of time IPs have been on the list, breakdown of banned IPs by offense, number of IPs that are about to be banned if they offend once more, etc.

Does the script thing that cacti uses to check fail2ban work if you run it manually? Is it throwing any errors? I've used neither fail2ban nor cacti, but if I had to guess, I'd say that cacti probably doesn't inherently have permission to access fail2ban's data…

cacti reads from a fail2ban scripts and cacti has the right persmission to access them.

if runned manually, yes it works.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct