Files
librenms-librenms/includes/html/graphs/application/dhcp-stats_pools_current.inc.php
T
Tony Murray 1c379dcd05 Remove legacy function calls (#12651)
* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
2021-03-29 00:25:30 +02:00

38 lines
814 B
PHP

<?php
$unit_text = 'Current';
$unitlen = 33;
$bigdescrlen = 33;
$smalldescrlen = 33;
$category = 'pools';
$rrdVar = 'current';
$name = 'dhcp-stats';
$app_id = $app['app_id'];
$colours = 'mega';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int = 0;
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';