mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
preserve previous disabled or quiet condition when downtime is over
This commit is contained in:
parent
68525f0a12
commit
a4e186ae84
@ -701,18 +701,6 @@ function planned_downtimes_stop($downtime)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'disable_agent_modules':
|
case 'disable_agent_modules':
|
||||||
/*$update_sql = sprintf(
|
|
||||||
'UPDATE tagente_modulo tam, tagente ta, tplanned_downtime_modules tpdm
|
|
||||||
SET tam.disabled = 0, ta.update_module_count = 1
|
|
||||||
WHERE tpdm.id_agent_module = tam.id_agente_modulo AND
|
|
||||||
ta.id_agente = tam.id_agente AND
|
|
||||||
tpdm.id_downtime = %d',
|
|
||||||
$id_downtime
|
|
||||||
);
|
|
||||||
|
|
||||||
db_process_sql($update_sql);
|
|
||||||
|
|
||||||
$count = '';*/
|
|
||||||
$agents = db_get_all_rows_filter(
|
$agents = db_get_all_rows_filter(
|
||||||
'tplanned_downtime_agents',
|
'tplanned_downtime_agents',
|
||||||
['id_downtime' => $id_downtime]
|
['id_downtime' => $id_downtime]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user