fix eventlogger again!

git-svn-id: http://www.observium.org/svn/observer/trunk@550 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-12-15 18:18:21 +00:00
parent 5a1183601f
commit 3bdb7c14a4
+1 -1
View File
@@ -149,7 +149,7 @@
$eventlog_oids = array('ifDescr', 'ifName', 'ifAlias', 'ifOperStatus', 'ifAdminStatus');
foreach ($data_oids as $oid) { // Loop the OIDs
if ( $port[$oid] != $this_port[oid]) {
mysql_query("INSERT INTO eventlog (`host`, `interface`, `datetime`, `message`) VALUES ('" . $interface['device_id'] . "', '" . $interface['interface_id'] . "', NOW(), '$oid -> ".$this_port[$oid]."')");
mysql_query("INSERT INTO eventlog (`host`, `interface`, `datetime`, `message`) VALUES ('" . $device['device_id'] . "', '" . $port['interface_id'] . "', NOW(), '$oid -> ".$this_port[$oid]."')");
}
}
// End Eventlogging