Commit Graph

8 Commits

Author SHA1 Message Date
Aaron Daniels
a27ecd1f0c fix: calling rrdtool_pipe_open() instead of rrdtool_initialize(); (#4343) 2016-09-04 16:26:38 -05:00
Tony Murray
abc6a5b799 PSR-2 Final cleanup (#4247)
refactor: Final PSR2 cleanup
2016-08-28 23:32:55 +01:00
pblasquez
48d8b3f09c add port_id to sql statement 2016-06-30 10:09:16 -07:00
Maximilian Wilhelm
2c9df26bbf Update discovery and poller to allow stable interface mapping by ifName/ifDescr based port mapping.
By default libreNMS used the ifIndex to associate ports just found via SNMP
  with ports discoverd/polled before and stored in the database. On Linux boxes
  this is a problem as ifIndexes are rather likely to be unstable between reboots
  or (re)configuration of tunnel interfaces (think: GRE/OpenVPN/Tinc/...), bridges,
  Vlan interfaces, Bonding interfaces, etc.

  This patch adds a »port association mode« configuration option per device which
  allows to map discovered and known ports by their ifIndex, ifName, ifDescr, or
  maybe other means in the future.
  The default port association mode still is ifIndex for compatibility reasons.

  As port RRD files were stored by their ifIndex before, they are now identified
  by their unique and stable port_id to ensure a stable and unique mapping and
  allow future port association modes to be added without requireing any further
  internal changes. Existing RRD files are renamend accordingly in discovery and
  poller tools to ensure stability of port associations in both modules as we
  don't know which might run first after an update.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-01-26 13:49:30 +01:00
laf
c000676a2a Some more updates for rrdtool tune 2015-11-18 21:52:32 +00:00
laf
1591f9ca6d Added rrdtool_pipe_open :( 2015-11-18 21:39:53 +00:00
laf
52e0be911b More updates 2015-11-17 05:38:45 -08:00
laf
253b27d403 More updates to tune rrdfiles 2015-11-17 05:14:41 -08:00