Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -5,41 +5,40 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
if (!is_array($vars['id'])) { $vars['id'] = array($vars['id']); }
if (!is_array($vars['id'])) {
$vars['id'] = [$vars['id']];
}
$i = 1;
foreach ($vars['id'] as $ifid)
{
if (strstr($ifid, "!"))
{
$rrd_inverted[$i] = TRUE;
$ifid = str_replace("!", "", $ifid);
}
foreach ($vars['id'] as $ifid) {
if (strstr($ifid, "!")) {
$rrd_inverted[$i] = TRUE;
$ifid = str_replace("!", "", $ifid);
}
$int = dbFetchRow("SELECT `ifIndex`, `hostname`, D.`device_id` FROM `ports` AS I, devices AS D WHERE I.port_id = ? AND I.device_id = D.device_id", array($ifid));
$rrd_file = get_port_rrdfilename($int, NULL, TRUE);
if (rrd_is_file($rrd_file))
{
$rrd_filenames[$i] = $rrd_file;
$i++;
}
$int = dbFetchRow("SELECT `ifIndex`, `hostname`, D.`device_id` FROM `ports` AS I, devices AS D WHERE I.port_id = ? AND I.device_id = D.device_id", [$ifid]);
$rrd_file = get_port_rrdfilename($int, NULL, TRUE);
if (rrd_is_file($rrd_file)) {
$rrd_filenames[$i] = $rrd_file;
$i++;
}
}
$ds_in = "INOCTETS";
$ds_out = "OUTOCTETS";
$colour_line_in = "006600";
$colour_line_in = "006600";
$colour_line_out = "000099";
$colour_area_in = "91B13C";
$colour_area_in = "91B13C";
$colour_area_out = "8080BD";
include($config['html_dir']."/includes/graphs/generic_multi_data.inc.php");
include($config['html_dir'] . "/includes/graphs/generic_multi_data.inc.php");
// EOF