2017-02-13 15:55:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/* changes these values to suit your local configuration */
|
|
|
|
|
|
|
|
$rrdpath = "/data/asstats/rrd";
|
2017-04-03 09:04:11 +02:00
|
|
|
$daystatsfile = "/data/asstats/asstats/asstats_day.txt";
|
2017-02-13 15:55:12 +01:00
|
|
|
$rrdtool = "/usr/bin/rrdtool";
|
|
|
|
|
|
|
|
$daypeerstatsfile = "/data/asstats/peerasstats_day.txt";
|
|
|
|
$showpeeras = false;
|
|
|
|
|
|
|
|
$asinfofile = "asinfo.txt";
|
|
|
|
$knownlinksfile = "/data/asstats/conf/knownlinks";
|
2017-07-13 15:05:30 +02:00
|
|
|
$outispositive = false;
|
2017-02-13 15:55:12 +01:00
|
|
|
$show95th = true;
|
|
|
|
|
2017-04-03 09:04:11 +02:00
|
|
|
$ntop = 20;
|
2017-02-13 15:55:12 +01:00
|
|
|
$showv6 = true;
|
|
|
|
$showtitledetail = true;
|
2018-01-02 17:08:25 +01:00
|
|
|
$hidelinkusagename = false;
|
|
|
|
|
2017-02-13 15:55:12 +01:00
|
|
|
$vertical_label = true; # vertical IN/OUT label in graph
|
|
|
|
$brighten_negative = true; # brighten the "negative" part of graphs
|
|
|
|
|
|
|
|
$whois = "/usr/bin/whois";
|
|
|
|
$assetpath = "asset";
|
|
|
|
$asset_cache_life = "604800"; # 604800 seconds = 7 days
|
|
|
|
|
|
|
|
$compat_rrdtool12 = false; # compatibility with RRDtool 1.2 (show95th will not work if this is set)
|
|
|
|
|
2017-07-13 15:05:30 +02:00
|
|
|
$my_asn = ""; # Our ASN - Used for search in PeeringDB API
|
|
|
|
|
2017-02-13 15:55:12 +01:00
|
|
|
/* Custom links to be shown for each AS. You can use %as% as a
|
|
|
|
placeholder for the ASN. */
|
|
|
|
$customlinks = array(
|
|
|
|
'PeeringDB' => 'https://www.peeringdb.com/asn/%as%',
|
|
|
|
'robtex' => 'https://www.robtex.com/as/as%as%.html',
|
|
|
|
'HE' => 'http://bgp.he.net/AS%as%',
|
|
|
|
'RIPEstat' => 'https://stat.ripe.net/AS%as%#tabId=at-a-glance',
|
|
|
|
'CIDR v4' => 'http://www.cidr-report.org/cgi-bin/as-report?as=AS%as%&view=2.0',
|
|
|
|
'CIDR v6' => 'http://www.cidr-report.org/cgi-bin/as-report?as=AS%as%&view=2.0&v=6',
|
2024-04-25 23:29:07 +03:00
|
|
|
'Radar Qrator' => 'https://radar.qrator.net/as%as%/',
|
2024-04-25 23:42:41 +03:00
|
|
|
'BGP.Tools' => 'https://bgp.tools/as/%as%'
|
2017-02-13 15:55:12 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
/* Custom time intervals for top N AS */
|
2017-04-03 09:04:11 +02:00
|
|
|
/*
|
|
|
|
$top_intervals[] = array(
|
2017-02-13 15:55:12 +01:00
|
|
|
'hours' => 7*24,
|
2017-04-03 09:04:11 +02:00
|
|
|
'statsfile' => '/data/as-stats/asstats_week.txt',
|
2017-02-13 15:55:12 +01:00
|
|
|
'label' => '1 week'
|
2017-04-03 09:04:11 +02:00
|
|
|
);
|
|
|
|
$top_intervals[] = array(
|
2017-02-13 15:55:12 +01:00
|
|
|
'hours' => 30*24,
|
|
|
|
'statsfile' => '/data/as-stats/asstats_month.txt',
|
|
|
|
'label' => '30 days'
|
|
|
|
);
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* END - no closing php tag needed here (prevents problems with stray whitespace) */
|