mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Ent 6890 condición agentes vista sap
This commit is contained in:
parent
6c2a353812
commit
1bbbbcaee1
@ -3751,6 +3751,7 @@ function agents_get_sap_agents($id_agent)
|
|||||||
// Available modules.
|
// Available modules.
|
||||||
// If you add more modules, please update SAP.pm.
|
// If you add more modules, please update SAP.pm.
|
||||||
$sap_modules = [
|
$sap_modules = [
|
||||||
|
0 => 'SAP connection',
|
||||||
160 => __('SAP Login OK'),
|
160 => __('SAP Login OK'),
|
||||||
109 => __('SAP Dumps'),
|
109 => __('SAP Dumps'),
|
||||||
111 => __('SAP lock entry list'),
|
111 => __('SAP lock entry list'),
|
||||||
@ -3760,9 +3761,9 @@ function agents_get_sap_agents($id_agent)
|
|||||||
105 => __('SAP IDOC OK'),
|
105 => __('SAP IDOC OK'),
|
||||||
150 => __('SAP WP without active restart'),
|
150 => __('SAP WP without active restart'),
|
||||||
151 => __('SAP WP stopped'),
|
151 => __('SAP WP stopped'),
|
||||||
102 => __('Average time of SAPGUI response '),
|
102 => __('Average time of SAPGUI response'),
|
||||||
180 => __('Dialog response time'),
|
180 => __('Dialog response time'),
|
||||||
103 => __('Dialog Logged users '),
|
103 => __('Dialog Logged users'),
|
||||||
192 => __('TRFC in error'),
|
192 => __('TRFC in error'),
|
||||||
195 => __('QRFC in error SMQ2'),
|
195 => __('QRFC in error SMQ2'),
|
||||||
116 => __('Number of Update WPs in error'),
|
116 => __('Number of Update WPs in error'),
|
||||||
@ -3770,13 +3771,16 @@ function agents_get_sap_agents($id_agent)
|
|||||||
|
|
||||||
$array_agents = [];
|
$array_agents = [];
|
||||||
foreach ($sap_modules as $module => $key) {
|
foreach ($sap_modules as $module => $key) {
|
||||||
$sql = 'SELECT ta.id_agente,ta.alias, ta.id_grupo
|
$sql = sprintf(
|
||||||
FROM tagente ta
|
'SELECT ta.id_agente,ta.alias
|
||||||
INNER JOIN tagente_modulo tam
|
FROM tagente ta
|
||||||
ON tam.id_agente = ta.id_agente
|
INNER JOIN tagente_modulo tam
|
||||||
WHERE tam.nombre
|
ON tam.id_agente = ta.id_agente
|
||||||
LIKE "%SAP%"
|
WHERE tam.nombre
|
||||||
GROUP BY ta.id_agente';
|
LIKE "%s"
|
||||||
|
GROUP BY ta.id_agente',
|
||||||
|
io_safe_input($key)
|
||||||
|
);
|
||||||
|
|
||||||
// ACL groups.
|
// ACL groups.
|
||||||
$agent_groups = array_keys(users_get_groups($config['id_user']));
|
$agent_groups = array_keys(users_get_groups($config['id_user']));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user