Merge branch 'ent-966-os_version-en-ficheros-xml-ext-4098-v7-0-pandora6' into 'pandora_6.0'

Ent 966 os version en ficheros xml ext 4098 v7 0 pandora6

See merge request artica/pandorafms!814
This commit is contained in:
vgilc 2018-02-23 10:26:42 +01:00
commit 0037ed314f
2 changed files with 3 additions and 2 deletions

View File

@ -2031,7 +2031,8 @@ function events_page_details ($event, $server = "") {
$data = array();
$data[0] = '<div style="font-weight:normal; margin-left: 20px;">'.__('OS').'</div>';
$data[1] = ui_print_os_icon ($agent["id_os"], true, true).' ('.$agent["os_version"].')';
$data[1] = ui_print_os_icon ($agent["id_os"], true, true);
if (!empty($agent["os_version"])) $data[1] .= ' ('.$agent["os_version"].')';
$table_details->data[] = $data;
$data = array();

View File

@ -306,7 +306,7 @@ sub process_xml_data ($$$$$) {
# Check some variables
$interval = 300 if (! defined ($interval) || $interval eq '');
$os_version = 'N/A' if (! defined ($os_version) || $os_version eq '');
$os_version = undef if (! defined ($os_version) || $os_version eq '');
# Get agent address from the XML if available
my $address = '' ;