diff --git a/files/cacti/README b/files/cacti/README new file mode 100644 index 00000000..6d6ddff3 --- /dev/null +++ b/files/cacti/README @@ -0,0 +1,53 @@ + __ _ _ ___ _ + / _|__ _(_) |_ ) |__ __ _ _ _ + | _/ _` | | |/ /| '_ \/ _` | ' \ + |_| \__,_|_|_/___|_.__/\__,_|_||_| + +============================================================= +Fail2Ban (version 0.7.7) 2007/??/?? +============================================================= + +Cacti is a graphing solution using RRDTool. It is possible to +use Cacti to display statistics about Fail2ban. + +Installation: +------------- + +1/ Install Fail2ban version 0.7 or higher and ensure that it + works properly. +2/ The user running poller.php must have read and write + access to the socket used by Fail2ban. +3/ Copy fail2ban_stats.sh to scripts/. You can test it with + bash scripts/fail2ban_stats.sh +4/ Import the template cacti_host_template_fail2ban.xml +5/ TO BE CONTINUED... + +Contact: +-------- + +You need some new features, you found bugs or you just +appreciate this program, you can contact me at: + +Website: http://www.fail2ban.org + +Cyril Jaquier: + +License: +-------- + +Fail2Ban is free software; you can redistribute it +and/or modify it under the terms of the GNU General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later +version. + +Fail2Ban is distributed in the hope that it will be +useful, but WITHOUT ANY WARRANTY; without even the implied +warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public +License along with Fail2Ban; if not, write to the Free +Software Foundation, Inc., 59 Temple Place, Suite 330, +Boston, MA 02111-1307 USA diff --git a/files/cacti/cacti_host_template_fail2ban.xml b/files/cacti/cacti_host_template_fail2ban.xml new file mode 100644 index 00000000..9b9c0410 --- /dev/null +++ b/files/cacti/cacti_host_template_fail2ban.xml @@ -0,0 +1,277 @@ + + + Fail2ban + hash_0000132fe631a3ac1f1705e332d0aee925d21b + + + + Fail2ban - Statistics + + on + |host_description| - Statistics + + 1 + + 120 + + 500 + + on + + 2 + + + + + + on + + on + + 100 + + 0 + + 1000 + + + + + + + + + + hash_0800132d7bfb27a7ecb33f23433863e6f90612 + 00CF00 + 4 + 1 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Failed + + 1 + + + hash_0800132d7bfb27a7ecb33f23433863e6f90612 + 0 + 9 + 4 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Current: + + 2 + + + hash_0800132d7bfb27a7ecb33f23433863e6f90612 + 0 + 9 + 1 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Average: + + 3 + + + hash_0800132d7bfb27a7ecb33f23433863e6f90612 + 0 + 9 + 3 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Maximum: + on + 4 + + + hash_080013b224f2764ba5a827de959b1ff44cbc1d + FF0000 + 5 + 1 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Banned + + 5 + + + hash_080013b224f2764ba5a827de959b1ff44cbc1d + 0 + 9 + 4 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Current: + + 6 + + + hash_080013b224f2764ba5a827de959b1ff44cbc1d + 0 + 9 + 1 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Average: + + 7 + + + hash_080013b224f2764ba5a827de959b1ff44cbc1d + 0 + 9 + 3 + 0 + + hash_060013e9c43831e54eca8069317a2ce8c6f751 + Maximum: + on + 8 + + + + + Data Source [banned] + + task_item_id + hash_0000130e6084fd4ed86d8c86dea8f84b115eaa|hash_0000132812e5f3ee8261819268854c67093b94|hash_00001336fcfc1d017e975fa22a3ce0d0492daf|hash_000013e5fddd5da42b9bf296d7f344b2a00446 + + + Data Source [failed] + + task_item_id + hash_000013f76575fdcd7f2684843e8f2cbae4ef96|hash_000013ca0d59c48dde83a1753e21eb1f44a396|hash_0000131b8e847f7be22014f1f0b3d098c9e702|hash_0000132f8d371932ebedbb665f80abf427ffb4 + + + + + Fail2ban - Statistics + + + |host_description| - Statistics + hash_030013a3adf3f2607747859b08262d972eabf0 + + + 300 + + on + hash_150013c21df5178e5c955013591239eb0afd46|hash_1500130d9c0af8b8acdc7807943937b3208e29|hash_1500136fc2d038fb42950138b0ce3e9874cc60|hash_150013e36f3adb9f152adfa5dc50fd2b23337e + + + + + failed + + 0 + + 0 + + 2 + + 600 + + hash_0700134027ae7d3baefb02f510c09de07d159f + + + + banned + + 0 + + 0 + + 2 + + 600 + + hash_07001319c32c9466152aa6cfc2bbc639a246d8 + + + + + hash_0700131cda0f872b68c87e508a29e8976a6a7a + on + ssh-iptables + + + + + Fail2ban - Get statistics + 1 + bash <path_cacti>/scripts/fail2ban_stats.sh <jail> + + + Jail name + + + + + in + jail + + + Total of failed logins + on + + + + out + failed + + + Total of banned hosts + on + + + + out + banned + + + + + Daily (5 Minute Average) + 0.5 + 1 + 600 + 86400 + 1|2|3|4 + + + Weekly (30 Minute Average) + 0.5 + 6 + 700 + 604800 + 1|2|3|4 + + + Monthly (2 Hour Average) + 0.5 + 24 + 775 + 2678400 + 1|2|3|4 + + + Yearly (1 Day Average) + 0.5 + 288 + 797 + 33053184 + 1|2|3|4 + + + Normal + %8.2lf %s + + \ No newline at end of file