355 Commits

Author SHA1 Message Date
591c40a6f4 Update defaults.inc.php 2016-02-17 13:10:07 -08:00
0161260b17 merging 2016-02-13 21:48:26 +01:00
fa783dc07e Merge pull request #2841 from adaniels21487/issue-2665
Cisco OTV
2016-02-10 19:49:59 +00:00
24df0a059c merging 2016-02-08 20:12:05 +01:00
79eab54fd9 Allow ignoring unmapable interfaces in poller.
When using the ifName or ifDescr as means to map discovered ports to
  known ports in the DB (think of port association mode) it's possible
  that we're facing the problem that the ifName or ifDescr polled from
  the device is unset or an empty string (like when querying some ubnt
  devices...). If this happends we have no way to map this port to any
  port found in the database. As reported this situation may occur for
  the time of one poll and might resolve automagically before the next
  poller run happens. Without this special case this would lead to new
  ports added to the database each time this situation occurs. To give
  the user the choice between »a lot of new ports« and »some poll runs
  are missed but ports stay stable« the 'ignore_unmapable_port' option
  has been added to configure this behaviour. To skip the port in this
  loop is sufficient as the next loop is looping only over ports found
  in the database and "maps back". As we did not add a new port to the
  DB here, there's no port to be mapped to.

  I'm using the in_array() check here, as I'm not sure if an "ifIndex"
  can be legally set to 0, which would yield True when checking if the
  value is empty().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-02-03 21:14:24 +01:00
6de58f55df merging 2016-02-02 12:58:05 +01:00
b72c1282d9 Merge pull request #2797 from BarbarossaTM/issue-386-v2
Ability to use ifIndex,ifName and ifDescr to create and update port rrd files
2016-01-29 13:05:03 +00:00
e755edfafc modify order of cisco-vrf-lite 2016-01-26 15:47:35 +01:00
08658e34ae Syntax update 2016-01-26 15:46:03 +01:00
724ad08d76 discoverying and polling VRF 2016-01-26 15:42:59 +01:00
21d2b45742 Syntax update 2016-01-26 15:27:50 +01:00
0ac8f584b2 discoverying and polling VRF 2016-01-26 15:22:49 +01:00
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
64ce4f335f Add HTTP Authentication / LDAP Authorization module.
This Authentitation / Authorization module provides the ability to let
  the webserver (e.g. Apache) do the user Authentication (using Kerberos
  f.e.) and let libreNMS do the Authorization of the already known user.
  Authorization and setting of libreNMS user level is done by LDAP group
  names specified in the configuration file. The group configuration is
  basicly copied from the existing ldap Authentication module.

  To save lots of redundant queries to the LDAP server and speed up the
  libreNMS WebUI, all information is cached within the PHP $_SESSION as
  long as specified in $config['auth_ldap_cache_ttl'] (Default: 300s).

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-01-21 21:49:08 +01:00
8f4dbb5338 Cisco OTV
Implements the CISCO-OTV-MIB to retrieve OTV counters from Cisco devices.
This collects information on the configured Overlays and Adjacencies

Statistics are collected for the amount of VLAN's on each overlay and the amount of MAC addresses available over each OTV endpoint.
OTV alerts are collected and generated if the appropriate alerting rules exist.

Data is displayed under routing at both the global and device level.

Includes function snmpwalk_array_num, which performs a numeric SNMPWalk and returns an array containing $count indexes
One Index:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27.18']['655360'] = 0
Two Indexes:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27']['18']['655360'] = 0
And so on...
2016-01-21 22:04:20 +10:00
bf37312bdc Cisco CBQOS
Implements the CISCO-CLASS-BASED-QOS-MIB to retrieve QOS counters from Cisco devices.
Policy and Class-map details are collected and stored in the database.
Details are presented on a new "CBQoS" tab of the interface that the policy is applied to.
Includes a policy selector that allows you to select which policy-map to show graphs for.

Each class-map has its own rrd file, in which 3 metrics are stored: Bytes, QoS Drops, Buffer Drops.
This can produce a LOT of rrd files.

As an example:
A Cisco 4500 series switch, running MQC on 200 ports. Each port has a common 5 class queueing policy applied, this creates 1000 (5 x 200) RRD's.

Because of this I have currently set:
```
$config['discovery_modules']['cisco-cbqos']    = 0;
```

Includes function snmpwalk_array_num, which performs a numeric SNMPWalk and returns an array containing $count indexes
One Index:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27.18']['655360'] = 0
Two Indexes:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27']['18']['655360'] = 0
And so on...
2016-01-21 21:18:14 +10:00
laf
a45259377b Added local rss file + tidied up locations of notifications and callback 2016-01-19 21:50:00 +00:00
laf
5e37de8b65 Added config option to force showing sysName instead of IP 2016-01-17 22:01:09 +00:00
4581366bf4 Add WebUI settings 2016-01-17 19:19:56 +01:00
c91a7081cc Basic commit 2016-01-17 17:48:44 +01:00
d1d3dba97d Merge pull request #2637 from laf/snmp-perf
Moved system polling module to core to centralise some snmpget calls
2016-01-15 20:10:09 +10:00
d3132a190b Merge pull request #2690 from vitalisator/stp
add basic STP/RSTP support
2016-01-10 22:45:24 +00:00
laf
c1da4d8a6f rebased 2016-01-10 00:46:04 +00:00
laf
63444e2f39 Rebased 2016-01-10 00:41:20 +00:00
564752210d Merge pull request #2536 from paulgear/mib-poller-alpha2
MIB-based poller alpha2
2016-01-06 09:08:56 +00:00
laf
fdc0eca44d Centralised version info + used in output 2016-01-06 00:14:35 +00:00
184e20e941 Use old value for smokeping pings 2016-01-05 08:26:29 +10:00
d12c7803e0 add basic STP/RSTP support 2016-01-03 21:10:35 +01:00
cb7c87d76f Use stacked graphs for multi-instance MIBs; add larger colour palette 2016-01-02 07:10:41 +10:00
66468d802c Add pings option 2015-12-29 07:10:15 +10:00
laf
821a797ac9 Moved system polling module to core to centralise some snmpget calls 2015-12-16 20:56:58 +00:00
laf
a56ccd7a74 Added option to disable lazy loading of images 2015-12-09 15:50:10 +00:00
2728bca07c Merge pull request #2487 from f0o/issue-2485 2015-12-05 15:58:27 +00:00
d3f3b1d423 Merge pull request #2470 from Alucardfh/mergeCpu
Merge all cpu in one graph in device overview
2015-11-24 20:25:41 +00:00
a56344246a Cleanup and reorganize code
Make the average cpu the default
2015-11-23 09:37:58 +00:00
b2034cb329 Added master and release update-channels 2015-11-22 17:06:21 +00:00
9c96f5f455 Added default notification RSS http://www.librenms.org/notifications.rss 2015-11-21 11:23:00 +00:00
a2bc1a4513 Add possibility to merge all cpu in one graph in the device overview 2015-11-20 15:33:56 +00:00
laf
cd1640fe9a Removed device_traffic_descr entry to resolv graphs 2015-11-04 20:54:54 +00:00
a929cb9fd1 Merge pull request #2182 from laf/issue-2105
Updated to disable auto-discovery by ip
2015-10-26 21:59:06 +01:00
96e9aeff70 reduce jittering on big networks 2015-10-25 19:35:08 +01:00
311666d97d change default solver to hierarchicalRepulsion, some default presets in visjs 2015-10-25 19:21:30 +01:00
laf
76f862fddd Updated to disable auto-discovery by ip 2015-10-20 16:12:03 +00:00
laf
a1257e2ffe Merge branch 'master' of https://github.com/librenms/librenms into issue-1936 2015-10-13 18:59:37 +00:00
0d645d0349 Removed old unused version checking 2015-10-09 15:16:29 +02:00
laf
e21ee0d8d8 Added ability to disable icmp check on devices 2015-10-07 21:19:27 +00:00
0901c795f3 Added colors to alerts sent to IRC 2015-10-05 16:26:27 +03:00
7832868dd6 Added generic memcached support to dbFacile.*
Remove now obsolete memcached code in:
  html/ajax_rulesuggest.php

Remove all the broken memcached code in:
  html/pages/device/health/mempool.inc.php
  html/pages/device/overview/generic/sensor.inc.php
  html/pages/device/overview/mempools.inc.php
  html/pages/device/port.inc.php
  html/pages/device/ports.inc.php
  html/pages/health/sensors.inc.php
  includes/polling/functions.inc.php
  includes/polling/mempools.inc.php
  includes/polling/ports.inc.php
  includes/polling/storage.inc.php
2015-09-27 19:33:17 +00:00
fc25b0d063 Merge pull request #1748 from laf/rrdtool-1.5
Added support for rrdtool 1.5
2015-09-27 08:59:52 +00:00
d06ab94998 Merge pull request #1959 from n-st/ipv6-ping
Use fping6 instead of fping for hosts with udp6/tcp6 SNMP transports
2015-09-27 08:14:50 +00:00