From 5cf31fc77e2984075da1156a32ba0c42965d7490 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 19 Jul 2023 11:36:03 +0200 Subject: [PATCH] ITSM fixed pandora_enterprise#11471 --- pandora_console/godmode/setup/setup.php | 2 +- pandora_console/images/menu/itsm.svg | 7 +++++++ pandora_console/include/functions_agents.php | 22 -------------------- pandora_console/include/styles/menu.css | 6 ++++++ 4 files changed, 14 insertions(+), 23 deletions(-) create mode 100644 pandora_console/images/menu/itsm.svg diff --git a/pandora_console/godmode/setup/setup.php b/pandora_console/godmode/setup/setup.php index 7e17f9fe4c..65e0f1bb1c 100644 --- a/pandora_console/godmode/setup/setup.php +++ b/pandora_console/godmode/setup/setup.php @@ -176,7 +176,7 @@ $buttons['integria'] = [ 'images/integria.png', true, [ - 'title' => __('Integria IMS'), + 'title' => __('ITSM'), 'class' => 'invert_filter', ] ).'', diff --git a/pandora_console/images/menu/itsm.svg b/pandora_console/images/menu/itsm.svg new file mode 100644 index 0000000000..a8bcc9d3b2 --- /dev/null +++ b/pandora_console/images/menu/itsm.svg @@ -0,0 +1,7 @@ + + + ITSM icon + + + + \ No newline at end of file diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 2c09fda820..7a189756ad 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -2827,28 +2827,6 @@ function agents_get_agent_group($id_agent, $force_meta=false) } -/** - * This function gets the count of incidents attached to the agent - * - * @param int The agent id - * - * @return mixed The incidents attached or false - */ -function agents_get_count_incidents($id_agent) -{ - if (empty($id_agent)) { - return false; - } - - return db_get_value( - 'count(*)', - 'tincidencia', - 'id_agent', - $id_agent - ); -} - - /** * Get critical monitors by using the status code in modules. * diff --git a/pandora_console/include/styles/menu.css b/pandora_console/include/styles/menu.css index 537dd90cf2..052091ab1c 100644 --- a/pandora_console/include/styles/menu.css +++ b/pandora_console/include/styles/menu.css @@ -259,6 +259,12 @@ background-size: 18px; } +/* ITSM */ +.icon_oper-itsm { + background: url(../../images/menu/itsm.svg) no-repeat 50% 50%; + background-size: 18px; +} + /* trap console */ .icon_oper-snmpc, .icon_god-snmpc {