librenms-librenms/html/includes/graphs/device/netstat_ip_forward.inc.php

22 lines
483 B
PHP
Raw Normal View History

2015-05-19 19:58:46 +02:00
<?php
2015-07-13 20:10:26 +02:00
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/netstats-ip_forward.rrd';
2015-05-19 19:58:46 +02:00
$stats = array('ipCidrRouteNumber' => array());
2015-07-13 20:10:26 +02:00
$i = 0;
foreach ($stats as $stat => $array) {
$i++;
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = str_replace('ip', '', $stat);
$rrd_list[$i]['ds'] = $stat;
2015-05-19 19:58:46 +02:00
}
2015-07-13 20:10:26 +02:00
$colours = 'mixed';
2015-05-19 19:58:46 +02:00
2015-07-13 20:10:26 +02:00
$scale_min = '0';
$nototal = 1;
$simple_rrd = true;
2015-05-19 19:58:46 +02:00
2015-07-13 20:10:26 +02:00
require 'includes/graphs/generic_multi_line.inc.php';