mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Use full-size-graph option in recent RRDTool versions to avoid scaled graphs. Introduce config defaults file to avoid hairy isset() logic for new options. Make graph sizes configurable.
39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?php
|
|
|
|
/* changes these values to suit your local configuration */
|
|
|
|
$rrdpath = "/data/as-stats/rrd";
|
|
$daystatsfile = "/data/as-stats/asstats_day.txt";
|
|
$rrdtool = "/usr/bin/rrdtool";
|
|
|
|
$asinfofile = "asinfo.txt";
|
|
$knownlinksfile = "/data/as-stats/conf/knownlinks";
|
|
$outispositive = true;
|
|
$show95th = true;
|
|
|
|
$ntop = 20;
|
|
$showv6 = true;
|
|
$showtitledetail = true;
|
|
$hidelinkusagename = true; # $showtitledetail will need to be true to allow this
|
|
$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)
|
|
|
|
/* Custom links to be shown for each AS. You can use %as% as a
|
|
placeholder for the ASN. */
|
|
$customlinks = array(
|
|
'PeeringDB' => 'http://www.peeringdb.com/view.php?asn=%as%',
|
|
'robtex' => 'http://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',
|
|
'euro-IX' => 'https://www.euro-ix.net/tools/asn_search?query=%as%'
|
|
);
|
|
|
|
|
|
/* END - no closing php tag needed here (prevents problems with stray whitespace) */
|