to_clickhouse_enabled,
      609         active = page == "db_search",
      610         page_name = "db_search",
      611         label = "<i class=\"fas fa-search-plus\" title='" .. i18n("db_explorer.historical_data_explorer") .. "'\"></i>",
      612         url = historical_flow_link
      613     }, {
      614         hidden = not isAdministrator() or interface.isPcapDumpInterface(),
      615         active = page == "config",
      616         page_name = "config",
      617         label = "<i class='fas fa-lg fa-cog' title='" .. i18n("settings") .. "'></i></a></li>"
      618     }})
      619 
      620     -- tprint(host.bins)
      621     local macinfo = interface.getMacInfo(host["mac"])
      622     local has_snmp_location = host['localhost'] and (host["mac"] ~= "") and snmp_location and
      623                                   snmp_location.host_has_snmp_location(host["mac"]) and isAllowedSystemInterface()
      624 
      625     if ((page == "overview") or (page == nil)) then
      626         print [[
      627   <div class="row">
      628   <div class="col-md-12 col-lg-12">
      629     <div class="mt-4 card card-shadow">
      630       <div class="card-body">
      631       ]]
      632         print("<table class=\"table table-striped table-bordered\">\n")
      633         if (host["ip"] ~= nil) then
      634             if (host["mac"] ~= "00:00:00:00:00:00") then
      635 
      636                 if (host.router ~= nil) then
      637                     print("<tr><th width=35%>" .. i18n("details.router_access_point_mac_address") ..
      638                               "</th><td colspan=2>" .. get_symbolic_mac(host.router, false) .. "</td></tr>")
      639                     print("<tr><th width=35%>" .. i18n("details.host_mac_address") .. "</th><td>" ..
      640                               get_symbolic_mac(host["mac"], false) .. " " .. discover.devtype2icon(host["device_type"]))
      641                 else
      642                     if (host.localhost) then
      643                         print("<tr><th width=35%>" .. i18n("details.mac_address") .. "</th><td>" ..
      644                                   get_symbolic_mac(host["mac"], false) .. " " ..
      645                                   discover.devtype2icon(host["device_type"]))
      646                     else
      647                         print("<tr><th width=35%>" .. i18n("details.router_access_point_mac_address") .. "</th><td>" ..
      648                                   get_symbolic_mac(host["mac"], false) .. " " ..
      649                                   discover.devtype2icon(host["device_type"]))
      650                     end
      651                 end
      652                 print('</td><td>')
      653 
      654                 if (host['localhost'] and (macinfo ~= nil)) then
      655                     -- This is a known device type
      656                     print(discover.devtype2icon(macinfo.devtype) .. " ")
      657                     if macinfo.devtype ~= 0 then
      658                         print(discover.devtype2string(macinfo.devtype) .. " ")
      659                     else
      660                         print(i18n("host_details.unknown_device_type") .. " ")
      661                     end
      662                     print('<a href="' .. ntop.getHttpPrefix() .. '/lua/mac_details.lua?' .. hostinfo2url(macinfo) ..
      663                               '&page=config"><i class="fas fa-cog"></i></a>\n')
      664                 else
      665                     print("&nbsp;")
      666                 end
      667 
      668                 print('</td></tr>')
      669             end
      670 
      671             if has_snmp_location then
      672                 snmp_location.print_host_snmp_location(host["mac"], hostinfo2detailsurl(host, {
      673                     page = "snmp"
      674                 }))
      675             end