mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
reactivate interface eventlogging
git-svn-id: http://www.observium.org/svn/observer/trunk@549 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -38,6 +38,7 @@ if(!$where) {
|
||||
exit;
|
||||
}
|
||||
|
||||
echo("Applying database updates...\n");
|
||||
shell_exec("scripts/update-sql.php database-update.sql");
|
||||
|
||||
if(isset($options['d'])) { echo("DEBUG!\n"); $debug = 1; }
|
||||
|
@ -145,6 +145,15 @@
|
||||
}
|
||||
// End Update PAgP
|
||||
|
||||
// Do Eventlogging
|
||||
$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]."')");
|
||||
}
|
||||
}
|
||||
// End Eventlogging
|
||||
|
||||
/// Do EtherLike-MIB
|
||||
if($config['enable_etherlike']) { include("port-etherlike.inc.php"); }
|
||||
|
||||
|
Reference in New Issue
Block a user