Files
librenms-librenms/includes/html/graphs/application/dhcp-stats_pools_current.inc.php

39 lines
831 B
PHP
Raw Normal View History

2020-05-22 23:02:19 +02:00
<?php
2020-09-21 15:40:17 +02:00
$unit_text = 'Current';
$unitlen = 33;
$bigdescrlen = 33;
$smalldescrlen = 33;
$category = 'pools';
2020-05-22 23:02:19 +02:00
2020-09-21 15:40:17 +02:00
$rrdVar = 'current';
2020-05-22 23:02:19 +02:00
2020-09-21 15:40:17 +02:00
$name = 'dhcp-stats';
$app_id = $app['app_id'];
$colours = 'mega';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
2020-05-22 23:02:19 +02:00
$arrays = Rrd::getRrdApplicationArrays($device, $app_id, $name, $category);
2020-05-22 23:02:19 +02:00
2020-09-21 15:40:17 +02:00
$int = 0;
$rrd_list = [];
2020-05-22 23:02:19 +02:00
while (isset($arrays[$int])) {
$array = $arrays[$int];
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app_id, $array]);
2020-05-22 23:02:19 +02:00
if (Rrd::checkRrdExists($rrd_filename)) {
2020-09-21 15:40:17 +02:00
$rrd_list[] = [
2020-05-22 23:02:19 +02:00
'filename' => $rrd_filename,
2020-09-21 15:40:17 +02:00
'descr' => str_replace($category . '-', '', $array),
2020-05-22 23:02:19 +02:00
'ds' => $rrdVar,
2020-09-21 15:40:17 +02:00
];
2020-05-22 23:02:19 +02:00
}
$int++;
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';