2008-10-30 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/DB.pm: Some people reports problems with server stop detection. This could help, because has optimized way to detect servers, but is not a bugfix because I cannot reproduce the problem. * Config.pm: Updated version (2.1) * server/Launcher scripts: Updated version (2.1) git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1205 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6ce0966725
commit
1a144f11cb
|
@ -1,3 +1,14 @@
|
|||
2008-10-30 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* lib/PandoraFMS/DB.pm: Some people reports problems with
|
||||
server stop detection. This could help, because has optimized
|
||||
way to detect servers, but is not a bugfix because I cannot
|
||||
reproduce the problem.
|
||||
|
||||
* Config.pm: Updated version.
|
||||
|
||||
* server/Launcher scripts: Updated version.
|
||||
|
||||
2008-10-22 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* bin/pandora_snmpconsole: Feature request #2166257
|
||||
|
|
|
@ -38,8 +38,8 @@ our @EXPORT = qw(
|
|||
# There is no global vars, all variables (setup) passed as hash reference
|
||||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "2.0";
|
||||
my $pandora_build="PS081014";
|
||||
my $pandora_version = "2.1-dev";
|
||||
my $pandora_build="PS081030";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
# Setup hash
|
||||
|
|
|
@ -1302,7 +1302,8 @@ sub pandora_serverkeepaliver (%$$) {
|
|||
$temp = $pa_config->{"keepalive_orig"} * 2; # Down if keepalive x 2 seconds unknown
|
||||
my $fecha_limite = DateCalc($timestamp,"- $temp seconds",\$err);
|
||||
$fecha_limite = &UnixDate($fecha_limite,"%Y-%m-%d %H:%M:%S");
|
||||
my $query_idag = "SELECT * FROM tserver WHERE keepalive < '$fecha_limite'";
|
||||
|
||||
my $query_idag = "SELECT * FROM tserver WHERE status = 1 AND keepalive < '$fecha_limite'";
|
||||
my $s_idag = $dbh->prepare($query_idag);
|
||||
$s_idag ->execute;
|
||||
if ($s_idag->rows != 0) {
|
||||
|
@ -1313,19 +1314,16 @@ sub pandora_serverkeepaliver (%$$) {
|
|||
my $sql_update = "UPDATE tserver SET status = 0, version = '".$version_data."' WHERE id_server = $data[0]";
|
||||
$dbh->do($sql_update);
|
||||
|
||||
|
||||
pandora_event ($pa_config, "Server ".$data[1]." going Down", 0,
|
||||
0, 4, 0, 0, "system", $dbh);
|
||||
|
||||
logger( $pa_config, "Server ".$data[1]." going Down ",1);
|
||||
pandora_event ($pa_config, "Server ".$data[1]." going Down", 0, 0, 4, 0, 0, "system", $dbh);
|
||||
logger( $pa_config, "Server ".$data[1]." going Down ", 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
$s_idag->finish();
|
||||
# Update my server
|
||||
$pa_config->{"keepalive"} = $pa_config->{"keepalive_orig"};
|
||||
} else {
|
||||
$pa_config->{"keepalive"} = $pa_config->{"keepalive"} - $pa_config->{"server_threshold"};
|
||||
}
|
||||
$pa_config->{"keepalive"} = $pa_config->{"keepalive"} - $pa_config->{"server_threshold"};
|
||||
}
|
||||
|
||||
##########################################################################
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Pandora FMS Network Server, startup script
|
||||
# Copyright (c) 2006-2008 Sancho Lerena, <slerena@gmail.com>
|
||||
# Linux Version (generic)
|
||||
# v2.0 Build 080903
|
||||
# v2.1 Build 081030
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# Configurable path and filenames
|
||||
|
@ -64,6 +64,7 @@ case "$1" in
|
|||
;;
|
||||
force-reload|restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Pandora FMS Plugin Server, startup script
|
||||
# Copyright (c) 2006-2008 Sancho Lerena, <slerena@gmail.com>
|
||||
# Linux Version (generic)
|
||||
# v2.0 Build 080903
|
||||
# v2.1 Build 081030
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# Configurable path and filenames
|
||||
|
@ -62,6 +62,7 @@ case "$1" in
|
|||
;;
|
||||
force-reload|restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Pandora FMS Prediction Server, startup script
|
||||
# Copyright (c) 2006-2008 Sancho Lerena, <slerena@gmail.com>
|
||||
# Linux Version (generic)
|
||||
# v2.0 Build 080903
|
||||
# v2.1 Build 081030
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# Configurable path and filenames
|
||||
|
@ -64,6 +64,7 @@ case "$1" in
|
|||
;;
|
||||
force-reload|restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Pandora FMS Recon Server, startup script
|
||||
# Copyright (c) 2006-2008 Sancho Lerena, <slerena@gmail.com>
|
||||
# Linux Version (generic)
|
||||
# v2.0 Build 080903
|
||||
# v2.1 Build 081030
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# Configurable path and filenames
|
||||
|
@ -62,6 +62,7 @@ case "$1" in
|
|||
;;
|
||||
force-reload|restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Pandora FMS Data Server, startup script
|
||||
# Copyright (c) 2006-2008 Sancho Lerena, <slerena@gmail.com>
|
||||
# Linux Version (generic)
|
||||
# v2.0 Build 080903
|
||||
# v2.1 Build 081030
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# Configurable path and filenames
|
||||
|
@ -64,6 +64,7 @@ case "$1" in
|
|||
;;
|
||||
force-reload|restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Pandora FMS WMI Server, startup script
|
||||
# Copyright (c) 2006-2008 Sancho Lerena, <slerena@gmail.com>
|
||||
# Linux Version (generic)
|
||||
# v2.0 Build 080903
|
||||
# v2.1 Build 081030
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# Configurable path and filenames
|
||||
|
@ -62,6 +62,7 @@ case "$1" in
|
|||
;;
|
||||
force-reload|restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in New Issue