Merge branch 'grep_syslog_module' into 'develop'

Add an icon and constants for the new Syslog server.

See merge request artica/pandorafms!1160
This commit is contained in:
vgilc 2017-12-05 11:39:44 +01:00
commit 20720c9f0b
3 changed files with 7 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

View File

@ -357,6 +357,7 @@ define('SERVER_TYPE_ENTERPRISE_TRANSACTIONAL', 14);
define('SERVER_TYPE_MAINFRAME', 15); define('SERVER_TYPE_MAINFRAME', 15);
define('SERVER_TYPE_SYNC', 16); define('SERVER_TYPE_SYNC', 16);
define('SERVER_TYPE_WUX', 17); define('SERVER_TYPE_WUX', 17);
define('SERVER_TYPE_SYSLOG', 18);
/* REPORTS */ /* REPORTS */
define('REPORT_TOP_N_MAX', 1); define('REPORT_TOP_N_MAX', 1);

View File

@ -167,6 +167,7 @@ function servers_get_performance () {
case SERVER_TYPE_INVENTORY: case SERVER_TYPE_INVENTORY:
case SERVER_TYPE_EVENT: case SERVER_TYPE_EVENT:
case SERVER_TYPE_RECON: case SERVER_TYPE_RECON:
case SERVER_TYPE_SYSLOG:
break; break;
} }
@ -449,6 +450,11 @@ function servers_get_info ($id_server = -1) {
$server["type"] = "wux"; $server["type"] = "wux";
$id_modulo = 0; $id_modulo = 0;
break; break;
case SERVER_TYPE_SYSLOG:
$server["img"] = html_print_image ("images/syslog.png", true, array ("title" => __('Syslog server')));
$server["type"] = "syslog";
$id_modulo = 0;
break;
default: default:
$server["img"] = ''; $server["img"] = '';
$server["type"] = "unknown"; $server["type"] = "unknown";