"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/PandoraFMS/DiscoveryServer.pm" between
pandorafms_server-7.0NG.755.tar.gz and pandorafms_server-7.0NG.756.tar.gz

About: Pandora FMS (Flexible Monitoring System) offers enterprise IT monitoring for networks, applications, servers and virtual infrastructure. Core server.

DiscoveryServer.pm  (pandorafms_server-7.0NG.755):DiscoveryServer.pm  (pandorafms_server-7.0NG.756)
skipping to change at line 151 skipping to change at line 151
# Status -1 means "done". # Status -1 means "done".
my @rows; my @rows;
if (pandora_is_master($pa_config) == 0) { if (pandora_is_master($pa_config) == 0) {
@rows = get_db_rows ($dbh, 'SELECT * FROM trecon_task @rows = get_db_rows ($dbh, 'SELECT * FROM trecon_task
WHERE id_recon_server = ? WHERE id_recon_server = ?
AND disabled = 0 AND disabled = 0
AND ((utimestamp = 0 AND interval_sweep != 0 OR status = 1) AND ((utimestamp = 0 AND interval_sweep != 0 OR status = 1)
OR (status = -1 AND interval_sweep > 0 AND (utimestamp + interval_sweep) < UNIX_TIMESTAMP()))', $server_id); OR (status = -1 AND interval_sweep > 0 AND (utimestamp + interval_sweep) < UNIX_TIMESTAMP()))', $server_id);
} else { } else {
@rows = get_db_rows ($dbh, 'SELECT * FROM trecon_task @rows = get_db_rows ($dbh, 'SELECT * FROM trecon_task
WHERE (id_recon_server = ? OR id_recon_server = ANY(SELECT id_server FROM tserver WHERE status = 0 AND server_type = ?)) WHERE (id_recon_server = ? OR id_recon_server = ANY(SELECT id_server FROM tserver WHERE status <> 1 AND server_type = ?))
AND disabled = 0 AND disabled = 0
AND ((utimestamp = 0 AND interval_sweep != 0 OR status = 1) AND ((utimestamp = 0 AND interval_sweep != 0 OR status = 1)
OR (status = -1 AND interval_sweep > 0 AND (utimestamp + interval_sweep) < UNIX_TIMESTAMP()))', $server_id, DISCOVERYSERVER); OR (status = -1 AND interval_sweep > 0 AND (utimestamp + interval_sweep) < UNIX_TIMESTAMP()))', $server_id, DISCOVERYSERVER);
} }
foreach my $row (@rows) { foreach my $row (@rows) {
# Update task status # Update task status
update_recon_task ($dbh, $row->{'id_rt'}, 1); update_recon_task ($dbh, $row->{'id_rt'}, 1);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)