mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-22 21:35:12 +02:00
Merge branch 'develop' of github.com:pandorafms/pandorafms into develop
This commit is contained in:
commit
c025f0ee83
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, AIX version
|
# Version 5.1SP1RC3, AIX version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, FreeBSD Version
|
# Version 5.1SP1RC3, FreeBSD Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, HP-UX Version
|
# Version 5.1SP1RC3, HP-UX Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, GNU/Linux
|
# Version 5.1SP1RC3, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, GNU/Linux
|
# Version 5.1SP1RC3, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, Solaris Version
|
# Version 5.1SP1RC3, Solaris Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Base config file for Pandora FMS Windows Agent
|
# Base config file for Pandora FMS Windows Agent
|
||||||
# (c) 2006-2010 Artica Soluciones Tecnologicas
|
# (c) 2006-2010 Artica Soluciones Tecnologicas
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
|
|
||||||
# This program is Free Software, you can redistribute it and/or modify it
|
# This program is Free Software, you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public Licence as published by the Free Software
|
# under the terms of the GNU General Public Licence as published by the Free Software
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 5.1SP1RC2, AIX version
|
# Version 5.1SP1RC3, AIX version
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
# ==================
|
# ==================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
# FreeBSD/IPSO version
|
# FreeBSD/IPSO version
|
||||||
# Licenced under GPL licence, 2003-2007 Sancho Lerena
|
# Licenced under GPL licence, 2003-2007 Sancho Lerena
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 5.1SP1RC2, HPUX Version
|
# Version 5.1SP1RC3, HPUX Version
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
# ==================
|
# ==================
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# (c) 2003-2010 Artica Soluciones Tecnologicas
|
# (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# please visit http://pandora.sourceforge.net
|
# please visit http://pandora.sourceforge.net
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# (c) 2003-2009 Artica Soluciones Tecnologicas
|
# (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# please visit http://pandora.sourceforge.net
|
# please visit http://pandora.sourceforge.net
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# please visit http://pandora.sourceforge.net
|
# please visit http://pandora.sourceforge.net
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 5.1SP1RC2, Solaris version
|
# Version 5.1SP1RC3, Solaris version
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
# ==================
|
# ==================
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, AIX version
|
# Version 5.1SP1RC3, AIX version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 5.1SP1RC2-141021
|
Version: 5.1SP1RC3-141024
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="5.1SP1RC2-141021"
|
pandora_version="5.1SP1RC3-141024"
|
||||||
|
|
||||||
echo "Test if you has the tools for to make the packages."
|
echo "Test if you has the tools for to make the packages."
|
||||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, GNU/Linux
|
# Version 5.1SP1RC3, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2012 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2012 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, FreeBSD Version
|
# Version 5.1SP1RC3, FreeBSD Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, HP-UX Version
|
# Version 5.1SP1RC3, HP-UX Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, GNU/Linux
|
# Version 5.1SP1RC3, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2014 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2014 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, GNU/Linux
|
# Version 5.1SP1RC3, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, NetBSD Version
|
# Version 5.1SP1RC3, NetBSD Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 5.1SP1RC2, Solaris Version
|
# Version 5.1SP1RC3, Solaris Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -40,8 +40,8 @@ my $Sem = undef;
|
|||||||
# Semaphore used to control the number of threads
|
# Semaphore used to control the number of threads
|
||||||
my $ThreadSem = undef;
|
my $ThreadSem = undef;
|
||||||
|
|
||||||
use constant AGENT_VERSION => '5.1SP1RC2';
|
use constant AGENT_VERSION => '5.1SP1RC3';
|
||||||
use constant AGENT_BUILD => '141021';
|
use constant AGENT_BUILD => '141024';
|
||||||
|
|
||||||
# Commands to retrieve total memory information in kB
|
# Commands to retrieve total memory information in kB
|
||||||
use constant TOTALMEMORY_CMDS => {
|
use constant TOTALMEMORY_CMDS => {
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
#Pandora FMS Linux Agent
|
#Pandora FMS Linux Agent
|
||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 5.1SP1RC2
|
%define version 5.1SP1RC3
|
||||||
%define release 141021
|
%define release 141024
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
#Pandora FMS Linux Agent
|
#Pandora FMS Linux Agent
|
||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 5.1SP1RC2
|
%define version 5.1SP1RC3
|
||||||
%define release 141021
|
%define release 141024
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Base config file for Pandora FMS Windows Agent
|
# Base config file for Pandora FMS Windows Agent
|
||||||
# (c) 2006-2014 Artica Soluciones Tecnologicas
|
# (c) 2006-2014 Artica Soluciones Tecnologicas
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
|
|
||||||
# This program is Free Software, you can redistribute it and/or modify it
|
# This program is Free Software, you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public Licence as published by the Free Software
|
# under the terms of the GNU General Public Licence as published by the Free Software
|
||||||
|
@ -3,7 +3,7 @@ AllowLanguageSelection
|
|||||||
{Yes}
|
{Yes}
|
||||||
|
|
||||||
AppName
|
AppName
|
||||||
{Pandora FMS Windows Agent v5.1SP1RC2}
|
{Pandora FMS Windows Agent v5.1SP1RC3}
|
||||||
|
|
||||||
ApplicationID
|
ApplicationID
|
||||||
{17E3D2CF-CA02-406B-8A80-9D31C17BD08F}
|
{17E3D2CF-CA02-406B-8A80-9D31C17BD08F}
|
||||||
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{141021}
|
{141024}
|
||||||
|
|
||||||
ViewReadme
|
ViewReadme
|
||||||
{Yes}
|
{Yes}
|
||||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
|||||||
using namespace Pandora_Strutils;
|
using namespace Pandora_Strutils;
|
||||||
|
|
||||||
#define PATH_SIZE _MAX_PATH+1
|
#define PATH_SIZE _MAX_PATH+1
|
||||||
#define PANDORA_VERSION ("5.1SP1RC2(Build 141021)")
|
#define PANDORA_VERSION ("5.1SP1RC3(Build 141024)")
|
||||||
|
|
||||||
string pandora_path;
|
string pandora_path;
|
||||||
string pandora_dir;
|
string pandora_dir;
|
||||||
|
@ -11,7 +11,7 @@ BEGIN
|
|||||||
VALUE "LegalCopyright", "Artica ST"
|
VALUE "LegalCopyright", "Artica ST"
|
||||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||||
VALUE "ProductVersion", "(5.1SP1RC2(Build 141021))"
|
VALUE "ProductVersion", "(5.1SP1RC3(Build 141024))"
|
||||||
VALUE "FileVersion", "1.0.0.0"
|
VALUE "FileVersion", "1.0.0.0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-console
|
package: pandorafms-console
|
||||||
Version: 5.1SP1RC2-141021
|
Version: 5.1SP1RC3-141024
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="5.1SP1RC2-141021"
|
pandora_version="5.1SP1RC3-141024"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC141021';
|
$build_version = 'PC141024';
|
||||||
$pandora_version = 'v5.1SP1RC2';
|
$pandora_version = 'v5.1SP1RC3';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
$script_tz = @date_default_timezone_get();
|
$script_tz = @date_default_timezone_get();
|
||||||
|
@ -1187,4 +1187,25 @@ function db_get_fields($table) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int Unix timestamp with the date.
|
||||||
|
*
|
||||||
|
* @return bool Returns true if the history db has data after the date provided or false otherwise.
|
||||||
|
*/
|
||||||
|
function db_search_in_history_db ($utimestamp) {
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
$search_in_history_db = false;
|
||||||
|
if ($config['history_db_enabled'] == 1) {
|
||||||
|
$history_db_start_period = $config['history_db_days'] * SECONDS_1DAY;
|
||||||
|
|
||||||
|
// If the date is newer than the newest history db data
|
||||||
|
if (time() - $history_db_start_period >= $utimestamp)
|
||||||
|
$search_in_history_db = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $search_in_history_db;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -495,6 +495,7 @@ function grafico_modulo_sparse_data ($agent_module_id, $period, $show_events,
|
|||||||
// Set variables
|
// Set variables
|
||||||
if ($date == 0) $date = get_system_time();
|
if ($date == 0) $date = get_system_time();
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
$resolution = $config['graph_res'] * 50; //Number of points of the graph
|
$resolution = $config['graph_res'] * 50; //Number of points of the graph
|
||||||
$interval = (int) ($period / $resolution);
|
$interval = (int) ($period / $resolution);
|
||||||
$agent_name = modules_get_agentmodule_agent_name ($agent_module_id);
|
$agent_name = modules_get_agentmodule_agent_name ($agent_module_id);
|
||||||
@ -539,7 +540,7 @@ function grafico_modulo_sparse_data ($agent_module_id, $period, $show_events,
|
|||||||
"utimestamp > $datelimit",
|
"utimestamp > $datelimit",
|
||||||
"utimestamp < $date",
|
"utimestamp < $date",
|
||||||
'order' => 'utimestamp ASC'),
|
'order' => 'utimestamp ASC'),
|
||||||
array ('datos', 'utimestamp'), 'AND', true);
|
array ('datos', 'utimestamp'), 'AND', $search_in_history_db);
|
||||||
|
|
||||||
// Get module warning_min and critical_min
|
// Get module warning_min and critical_min
|
||||||
$warning_min = db_get_value('min_warning','tagente_modulo','id_agente_modulo',$agent_module_id);
|
$warning_min = db_get_value('min_warning','tagente_modulo','id_agente_modulo',$agent_module_id);
|
||||||
@ -913,6 +914,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
if ($date == 0)
|
if ($date == 0)
|
||||||
$date = get_system_time();
|
$date = get_system_time();
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
$resolution = $config['graph_res'] * 50; //Number of points of the graph
|
$resolution = $config['graph_res'] * 50; //Number of points of the graph
|
||||||
$interval = (int) ($period / $resolution);
|
$interval = (int) ($period / $resolution);
|
||||||
|
|
||||||
@ -1063,7 +1065,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
"utimestamp > $datelimit",
|
"utimestamp > $datelimit",
|
||||||
"utimestamp < $date",
|
"utimestamp < $date",
|
||||||
'order' => 'utimestamp ASC'),
|
'order' => 'utimestamp ASC'),
|
||||||
array ('datos', 'utimestamp'), 'AND', true);
|
array ('datos', 'utimestamp'), 'AND', $search_in_history_db);
|
||||||
if ($data === false) {
|
if ($data === false) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
}
|
}
|
||||||
|
@ -1497,7 +1497,9 @@ function modules_get_previous_data ($id_agent_module, $utimestamp = 0, $string =
|
|||||||
ORDER BY utimestamp DESC',
|
ORDER BY utimestamp DESC',
|
||||||
$id_agent_module, $utimestamp, $utimestamp - SECONDS_2DAY);
|
$id_agent_module, $utimestamp, $utimestamp - SECONDS_2DAY);
|
||||||
|
|
||||||
return db_get_row_sql ($sql, true);
|
$search_in_history_db = db_search_in_history_db($utimestamp);
|
||||||
|
|
||||||
|
return db_get_row_sql ($sql, $search_in_history_db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1529,7 +1531,9 @@ function modules_get_next_data ($id_agent_module, $utimestamp = 0, $string = 0)
|
|||||||
ORDER BY utimestamp ASC',
|
ORDER BY utimestamp ASC',
|
||||||
$id_agent_module, $utimestamp + $interval, $utimestamp);
|
$id_agent_module, $utimestamp + $interval, $utimestamp);
|
||||||
|
|
||||||
return db_get_row_sql ($sql, true);
|
$search_in_history_db = db_search_in_history_db($utimestamp);
|
||||||
|
|
||||||
|
return db_get_row_sql ($sql, $search_in_history_db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1550,6 +1554,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
switch ($module['id_tipo_modulo']) {
|
switch ($module['id_tipo_modulo']) {
|
||||||
//generic_data_string
|
//generic_data_string
|
||||||
@ -1586,7 +1591,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values = db_get_all_rows_sql ($sql, true, false);
|
$values = db_get_all_rows_sql ($sql, $search_in_history_db, false);
|
||||||
|
|
||||||
if ($values === false) {
|
if ($values === false) {
|
||||||
return array ();
|
return array ();
|
||||||
|
@ -52,6 +52,8 @@ function reporting_get_agentmodule_data_average ($id_agent_module, $period=0, $d
|
|||||||
// Initialize variables
|
// Initialize variables
|
||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$id_module_type = modules_get_agentmodule_type ($id_agent_module);
|
$id_module_type = modules_get_agentmodule_type ($id_agent_module);
|
||||||
$module_type = modules_get_moduletype_name ($id_module_type);
|
$module_type = modules_get_moduletype_name ($id_module_type);
|
||||||
@ -63,7 +65,7 @@ function reporting_get_agentmodule_data_average ($id_agent_module, $period=0, $d
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Uncompressed module data
|
// Uncompressed module data
|
||||||
@ -155,7 +157,9 @@ function reporting_get_agentmodule_data_max ($id_agent_module, $period=0, $date
|
|||||||
// Initialize variables
|
// Initialize variables
|
||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$id_module_type = modules_get_agentmodule_type ($id_agent_module);
|
$id_module_type = modules_get_agentmodule_type ($id_agent_module);
|
||||||
$module_type = modules_get_moduletype_name ($id_module_type);
|
$module_type = modules_get_moduletype_name ($id_module_type);
|
||||||
$uncompressed_module = is_module_uncompressed ($module_type);
|
$uncompressed_module = is_module_uncompressed ($module_type);
|
||||||
@ -166,7 +170,7 @@ function reporting_get_agentmodule_data_max ($id_agent_module, $period=0, $date
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Uncompressed module data
|
// Uncompressed module data
|
||||||
@ -233,7 +237,9 @@ function reporting_get_agentmodule_data_min ($id_agent_module, $period=0, $date
|
|||||||
|
|
||||||
// Initialize variables
|
// Initialize variables
|
||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$id_module_type = modules_get_agentmodule_type ($id_agent_module);
|
$id_module_type = modules_get_agentmodule_type ($id_agent_module);
|
||||||
$module_type = modules_get_moduletype_name ($id_module_type);
|
$module_type = modules_get_moduletype_name ($id_module_type);
|
||||||
@ -245,7 +251,7 @@ function reporting_get_agentmodule_data_min ($id_agent_module, $period=0, $date
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Uncompressed module data
|
// Uncompressed module data
|
||||||
@ -307,6 +313,8 @@ function reporting_get_agentmodule_data_sum ($id_agent_module, $period=0, $date
|
|||||||
// Initialize variables
|
// Initialize variables
|
||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$id_module_type = db_get_value ('id_tipo_modulo', 'tagente_modulo','id_agente_modulo', $id_agent_module);
|
$id_module_type = db_get_value ('id_tipo_modulo', 'tagente_modulo','id_agente_modulo', $id_agent_module);
|
||||||
$module_name = db_get_value ('nombre', 'ttipo_modulo', 'id_tipo', $id_module_type);
|
$module_name = db_get_value ('nombre', 'ttipo_modulo', 'id_tipo', $id_module_type);
|
||||||
@ -326,7 +334,7 @@ function reporting_get_agentmodule_data_sum ($id_agent_module, $period=0, $date
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Uncompressed module data
|
// Uncompressed module data
|
||||||
@ -414,6 +422,8 @@ function reporting_get_agentmodule_sla ($id_agent_module, $period = 0, $min_valu
|
|||||||
}
|
}
|
||||||
// Limit date to start searching data
|
// Limit date to start searching data
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
// Get interval data
|
// Get interval data
|
||||||
$sql = sprintf ('SELECT *
|
$sql = sprintf ('SELECT *
|
||||||
@ -464,7 +474,7 @@ function reporting_get_agentmodule_sla ($id_agent_module, $period = 0, $min_valu
|
|||||||
$sql .= ' AND (TIME(FROM_UNIXTIME(utimestamp)) >= "' . $timeFrom . '" OR TIME(FROM_UNIXTIME(utimestamp)) <= "'. $timeTo . '")';
|
$sql .= ' AND (TIME(FROM_UNIXTIME(utimestamp)) >= "' . $timeFrom . '" OR TIME(FROM_UNIXTIME(utimestamp)) <= "'. $timeTo . '")';
|
||||||
}
|
}
|
||||||
$sql .= ' ORDER BY utimestamp ASC';
|
$sql .= ' ORDER BY utimestamp ASC';
|
||||||
$interval_data = db_get_all_rows_sql ($sql, true);
|
$interval_data = db_get_all_rows_sql ($sql, $search_in_history_db);
|
||||||
|
|
||||||
if ($interval_data === false) {
|
if ($interval_data === false) {
|
||||||
$interval_data = array ();
|
$interval_data = array ();
|
||||||
@ -578,6 +588,8 @@ function reporting_get_agentmodule_sla_array ($id_agent_module, $period = 0, $mi
|
|||||||
}
|
}
|
||||||
// Limit date to start searching data
|
// Limit date to start searching data
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
// Get interval data
|
// Get interval data
|
||||||
$sql = sprintf ('SELECT * FROM tagente_datos
|
$sql = sprintf ('SELECT * FROM tagente_datos
|
||||||
@ -631,7 +643,7 @@ function reporting_get_agentmodule_sla_array ($id_agent_module, $period = 0, $mi
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql .= ' ORDER BY utimestamp ASC';
|
$sql .= ' ORDER BY utimestamp ASC';
|
||||||
$interval_data = db_get_all_rows_sql ($sql, true);
|
$interval_data = db_get_all_rows_sql ($sql, $search_in_history_db);
|
||||||
|
|
||||||
if ($interval_data === false) {
|
if ($interval_data === false) {
|
||||||
$interval_data = array ();
|
$interval_data = array ();
|
||||||
@ -887,7 +899,7 @@ function reporting_get_planned_downtimes_intervals ($id_agent_module, $start_dat
|
|||||||
AND tpda.all_modules = 1
|
AND tpda.all_modules = 1
|
||||||
AND tpda.id_agent = tam.id_agente
|
AND tpda.id_agent = tam.id_agente
|
||||||
AND tam.id_agente_modulo = $id_agent_module
|
AND tam.id_agente_modulo = $id_agent_module
|
||||||
UNION
|
UNION ALL
|
||||||
SELECT tpd.*
|
SELECT tpd.*
|
||||||
FROM tplanned_downtime tpd, tplanned_downtime_modules tpdm
|
FROM tplanned_downtime tpd, tplanned_downtime_modules tpdm
|
||||||
WHERE tpd.id = tpdm.id_downtime
|
WHERE tpd.id = tpdm.id_downtime
|
||||||
@ -1209,7 +1221,7 @@ function reporting_get_planned_downtimes ($start_date, $end_date, $id_agent_modu
|
|||||||
OR (date_from <= '$start_date' AND date_to >= '$end_date')
|
OR (date_from <= '$start_date' AND date_to >= '$end_date')
|
||||||
OR (date_from <= '$start_date' AND date_to >= '$start_date')
|
OR (date_from <= '$start_date' AND date_to >= '$start_date')
|
||||||
OR (date_from <= '$end_date' AND date_to >= '$end_date'))))
|
OR (date_from <= '$end_date' AND date_to >= '$end_date'))))
|
||||||
UNION
|
UNION ALL
|
||||||
SELECT tpd.*
|
SELECT tpd.*
|
||||||
FROM tplanned_downtime tpd, tplanned_downtime_modules tpdm
|
FROM tplanned_downtime tpd, tplanned_downtime_modules tpdm
|
||||||
WHERE (tpd.id = tpdm.id_downtime
|
WHERE (tpd.id = tpdm.id_downtime
|
||||||
@ -4996,13 +5008,14 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||||||
array_unshift($table2->head, __('Date'));
|
array_unshift($table2->head, __('Date'));
|
||||||
|
|
||||||
$datelimit = $report["datetime"] - $content['period'];
|
$datelimit = $report["datetime"] - $content['period'];
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
// This query gets information from the default and the historic database
|
// This query gets information from the default and the historic database
|
||||||
$result = db_get_all_rows_sql('SELECT *
|
$result = db_get_all_rows_sql('SELECT *
|
||||||
FROM tagente_datos
|
FROM tagente_datos
|
||||||
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
|
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
|
||||||
AND utimestamp > ' . $datelimit . '
|
AND utimestamp > ' . $datelimit . '
|
||||||
AND utimestamp <= ' . $report["datetime"], true);
|
AND utimestamp <= ' . $report["datetime"], $search_in_history_db);
|
||||||
|
|
||||||
// Adds string data if there is no numeric data
|
// Adds string data if there is no numeric data
|
||||||
if ((count($result) < 0) or (!$result)) {
|
if ((count($result) < 0) or (!$result)) {
|
||||||
@ -5011,7 +5024,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||||||
FROM tagente_datos_string
|
FROM tagente_datos_string
|
||||||
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
|
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
|
||||||
AND utimestamp > ' . $datelimit . '
|
AND utimestamp > ' . $datelimit . '
|
||||||
AND utimestamp <= ' . $report["datetime"], true);
|
AND utimestamp <= ' . $report["datetime"], $search_in_history_db);
|
||||||
}
|
}
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
$result = array();
|
$result = array();
|
||||||
@ -7122,7 +7135,9 @@ function reporting_get_agentmodule_mtbf ($id_agent_module, $period = 0, $date =
|
|||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
|
|
||||||
// Read module configuration
|
// Read module configuration
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
||||||
FROM tagente_modulo
|
FROM tagente_modulo
|
||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
||||||
@ -7146,7 +7161,7 @@ function reporting_get_agentmodule_mtbf ($id_agent_module, $period = 0, $date =
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Get previous data
|
// Get previous data
|
||||||
@ -7232,7 +7247,9 @@ function reporting_get_agentmodule_mttr ($id_agent_module, $period = 0, $date =
|
|||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
|
|
||||||
// Read module configuration
|
// Read module configuration
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
||||||
FROM tagente_modulo
|
FROM tagente_modulo
|
||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
||||||
@ -7256,7 +7273,7 @@ function reporting_get_agentmodule_mttr ($id_agent_module, $period = 0, $date =
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Get previous data
|
// Get previous data
|
||||||
@ -7341,7 +7358,9 @@ function reporting_get_agentmodule_tto ($id_agent_module, $period = 0, $date = 0
|
|||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
|
|
||||||
// Read module configuration
|
// Read module configuration
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
||||||
FROM tagente_modulo
|
FROM tagente_modulo
|
||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
||||||
@ -7365,7 +7384,7 @@ function reporting_get_agentmodule_tto ($id_agent_module, $period = 0, $date = 0
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Get previous data
|
// Get previous data
|
||||||
@ -7441,7 +7460,9 @@ function reporting_get_agentmodule_ttr ($id_agent_module, $period = 0, $date = 0
|
|||||||
if (empty ($date)) $date = get_system_time ();
|
if (empty ($date)) $date = get_system_time ();
|
||||||
|
|
||||||
// Read module configuration
|
// Read module configuration
|
||||||
$datelimit = $date - $period;
|
$datelimit = $date - $period;
|
||||||
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
|
||||||
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
$module = db_get_row_sql ('SELECT max_critical, min_critical, id_tipo_modulo
|
||||||
FROM tagente_modulo
|
FROM tagente_modulo
|
||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
WHERE id_agente_modulo = ' . (int) $id_agent_module);
|
||||||
@ -7465,7 +7486,7 @@ function reporting_get_agentmodule_ttr ($id_agent_module, $period = 0, $date = 0
|
|||||||
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
WHERE id_agente_modulo = ' . (int) $id_agent_module .
|
||||||
' AND utimestamp > ' . (int) $datelimit .
|
' AND utimestamp > ' . (int) $datelimit .
|
||||||
' AND utimestamp < ' . (int) $date .
|
' AND utimestamp < ' . (int) $date .
|
||||||
' ORDER BY utimestamp ASC', true);
|
' ORDER BY utimestamp ASC', $search_in_history_db);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
// Get previous data
|
// Get previous data
|
||||||
|
@ -9,25 +9,33 @@
|
|||||||
次のマクロが利用できます:
|
次のマクロが利用できます:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>_agent_ : アラートが発生したエージェント</li>
|
<li>_agent_ : エージェント名。</li>
|
||||||
<li>_agentdescription_ : 発生したアラートの説明</li>
|
<li>_agentdescription_ : エージェントの説明。</li>
|
||||||
<li>_agentgroup_ : エージェントグループ名</li>
|
<li>_agentgroup_ : エージェントグループ名。</li>
|
||||||
<li>_agentstatus : エージェントの現在の状態</li>
|
<li>_agentstatus : エージェントの現在の状態。</li>
|
||||||
<li>_address_ : アラートが発生したエージェントのアドレス</li>
|
<li>_address_ : エージェントのアドレス。</li>
|
||||||
<li>_module_ : モジュール名</li>
|
<li>_module_ : モジュール名。</li>
|
||||||
<li>_modulegroup_ : モジュールグループ名</li>
|
<li>_modulegroup_ : モジュールグループ名。</li>
|
||||||
<li>_moduledescription_ : アラートが発生したモジュールの説明</li>
|
<li>_moduledescription_ : モジュールの説明。</li>
|
||||||
<li>_modulestatus_ : モジュールの状態</li>
|
<li>_modulestatus_ : モジュールの状態。</li>
|
||||||
<li>_moduletags_ : モジュールに関連付けられたタグ</li>
|
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です。</li>
|
||||||
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です</li>
|
<li>_policy_ : モジュールが属するポリシー名。(存在する場合)</li>
|
||||||
<li>_policy_ : モジュールが属するポリシー名 (存在する場合)</li>
|
<li>_interval_ : モジュールの実行間隔。</li>
|
||||||
<li>_interval_ : モジュールの実行間隔</li>
|
|
||||||
<li>_target_ip_ : モジュールの対象IPアドレス</li>
|
<!--
|
||||||
<li>_target_port_ : モジュールの対象ポート</li>
|
Hidden this macros because they cannot edit in the module form
|
||||||
<li>_plugin_parameters_ : モジュールのプラグインパラメータ</li>
|
-->
|
||||||
<li>_name_tag_ : モジュールに関連付けられたタグの名前</li>
|
<!--
|
||||||
|
<li>_target_ip_ : モジュールの対象IPアドレス。</li>
|
||||||
|
<li>_target_port_ : モジュールの対象ポート。</li>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<li>_plugin_parameters_ : モジュールのプラグインパラメータ。</li>
|
||||||
|
<li>_name_tag_ : モジュールに関連付けられたタグの名前。</li>
|
||||||
<li>_email_tag_ : モジュールタグに関連付けられた Email。</li>
|
<li>_email_tag_ : モジュールタグに関連付けられた Email。</li>
|
||||||
<li>_phone_tag_ : モジュールタグに関連付けられた電話番号。</li>
|
<li>_phone_tag_ : モジュールタグに関連付けられた電話番号。</li>
|
||||||
<li>_moduletags_ : モジュールタグに関連付けられた URL。</li>
|
<li>_moduletags_ : モジュールタグに関連付けられた URL。</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<p>
|
||||||
|
</p>
|
||||||
|
@ -62,8 +62,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '5.1SP1RC2';
|
$version = '5.1SP1RC3';
|
||||||
$build = '141021';
|
$build = '141024';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Pandora FMS Console
|
# Pandora FMS Console
|
||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 5.1SP1RC2
|
%define version 5.1SP1RC3
|
||||||
%define release 141021
|
%define release 141024
|
||||||
|
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Pandora FMS Console
|
# Pandora FMS Console
|
||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 5.1SP1RC2
|
%define version 5.1SP1RC3
|
||||||
%define release 141021
|
%define release 141024
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name apache2
|
%define httpd_name apache2
|
||||||
|
@ -37,8 +37,8 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
|
|||||||
('days_compact','0'),
|
('days_compact','0'),
|
||||||
('graph_res','5'),
|
('graph_res','5'),
|
||||||
('step_compact','1'),
|
('step_compact','1'),
|
||||||
('db_scheme_version','5.1SP1RC2'),
|
('db_scheme_version','5.1SP1RC3'),
|
||||||
('db_scheme_build','PD141021'),
|
('db_scheme_build','PD141024'),
|
||||||
('show_unknown','0'),
|
('show_unknown','0'),
|
||||||
('show_lastalerts','1'),
|
('show_lastalerts','1'),
|
||||||
('style','pandora'),
|
('style','pandora'),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 5.1SP1RC2-141021
|
Version: 5.1SP1RC3-141024
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="5.1SP1RC2-141021"
|
pandora_version="5.1SP1RC3-141024"
|
||||||
|
|
||||||
package_cpan=0
|
package_cpan=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
# Pandora FMS Server Parameters
|
# Pandora FMS Server Parameters
|
||||||
# Pandora FMS, the Flexible Monitoring System.
|
# Pandora FMS, the Flexible Monitoring System.
|
||||||
# Version 5.1SP1RC2
|
# Version 5.1SP1RC3
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# (c) 2003-2014 Artica Soluciones Tecnologicas
|
# (c) 2003-2014 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
@ -42,8 +42,8 @@ our @EXPORT = qw(
|
|||||||
);
|
);
|
||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "5.1SP1RC2";
|
my $pandora_version = "5.1SP1RC3";
|
||||||
my $pandora_build = "141021";
|
my $pandora_build = "141024";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Pandora FMS Server
|
# Pandora FMS Server
|
||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 5.1SP1RC2
|
%define version 5.1SP1RC3
|
||||||
%define release 141021
|
%define release 141024
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Pandora FMS Server
|
# Pandora FMS Server
|
||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 5.1SP1RC2
|
%define version 5.1SP1RC3
|
||||||
%define release 141021
|
%define release 141024
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -33,7 +33,7 @@ use PandoraFMS::Tools;
|
|||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "5.1SP1RC2 PS141021";
|
my $version = "5.1SP1RC3 PS141024";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
@ -34,7 +34,7 @@ use Encode::Locale;
|
|||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "5.1SP1RC2 PS141021";
|
my $version = "5.1SP1RC3 PS141024";
|
||||||
|
|
||||||
# save program name for logging
|
# save program name for logging
|
||||||
my $progname = basename($0);
|
my $progname = basename($0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user