$hostname=$default_hostname;
// locate hostname from DB based on this IP
-$interfaces=$adm->GetInterfaces(array("ip"=>$ip));
+$interfaces=$adm->GetNodeNetworks(array("ip"=>$ip));
if (! empty($interfaces) ) {
$interface=$interfaces[0];
$node_id=$interface['node_id'];