To know which code returs, you can do a little change in the code:
File: /var/www/html/fog/lib/plugins/hoststatus/hooks/addhoststatushost.hook.php
case 0:
printf($strtoupdate, 'windows', 'windows', 'green', 'Windows');
break;
case 111:
$taskID = self::getSubObjectIDs(
'Task',
array('hostID' => $hostID,
'stateID' => 2
),
'id'
);
if (is_null($taskID)) {
printf($strtoupdate, 'linux', 'linux', 'blue', 'Linux');
} else {
printf($strtoupdate, 'fos', 'cogs', 'green', 'FOS');
}
break;
default:
printf($strtoupdate, 'down', 'exclamation-circle', 'red', 'Unknown');
Change the line 114:
printf($strtoupdate, 'down', 'exclamation-circle', 'red', $ping);
Now in the host edit page will be appeared the code in the description when the mouse pass over the icon.