fixes from mrobbert

git-svn-id: http://www.observium.org/svn/observer/trunk@2429 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-08 05:02:14 +00:00
parent 3b2446d3cb
commit e8d37edaf9
3 changed files with 7 additions and 11 deletions

View File

@@ -190,10 +190,10 @@ function addHost($host, $community, $snmpver, $port = 161, $transport = 'udp')
if ($snmphost == $host || $hostshort = $host)
{
createHost($host, $community, $snmpver, $port, $transport);
} else { echo("Given hostname does not match SNMP-read hostname!\n"); }
} else { echo("Already got host $host\n"); }
} else { echo("Could not ping $host\n"); }
} else { echo("Could not resolve $host\n"); }
} else { print_error("Given hostname does not match SNMP-read hostname!\n"); }
} else { print_error("Already got host $host\n"); }
} else { print_error("Could not ping $host\n"); }
} else { print_error("Could not resolve $host\n"); }
}
function scanUDP($host, $port, $timeout)