Commit Graph

31 Commits

Author SHA1 Message Date
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
Mark Schouten
677a4f3f5f Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir.. 2015-08-21 16:10:01 +02:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Alexander Sosna
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
Adam Amstrong
b273e04241 /// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
Adam Amstrong
cacf913a55 # -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +00:00
Adam Amstrong
4db1454e92 move from port_id to interface_id. make ports discovery only discover. add some cleaner functions. add a tiny bit of alerting infrastructure.
git-svn-id: http://www.observium.org/svn/observer/trunk@3195 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-16 13:25:50 +00:00
Tom Laermans
4985943822 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3185 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-15 15:18:57 +00:00
Adam Amstrong
b891b6f4f2 ports poller update (fix not adding filtered interfaces)
git-svn-id: http://www.observium.org/svn/observer/trunk@3173 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 18:08:48 +00:00
Adam Amstrong
606751f6fd port poller
git-svn-id: http://www.observium.org/svn/observer/trunk@3172 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 18:01:28 +00:00
Adam Amstrong
9af156eb95 ports discovery updates
git-svn-id: http://www.observium.org/svn/observer/trunk@3171 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 17:43:30 +00:00
Adam Amstrong
f768558e7e fix auth for graphs to allow cidr filter. fix schema 006
git-svn-id: http://www.observium.org/svn/observer/trunk@3169 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 15:21:42 +00:00
Adam Amstrong
a433ecf05a kankerhoer
git-svn-id: http://www.observium.org/svn/observer/trunk@2948 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-03 10:36:26 +00:00
Tom Laermans
a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Adam Amstrong
5033e81e87 don't discover ports that shouldn't be discovered!
git-svn-id: http://www.observium.org/svn/observer/trunk@2347 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-18 23:08:45 +00:00
Tom Laermans
f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans
bb4746d4d0 cleanups, small fixes and remove test-*php from the root
git-svn-id: http://www.observium.org/svn/observer/trunk@1998 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-31 10:51:02 +00:00
Tom Laermans
9fd77cd884 allow disabling of alerting per device, allow override of syscontact, minor cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1995 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 16:28:24 +00:00
Adam Amstrong
463b0753a6 fix blocking dsl0 ports (sl0!) and tidied some other stuff up
git-svn-id: http://www.observium.org/svn/observer/trunk@1993 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 11:25:39 +00:00
Tom Laermans
340c71b2e7 more code cleanups, modify renamehost to also take a source parameter so we can build a renamehost function into the web gui some day
git-svn-id: http://www.observium.org/svn/observer/trunk@1980 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-27 10:21:19 +00:00
Tom Laermans
7454791074 code standard/cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1978 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-26 19:12:24 +00:00
Geert Hauwaerts
80f6b2dcc2 VMWARE SUPPORT!! :)
- Support for VMware hosts AND Virtual Machines.
- VMware MIB files added.
- SVN property ignore on MIB .index files.


git-svn-id: http://www.observium.org/svn/observer/trunk@1976 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-26 17:16:09 +00:00
Tom Laermans
31b2092041 more trailing spaces hunted down and shot, then shot again
git-svn-id: http://www.observium.org/svn/observer/trunk@1880 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-16 17:53:20 +00:00
Adam Amstrong
96cedc5ed9 fix ASA port discovery (fuck you, cisco, just fuck you)
git-svn-id: http://www.observium.org/svn/observer/trunk@1844 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 13:49:11 +00:00
Tom Laermans
3a4e92e246 more cleanups and reindents, still a lot to come
git-svn-id: http://www.observium.org/svn/observer/trunk@1836 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 09:45:00 +00:00
Geert Hauwaerts
67124e84fb Ignore empty interfaces (for some reason every Active Directory entry gets reports as an interface)
git-svn-id: http://www.observium.org/svn/observer/trunk@1773 61d68cd4-352d-0410-923a-c4978735b2b8
2011-01-26 10:30:04 +00:00
Tom Laermans
69a4a0f63c fix interface descriptions, at least on windows - patch by Geert
git-svn-id: http://www.observium.org/svn/observer/trunk@1772 61d68cd4-352d-0410-923a-c4978735b2b8
2011-01-25 11:42:47 +00:00
Adam Amstrong
588491a1f1 fix bits_trio (this should be a specific type for its purpose, i think)
git-svn-id: http://www.observium.org/svn/observer/trunk@1680 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-13 14:23:05 +00:00
Adam Amstrong
c5f851a00f some code formatting improvements from sovern
git-svn-id: http://www.observium.org/svn/observer/trunk@1300 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-05 19:21:36 +00:00
Adam Amstrong
34a17ee537 implement bad_if_regexp regular expression filter for port ifDescr (clean and allow for portName and ifName too?) (thanks thevoke!)
git-svn-id: http://www.observium.org/svn/observer/trunk@1069 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-22 23:22:11 +00:00
Adam Amstrong
caab3ee1c4 rename discovery include scripts and update discovery.php
git-svn-id: http://www.observium.org/svn/observer/trunk@890 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-20 17:29:47 +00:00