#12350 added agent name editing 3

This commit is contained in:
Daniel Maya 2024-02-16 09:14:34 +01:00
parent 151808b6bf
commit 12eca2dbd4
2 changed files with 13 additions and 2 deletions

View File

@ -378,8 +378,9 @@ if ($new_agent === false) {
);
// Other than Linux, Solaris, AIX, BSD, HPUX, MacOs, and Windows.
if ($id_os !== '1' && $id_os !== '2' && $id_os !== '3' && $id_os !== '4'
&& $id_os !== '5' && $id_os !== '7' && $id_os !== '8'
if ($id_os !== LINUX && $id_os !== SOLARIS && $id_os !== AIX
&& $id_os !== BSD && $id_os !== HPUX && $id_os !== MACOS
&& $id_os !== WINDOWS
) {
$tableAgent->data['name'][0] .= html_print_anchor(
[

View File

@ -907,3 +907,13 @@ define('DEMO_SERVICE', 6);
define('DEMO_DASHBOARD', 7);
define('DEMO_VISUAL_CONSOLE', 8);
define('DEMO_PLUGIN', 9);
// OS.
define('LINUX', '1');
define('SOLARIS', '2');
define('AIX', '3');
define('BSD', '4');
define('HPUX', '5');
define('CISCO', '7');
define('MACOS', '8');
define('WINDOWS', '9');