mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed agent name and module name in interfaces module graphs. Ticket #3768
This commit is contained in:
parent
7ca577ce51
commit
9f0208e570
@ -1191,8 +1191,14 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
if (!empty($name_list) && $names_number == $module_number && isset($name_list[$i])) {
|
if (!empty($name_list) && $names_number == $module_number && isset($name_list[$i])) {
|
||||||
if ($labels[$agent_module_id] != '')
|
if ($labels[$agent_module_id] != '')
|
||||||
$module_name_list[$i] = $labels[$agent_module_id];
|
$module_name_list[$i] = $labels[$agent_module_id];
|
||||||
else
|
else {
|
||||||
|
$agent_name = io_safe_output(
|
||||||
|
modules_get_agentmodule_agent_name ($agent_module_id));
|
||||||
|
$module_name = io_safe_output(
|
||||||
|
modules_get_agentmodule_name ($agent_module_id));
|
||||||
|
|
||||||
$module_name_list[$i] = $agent_name ." / ". $module_name;
|
$module_name_list[$i] = $agent_name ." / ". $module_name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//Get and process agent name
|
//Get and process agent name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user