mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Application DHCP Upgrade
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
$unit_text = 'Max';
|
||||
$unitlen = 20;
|
||||
$bigdescrlen = 20;
|
||||
$smalldescrlen = 20;
|
||||
$category = 'networks';
|
||||
|
||||
$rrdVar = 'max';
|
||||
|
||||
$name = 'dhcp-stats';
|
||||
$app_id = $app['app_id'];
|
||||
$colours = 'mega';
|
||||
$dostack = 0;
|
||||
$printtotal = 0;
|
||||
$addarea = 1;
|
||||
$transparency = 15;
|
||||
|
||||
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
|
||||
|
||||
$int=0;
|
||||
while (isset($arrays[$int])) {
|
||||
$array = $arrays[$int];
|
||||
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id, $array));
|
||||
|
||||
if (rrdtool_check_rrd_exists($rrd_filename)) {
|
||||
list($net, $subnet) = explode('_', str_replace($category.'-', '', $array));
|
||||
$rrd_list[] = array(
|
||||
'filename' => $rrd_filename,
|
||||
'descr' => $net.'/'.$subnet,
|
||||
'ds' => $rrdVar,
|
||||
);
|
||||
}
|
||||
$int++;
|
||||
}
|
||||
|
||||
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
|
Reference in New Issue
Block a user