diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php
index 6d09e2d9a9..e46334dbef 100755
--- a/pandora_console/include/functions_modules.php
+++ b/pandora_console/include/functions_modules.php
@@ -987,6 +987,28 @@ function modules_is_string($id_agentmodule) {
return modules_is_string_type($id_type);
}
+
+/**
+ * Know if a module type is a boolean or not
+ *
+ * @param int $id_type Type id
+ *
+ * @return bool true if boolean. false if not
+ */
+function modules_is_boolean_type ($id_type) {
+ $type_name = modules_get_type_name($id_type);
+
+ return (bool)preg_match('/_proc$/', $type_name);
+}
+
+function modules_is_boolean($id_agentmodule) {
+ $id_type = db_get_value('id_tipo_modulo',
+ 'tagente_modulo', 'id_agente_modulo',
+ (int) $id_agentmodule);
+
+ return modules_is_boolean_type($id_type);
+}
+
/**
* Get the icon of a module type
*
diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php
index f602343597..2085e9d56d 100755
--- a/pandora_console/include/functions_visual_map.php
+++ b/pandora_console/include/functions_visual_map.php
@@ -1600,8 +1600,12 @@ function visual_map_print_item($mode = "read", $layoutData,
if (!empty($unit_text))
$value .= " " . $unit_text;
- $img_style_title .= "
" . __("Last value: ") .
- $value;
+ // Hide value on boolean modules
+ if (!modules_is_boolean($layoutData['id_agente_modulo'])) {
+ $img_style_title .=
+ "
" . __("Last value: ")
+ . $value;
+ }
}
if(get_parameter('action') == 'edit'){