mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
39 lines
831 B
PHP
39 lines
831 B
PHP
<?php
|
|
|
|
$unit_text = 'Percent';
|
|
$unitlen = 33;
|
|
$bigdescrlen = 33;
|
|
$smalldescrlen = 33;
|
|
$category = 'pools';
|
|
|
|
$rrdVar = 'percent';
|
|
|
|
$name = 'dhcp-stats';
|
|
$app_id = $app['app_id'];
|
|
$colours = 'mega';
|
|
$dostack = 0;
|
|
$printtotal = 0;
|
|
$addarea = 1;
|
|
$transparency = 15;
|
|
|
|
$arrays = Rrd::getRrdApplicationArrays($device, $app_id, $name, $category);
|
|
|
|
$int = 0;
|
|
$rrd_list = [];
|
|
while (isset($arrays[$int])) {
|
|
$array = $arrays[$int];
|
|
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
|
|
|
|
if (Rrd::checkRrdExists($rrd_filename)) {
|
|
$rrd_list[] = [
|
|
'filename' => $rrd_filename,
|
|
'descr' => str_replace($category . '-', '', $array),
|
|
'ds' => $rrdVar,
|
|
];
|
|
}
|
|
|
|
$int++;
|
|
}
|
|
|
|
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
|