mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
fix eventlogger again!
git-svn-id: http://www.observium.org/svn/observer/trunk@550 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user