Files
librenms-librenms/includes/html/graphs/application/memcached_data.inc.php
T

41 lines
957 B
PHP
Raw Normal View History

2012-05-09 12:20:07 +00:00
<?php
require 'memcached.inc.php';
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
2012-05-09 12:20:07 +00:00
$scale_min = 0;
$colours = 'mixed';
$nototal = 0;
$unit_text = 'Packets/sec';
$array = array(
'limit_maxbytes' => array(
'descr' => 'Capacity',
'colour' => '555555',
),
'bytes' => array(
'descr' => 'Used',
'colour' => 'cc0000',
'areacolour' => 'ff999955',
),
);
2012-05-09 12:20:07 +00:00
$i = 0;
2012-05-09 12:20:07 +00:00
if (rrdtool_check_rrd_exists($rrd_filename)) {
2017-02-24 15:22:15 +00:00
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['descr'] = $var['descr'];
$rrd_list[$i]['ds'] = $ds;
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['colour'] = $var['colour'];
if (!empty($var['areacolour'])) {
$rrd_list[$i]['areacolour'] = $var['areacolour'];
}
2012-05-09 12:20:07 +00:00
$i++;
}
2016-08-18 20:28:22 -05:00
} else {
echo "file missing: $file";
}
2012-05-09 12:20:07 +00:00
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_line.inc.php';