@Oleg I hope you can read patch/diff information. Here are the changes you need to make to /var/www/html/fog/lib/pages/hostmanagementpage.class.php to add the “System Product” column to the host list output - this is for FOG 1.5.9 and would probably work in 1.5.8 just as well:
--- fogproject-master/packages/web/lib/pages/hostmanagementpage.class.php 2020-09-14 01:00:12.000000000 +0200
+++ /var/www/html/fog/lib/pages/hostmanagementpage.class.php 2020-12-19 17:03:24.225580767 +0100
@@ -175,7 +175,8 @@
_('Host'),
_('Imaged'),
_('Task'),
- _('Assigned Image')
+ _('Assigned Image'),
+ _('System Product')
);
$this->templates = array(
'<i class="icon fa fa-question hand"></i>',
@@ -223,7 +224,9 @@
_('Goto task list')
),
'<small><a href="?node=image&sub=edit&id=${image_id}">'
- . '${image_name}</a></small>'
+ . '${image_name}</a></small>',
+ '${inventory}'
+
);
unset($up, $down, $mc);
$this->attributes = array(
@@ -259,6 +262,9 @@
),
array(
'width' => 20
+ ),
+ array(
+ 'width' => 120
)
);
/**
@@ -281,6 +287,7 @@
'image_id' => $Host->imageID,
'image_name' => $Host->imagename,
'pingstatus' => $Host->pingstatus,
+ 'inventory' => $Host->inventory->sysproduct,
);
unset($Host);
};
I suggest you keep a copy of this information somewhere so you can apply the changes whenever you update to a new version of FOG.