From 53e78e97311ca4901e34a7e72f9df220f60eeedd Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 4 Apr 2014 09:39:45 +0000 Subject: [PATCH] 2014-04-04 Miguel de Dios * include/functions_networkmap.php: fixed the networkmap L2 with unknown modules. Thanks Alex. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9723 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_networkmap.php | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index dc8b4cd0aa..f148f9ab84 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-04-04 Miguel de Dios + + * include/functions_networkmap.php: fixed the networkmap L2 with + unknown modules. Thanks Alex. + 2014-04-03 Miguel de Dios * include/functions_networkmap.php: fixed the PHP warning. diff --git a/pandora_console/include/functions_networkmap.php b/pandora_console/include/functions_networkmap.php index de41faafc1..e078fe8b8b 100644 --- a/pandora_console/include/functions_networkmap.php +++ b/pandora_console/include/functions_networkmap.php @@ -308,12 +308,13 @@ function networkmap_generate_dot ($pandora_name, $group = 0, $nodes[$node_count] = $agent; if ($l2_network || $show_snmp_modules) { - + $filter = array(); $filter['disabled'] = 0; // Get agent modules data - $modules = agents_get_modules ($agent['id_agente'], '*', $filter, true, false); + $modules = agents_get_modules($agent['id_agente'], '*', + $filter, true, true); if ($modules === false) $modules = array();