some updates.

git-svn-id: http://www.observium.org/svn/observer/trunk@136 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-03-12 11:36:28 +00:00
parent 748316484e
commit cacb8c2be6
2 changed files with 1 additions and 3 deletions

View File

@ -39,5 +39,3 @@ $d2 = int($d2);
print "$up\n";
print "$server";

View File

@ -570,7 +570,7 @@ function createHost ($host, $community, $snmpver){
$nullhost = '0';
}
}
if($nullhost == '0') {
if($nullhost == '0' && $host_os) {
$sql = mysql_query("INSERT INTO `devices` (`hostname`, `community`, `os`, `status`) VALUES ('$host', '$community', '$host_os', '1')");
return("Created host : $host ($host_os)");
} else {