Merge branch 'cherry-pick-b333e79e' into 'develop'
Fixed name of agents and images status in report Agents/Modules. Gitlab: #553 See merge request !286
This commit is contained in:
commit
fb0cca8bad
|
@ -1361,7 +1361,7 @@ function reporting_html_agent_module($table, $item) {
|
|||
break;
|
||||
}
|
||||
|
||||
$file_name = ui_print_truncate_text($row['agent_alias'], 'agent_small',
|
||||
$file_name = ui_print_truncate_text($row['agent_name'], 'agent_small',
|
||||
false, true, false, '...');
|
||||
$table_data .= "<td style='background-color: " . $rowcolor . ";'>" .
|
||||
$file_name . "</td>";
|
||||
|
@ -1379,7 +1379,8 @@ function reporting_html_agent_module($table, $item) {
|
|||
__("%s in %s : NORMAL",
|
||||
$module_name,
|
||||
$row['agent_name']),
|
||||
true, array('width' => '20px', 'height' => '20px'));
|
||||
true, array('width' => '20px', 'height' => '20px'),
|
||||
'images/status_sets/default/');
|
||||
break;
|
||||
case AGENT_STATUS_CRITICAL:
|
||||
$table_data .= ui_print_status_image(
|
||||
|
@ -1387,7 +1388,8 @@ function reporting_html_agent_module($table, $item) {
|
|||
__("%s in %s : CRITICAL",
|
||||
$module_name,
|
||||
$row['agent_name']),
|
||||
true, array('width' => '20px', 'height' => '20px'));
|
||||
true, array('width' => '20px', 'height' => '20px'),
|
||||
'images/status_sets/default/');
|
||||
break;
|
||||
case AGENT_STATUS_WARNING:
|
||||
$table_data .= ui_print_status_image(
|
||||
|
@ -1395,7 +1397,8 @@ function reporting_html_agent_module($table, $item) {
|
|||
__("%s in %s : WARNING",
|
||||
$module_name,
|
||||
$row['agent_name']),
|
||||
true, array('width' => '20px', 'height' => '20px'));
|
||||
true, array('width' => '20px', 'height' => '20px'),
|
||||
'images/status_sets/default/');
|
||||
break;
|
||||
case AGENT_STATUS_UNKNOWN:
|
||||
$table_data .= ui_print_status_image(
|
||||
|
@ -1403,7 +1406,8 @@ function reporting_html_agent_module($table, $item) {
|
|||
__("%s in %s : UNKNOWN",
|
||||
$module_name,
|
||||
$row['agent_name']),
|
||||
true, array('width' => '20px', 'height' => '20px'));
|
||||
true, array('width' => '20px', 'height' => '20px'),
|
||||
'images/status_sets/default/');
|
||||
break;
|
||||
case AGENT_MODULE_STATUS_NORMAL_ALERT:
|
||||
case AGENT_MODULE_STATUS_WARNING_ALERT:
|
||||
|
@ -1413,7 +1417,8 @@ function reporting_html_agent_module($table, $item) {
|
|||
__("%s in %s : ALERTS FIRED",
|
||||
$module_name,
|
||||
$row['agent_name']),
|
||||
true, array('width' => '20px', 'height' => '20px'));
|
||||
true, array('width' => '20px', 'height' => '20px'),
|
||||
'images/status_sets/default/');
|
||||
break;
|
||||
case 4:
|
||||
$table_data .= ui_print_status_image(
|
||||
|
@ -1421,7 +1426,8 @@ function reporting_html_agent_module($table, $item) {
|
|||
__("%s in %s : Not initialize",
|
||||
$module_name,
|
||||
$row['agent_name']),
|
||||
true, array('width' => '20px', 'height' => '20px'));
|
||||
true, array('width' => '20px', 'height' => '20px'),
|
||||
'images/status_sets/default/');
|
||||
break;
|
||||
}
|
||||
$table_data .= "</td>";
|
||||
|
|
Loading…
Reference in New Issue