mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
standby software agent while disabling
This commit is contained in:
parent
d0d989ab19
commit
b2ed4a9d2c
@ -10014,6 +10014,11 @@ function api_set_enable_disable_agent ($id, $thrash2, $other, $thrash3) {
|
||||
}
|
||||
|
||||
$disabled = ( $other['data'][0] ? 0 : 1 );
|
||||
|
||||
enterprise_hook(
|
||||
'config_agents_update_config_token',
|
||||
array($id, 'standby', $disabled ? "1" : "0")
|
||||
);
|
||||
|
||||
$result = db_process_sql_update('tagente',
|
||||
array('disabled' => $disabled), array('id_agente' => $id));
|
||||
|
Loading…
x
Reference in New Issue
Block a user