mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
more eventlog fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@552 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
if (preg_match('/ng[0-9]+$/', $if)) { $nullintf = 1; }
|
||||
}
|
||||
if ($nullintf == 0) {
|
||||
echo("$if\n");
|
||||
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `interfaces` WHERE `device_id` = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'"), 0) == '0') {
|
||||
mysql_query("INSERT INTO `interfaces` (`device_id`,`ifIndex`,`ifDescr`) VALUES ('".$device['device_id']."','$ifIndex','$ifDescr')");
|
||||
# Add Interface
|
||||
@@ -60,6 +61,7 @@
|
||||
# Delete Interface
|
||||
echo("-"); ## Deleted Interface
|
||||
} else {
|
||||
echo("$if\n");
|
||||
echo("X"); ## Ignored Interface
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user