next if ($hostid ne $SERVER{$server});