Fixed images. Only simple images in item Agent/modules report

This commit is contained in:
m-lopez-f 2017-03-30 13:23:30 +02:00
parent 145c521c11
commit ce5b5dab66
1 changed files with 12 additions and 6 deletions

View File

@ -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>";