standby software agent while disabling

This commit is contained in:
fbsanchez 2018-11-16 14:26:11 +01:00
parent d0d989ab19
commit b2ed4a9d2c
1 changed files with 5 additions and 0 deletions

View File

@ -10015,6 +10015,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));