mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Update polling and drop the firewalled bit. Since fail2ban on FreeBSD has moved to using anchors, the previous issue of it dreking all over its self is no longer a problem. And AFAIK it has never been an issue on Linux. This also makes this script more cross platform as well instead. * change the name of the graph of the total banned so people don't have to remove old file * go back to the original RRD and just shove U into the no longer data area
30 lines
708 B
PHP
30 lines
708 B
PHP
<?php
|
|
require 'includes/graphs/common.inc.php';
|
|
$scale_min = 0;
|
|
$colours = 'mixed';
|
|
$unit_text = 'Banned IPs';
|
|
$unitlen = 10;
|
|
$bigdescrlen = 10;
|
|
$smalldescrlen = 10;
|
|
$dostack = 0;
|
|
$printtotal = 0;
|
|
$addarea = 1;
|
|
$transparency = 15;
|
|
|
|
$rrd_filename = rrd_name($device['hostname'], array('app', $app['app_type'], $app['app_id']));
|
|
|
|
if (is_file($rrd_filename)) {
|
|
$rrd_list = array(
|
|
array(
|
|
'filename' => $rrd_filename,
|
|
'descr' => 'Banned',
|
|
'ds' => 'banned',
|
|
'colour' => '582A72'
|
|
),
|
|
);
|
|
} else {
|
|
echo "file missing: $rrd_filename";
|
|
}
|
|
|
|
require 'includes/graphs/generic_v3_multiline.inc.php';
|