diff --git a/AUTHORS.md b/AUTHORS.md index 4a46179ac..1aa5c18ff 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -82,6 +82,7 @@ LibreNMS contributors: - Adam Winberg (wiad) - Maximilian Wilhelm (BarbarossaTM) - Jameson Finney (JamesonFinney) +- John Wells (jbwiv) [1]: http://observium.org/ "Observium web site" Observium was written by: diff --git a/html/includes/graphs/device/poller_modules_perf.inc.php b/html/includes/graphs/device/poller_modules_perf.inc.php index dd285a82d..50ca7fcf4 100644 --- a/html/includes/graphs/device/poller_modules_perf.inc.php +++ b/html/includes/graphs/device/poller_modules_perf.inc.php @@ -1,8 +1,10 @@ + * Copyright (c) 2016 Paul D. Gear + * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your @@ -11,28 +13,28 @@ */ $scale_min = '0'; -$colour_scheme = 'mixed'; $attribs = get_dev_attribs($device['device_id']); ksort($config['poller_modules']); require 'includes/graphs/common.inc.php'; -$colour_iter = 0; -$rrd_options .= " 'COMMENT:Seconds Current Minimum Maximum Average\\n'"; +$count = 0; foreach ($config['poller_modules'] as $module => $module_status) { - $rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/poller-'.$module.'-perf.rrd'; + $rrd_filename = rrd_name($device['hostname'], array('poller-perf', $module)); if ($attribs['poll_'.$module] || ( $module_status && !isset($attribs['poll_'.$module]))) { if (is_file($rrd_filename)) { - if (!$config['graph_colours'][$colour_scheme][$colour_iter]) { - $colour_iter = 0; - } - $colour = $config['graph_colours'][$colour_scheme][$colour_iter]; - $colour_iter++; - - $rrd_options .= ' DEF:'.$module.'='.$rrd_filename.':'.$module.':AVERAGE'; - $rrd_options .= ' LINE1.25:'.$module.'#'.$colour.':"'.str_pad($module, 18," ").'"'; - $rrd_options .= ' GPRINT:'.$module.':LAST:%6.2lf GPRINT:'.$module.':AVERAGE:%7.2lf'; - $rrd_options .= " GPRINT:".$module.":MAX:%7.2lf 'GPRINT:".$module.":AVERAGE:%7.2lf\\n'"; + $ds['ds'] = 'poller'; + $ds['descr'] = $module; + $ds['filename'] = $rrd_filename; + $rrd_list[] = $ds; + $count++; } } } + +$unit_text = "Seconds"; +$simple_rrd = false; +$nototal = false; +$text_orig = true; +$colours = 'manycolours'; +require "includes/graphs/generic_multi_simplex_seperated.inc.php"; diff --git a/html/pages/delsrv.inc.php b/html/pages/delsrv.inc.php index a4c9e7da1..444b96037 100644 --- a/html/pages/delsrv.inc.php +++ b/html/pages/delsrv.inc.php @@ -13,7 +13,14 @@ else { } foreach (dbFetchRows('SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id ORDER BY hostname') as $device) { - $servicesform .= "'; + $service_description = ''; + + if (!empty($device['service_desc'])) { + $service_description = ' - ' . substr($device['service_desc'], 0, 30); + } + + $servicesform .= "'; + } if ($updated) { @@ -26,7 +33,7 @@ else {
- +
- +