Commit Graph

311 Commits

Author SHA1 Message Date
HenocKA
b9f9189b05 Adding sql-schema 2016-01-26 15:26:44 +01:00
HenocKA
386ed4bd8d Adding sql-schema 2016-01-26 15:25:17 +01:00
HenocKA
24231cd699 Adding sql-schema 2016-01-26 15:22:38 +01: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
root
81ffa805c3 Merge remote-tracking branch 'librenms/master' into dup-alerts 2016-01-26 09:18:43 +01:00
root
a396608fae rename 2016-01-26 09:18:00 +01:00
laf
f10c42678d Added bgpPeers_cbgp delta and prev 2016-01-26 01:06:21 +00:00
HenocKA
63fa63559b Adding sql-schema 2016-01-25 11:43:03 +01:00
HenocKA
b50ca4b640 Adding sql-schema 2016-01-25 11:40:24 +01:00
HenocKA
6a03b7dd04 Adding sql-schema 2016-01-25 11:37:36 +01:00
HenocKA
c801e4baf5 Adding sql-schema 2016-01-25 11:30:55 +01:00
laf
ceec16e0ed Updated to check table exists 2016-01-24 23:38:30 +00:00
laf
2a2c32787a Fixed silly sql build for vminfo table 2016-01-24 23:36:38 +00:00
root
7c1dd867f5 cleanup 2016-01-24 18:57:52 +01:00
vitalisator
1de495ac0f rebase 2016-01-24 18:50:10 +01:00
root
686bffd39f Removes duplicate alerts from table alerts
then adds uniqueness in alerts table for (device_id+rule_id)
2016-01-24 18:42:27 +01:00
Paul Gear
302a7d5c73 Tidy mess left by CISCO-AAA-SESSION-MIB bug 2016-01-21 08:54:00 +10:00
laf
2dec9c3996 Rebased (sql schema conflict) 2016-01-19 14:33:15 +00:00
laf
49adff3895 Added the lookup of IP if device hostname is a hostname 2016-01-17 23:59:51 +00:00
Rosiak
4581366bf4 Add WebUI settings 2016-01-17 19:19:56 +01:00
laf
b757f4023b Added missing column to perf_times table 2016-01-17 15:46:33 +00:00
Aaron Daniels
ad751983dc Merge branch 'master' into issue-1650 2016-01-15 17:52:40 +10:00
Aaron Daniels
f61838a617 - Moved sql beacuse of upstream changes 2016-01-15 17:52:12 +10:00
Aaron Daniels
6492b887e9 Merge branch 'master' of https://github.com/adaniels21487/librenms into issue-1650 2016-01-14 06:10:31 +10:00
Aaron Daniels
29ae6aaaae - Move 085.sql to 089.sql 2016-01-14 06:10:00 +10:00
Mike Rostermund
44ef2c999e Merge pull request #2745 from laf/issue-2464
Added group support for Oxidized
2016-01-11 20:14:24 +01:00
Paul Gear
2469621a58 Merge pull request #2746 from laf/issue-2562
Added datetime to notifications + Fixed sticky/unsticky notifications disappearing
2016-01-11 09:01:56 +10:00
laf
7cb54a635b Renamed file to stop conflict 2016-01-10 22:47:40 +00:00
Neil Lathwood
d3132a190b Merge pull request #2690 from vitalisator/stp
add basic STP/RSTP support
2016-01-10 22:45:24 +00:00
laf
93b0886567 Added datetime to notifications + Fixed sticky/unsticky notifications disappearing 2016-01-10 22:22:13 +00:00
laf
a35f6d8c7a Added group support for Oxidized 2016-01-10 19:45:54 +00:00
Vitali Kari
4223a15fe8 Update 086.sql 2016-01-07 21:48:16 +01:00
Vitali Kari
64e462ca64 reformat an rename from 085.sql to 086.sql 2016-01-07 18:27:09 +01:00
vitalisator
d12c7803e0 add basic STP/RSTP support 2016-01-03 21:10:35 +01:00
Paul Gear
d862b9c100 Add SQL schema 2016-01-02 07:10:43 +10:00
Aaron Daniels
6286d7cb6a Merge branch 'master' of https://github.com/adaniels21487/librenms into issue-1650
Conflicts:
	html/api_v0.php
	html/includes/api_functions.inc.php
2015-12-22 11:16:54 +10:00
Aaron Daniels
0453c23544 - Moved SQL to reflect upstream changes. 2015-12-22 11:06:30 +10:00
Aaron Daniels
c6be2a8ad7 - Removed default alerting rules, user can create their own.
- Updated documentation
2015-12-22 11:05:42 +10:00
Neil Lathwood
dfb61fa422 Merge pull request #2620 from QuxLabs/issue-1916
First Draft in Per-User default dashboards
2015-12-18 16:22:25 +00:00
Aaron Daniels
c63b7119cb Device Components.
The purpose of this feature is to provide a framework for discovery modules to store
information in the database, without needing to add new tables for each feature.

This Feature provides:
- A database structure to store data.
- An API to store and retrieve data from the database.
- Integration to the LibreNMS APIv0.
- Ability to disable/ignore components.
- Default alerting rules.

- The API returns $COMPONENT[$device_id][$component_id] to allow pulling of data for multiple devices.
  The intent is to be able to create 'Applications' the consolidate data from applications covering multiple devices.
- Added some developer documentation
2015-12-14 07:52:03 +10:00
Daniel Preussker
a63ea78441 First Draft in Per-User default dashboards 2015-12-13 19:39:12 +00:00
Daniel Preussker
4da410b5f9 Added generic image widget 2015-12-13 18:24:26 +00:00
Neil Lathwood
73f09f129a Merge pull request #2542 from ekoyle/add_stats_to_db
Add stats to db
2015-12-10 21:15:20 +00:00
Eldon Koyle
bf501c6667 Bump schema to 082 as 081 has been used 2015-12-09 15:33:15 -07:00
laf
c141efcd5e Added lastupdate column which will always use NOW() when doing a dbUpdate 2015-12-09 19:31:28 +00:00
laf
bf5a6d2092 Added Notes widet 2015-12-08 20:34:32 +00:00
Eldon Koyle
cdc6bb3bb8 Update schema change to a single line 2015-12-03 09:38:16 -07:00
Eldon Koyle
612a4b3cad Bump schema version
Use version 081 due to other pending PR's with schema updates
2015-12-03 09:38:16 -07:00
Eldon Koyle
26be6c6d74 Add schema 2015-12-03 09:38:16 -07:00
Eldon Koyle
55c05c7866 Allow users to keep more statistics in the db
* Add $config['enable_extended_port_metrics'] to enable feature
* Add a new table to store stuff in
* Update data from the poller
2015-12-03 09:38:16 -07:00