mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
db update
git-svn-id: http://www.observium.org/svn/observer/trunk@980 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -5,10 +5,10 @@ function discover_juniAtmVp(&$exists, $interface_id, $vp_id, $vp_descr) {
|
||||
global $config; global $debug;
|
||||
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `juniAtmVp` WHERE `interface_id` = '".$interface_id."' AND `vp_id` = '".$vp_id."'"),0) == "0")
|
||||
{
|
||||
echo(".");
|
||||
} else {
|
||||
$sql = "INSERT INTO `juniAtmVP` (`interface_id`,`vp_id`,`vp_descr`) VALUES ('".$interface_id."','".$vp_id."','".$vp_descr."')";
|
||||
$sql = "INSERT INTO `juniAtmVp` (`interface_id`,`vp_id`,`vp_descr`) VALUES ('".$interface_id."','".$vp_id."','".$vp_descr."')";
|
||||
mysql_query($sql); echo("+"); if($debug) { echo($sql . " - " . mysql_affected_rows() . "inserted "); }
|
||||
} else {
|
||||
echo(".");
|
||||
}
|
||||
|
||||
$exists[$interface_id][$vp_id] = 1;
|
||||
|
Reference in New Issue
Block a user