Avoid mark as crashed satellite_server

This commit is contained in:
fbsanchez 2021-06-03 10:29:49 +02:00
parent b70a056dc5
commit 423a46af8c
1 changed files with 2 additions and 1 deletions

View File

@ -803,7 +803,8 @@ sub main() {
db_do ($DBH, db_do ($DBH,
"UPDATE tserver SET status = -1 "UPDATE tserver SET status = -1
WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive
AND status != 0" AND status != 0 AND server_type != ?",
PandoraFMS::Tools::SATELLITESERVER
); );
# Set the master server # Set the master server