mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
some updates.
git-svn-id: http://www.observium.org/svn/observer/trunk@136 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -39,5 +39,3 @@ $d2 = int($d2);
|
||||
|
||||
print "$up\n";
|
||||
print "$server";
|
||||
|
||||
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user