print(' <span class="badge bg-success">' .. i18n("details.label_imap_server") .. '</span>')
      822                 end
      823                 if (host.services.pop) then
      824                     print(' <span class="badge bg-success">' .. i18n("details.label_pop_server") .. '</span>')
      825                 end
      826             end
      827 
      828             if (host["dhcp_server"] == true) then
      829                 print(' <span class="badge bg-success" style="cursor: help;">' .. i18n("details.label_dhcp_server") ..
      830                           '</span>')
      831             end
      832             if (host["systemhost"] == true) then
      833                 print(' <span class="badge bg-success" style="cursor: help;"><i class=\"fas fa-flag\" title=\"' ..
      834                           i18n("details.label_system_ip") .. '\"></i></span>')
      835             end
      836             if (host["is_blacklisted"] == true) then
      837                 print(" <a href='"..ntop.getHttpPrefix().."/lua/admin/edit_category_lists.lua'><span class='badge bg-danger'>" .. i18n("details.label_blacklisted_host"))
      838 
      839                 if (host.blacklist_name ~= nil) then
      840                     print(' (' .. host.blacklist_name .. ')')
      841                 end
      842 
      843                 print('</span></a>')
      844             end
      845 
      846             if ((host["privatehost"] == false) and (host["is_multicast"] == false) and (host["is_broadcast"] == false)) then
      847                 print(
      848                     ' <A class="ntopng-external-link" href="https://www.virustotal.com/gui/ip-address/' .. host["ip"] ..
      849                         '/detection" target=_blank><small>VirusTotal</small> <i class=\"fas fa-external-link-alt\"></i></A>')
      850                 print(' <A class="ntopng-external-link" href="https://www.abuseipdb.com/check/' .. host["ip"] ..
      851                           '" target=_blank><small>AbuseIP DB</small> <i class=\"fas fa-external-link-alt\"></i></A>')
      852             end
      853 
      854             print("</td>\n")
      855         end
      856 
      857         local h_notes = getHostNotes(host_info) or ''
      858 
      859         if (not isEmptyString(h_notes)) then
      860             print [[
      861 
      862             <tr><th>]]
      863             print(i18n("host_details.notes"))
      864             print [[</th><td colspan="2"><span id="host_notes">]]
      865             print(h_notes)
      866             print [[</span><span id="host_notes"></span></td></tr>
      867 
      868             ]]
      869         end
      870 
      871         if (host["num_alerts"] > 0) then
      872             print("<tr><th><i class=\"fas fa-exclamation-triangle\" style='color: #B94A48;'></i> " ..
      873                       i18n("show_alerts.engaged_alerts") .. "</th><td colspan=2></li>" .. hostinfo2detailshref(host, {
      874                 page = "engaged-alerts"
      875             }, "<span id=num_alerts>" .. host["num_alerts"] .. "</span>") ..
      876                       " <span id=alerts_trend></span></td></tr>\n")
      877         end
      878 
      879         -- Active monitoring
      880         if am_utils and am_utils.isMeasurementAvailable('icmp') then
      881             local icmp = isIPv6(host["ip"]) and 'icmp6' or 'icmp'
      882             print([[
      883          <tr>
      884             <th>]] .. i18n("active_monitoring_stats.active_monitoring") .. [[</th>
      885          ]])
      886             if (not am_utils.hasHost(host["ip"], icmp)) then
      887                 print([[
      888             <td colspan="2">
      889                <a href='#' id='btn-add-am-host'>]] .. i18n('active_monitoring_stats.add_icmp') ..
      890                           [[ <i class='fas fa-plus'></i></a