Commit Graph

164 Commits

Author SHA1 Message Date
Paul Gear
6d1dce8c58 Allow of MIB polling for individual devices 2016-05-03 02:14:35 +10:00
Paul Gear
3c75b8acf6 Allow individual devices to be enabled for MIB polling 2016-04-30 12:10:33 +10:00
Tony Murray
bf1e7c2822 Three new validate.php checks
* Check that $config['install_dir'] is set correctly by checking that config.php exists there.
* Check if the local branch is not master, warn that it will prevent updates
* Check for modified files and list them (this will not include staged files)
2016-04-29 12:53:02 -05:00
Tony Murray
b98ba8c1a4 Remove some deprecated functions 2016-04-24 01:05:14 -05:00
Aaron Daniels
0d6cfec589 Nagios Services
- Moved check-services.php to a poller module
    - Added performance data collection to the poller
    - Centralised DB functions to includes/services.inc.php
    - Created add/edit/delete functions off the device, services page
    - Removed legacy edit/delete interfaces.
    - Moved and modified check.inc scripts
    - Documentation Updates
    - Modified services table
2016-03-15 22:23:14 +10:00
Daniel Preussker
731e43bc66 Revert "[WIP] Sanity!" 2016-02-17 13:59:58 +00:00
Neil Lathwood
633ac101eb Merge pull request #2979 from f0o/sanity
[WIP] Sanity!
2016-02-16 21:44:10 +00:00
f0o
21e94b3e3a Sanity! 2016-02-10 15:21:31 +00:00
Daniel Preussker
2b55c06d9e Revert "Variable/Environment sanity" 2016-02-10 14:31:16 +00:00
f0o
a6bca987bf Enforce sanity before returning from database 2016-02-10 13:52:43 +00:00
HenocKA
24df0a059c merging 2016-02-08 20:12:05 +01:00
f0o
4d0d78c48c Merge branch 'issue-386-v3' of git://github.com/BarbarossaTM/librenms
Conflicts:
	sql-schema/099.sql
2016-02-07 15:23:52 +00:00
HenocKA
7a00d913a1 update branch 2016-02-06 06:52:21 +01:00
Maximilian Wilhelm
6ef1cf9e43 Add ability to map ports based on their ifAlias.
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-02-05 11:40:37 +01:00
HenocKA
6de58f55df merging 2016-02-02 12:58:05 +01:00
laf
725fbd2c08 Another fix 2016-01-30 10:10:16 +00:00
laf
f4820dad90 Fixed code to run with php 5.3 2016-01-30 10:05:46 +00:00
HenocKA
0ac8f584b2 discoverying and polling VRF 2016-01-26 15:22:49 +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
Daniel Preussker
3e97875d77 Merge pull request #2787 from laf/anonymous-data
Added verbose debugging, normal debugging will now try and mask certain information
2016-01-26 08:09:05 +00:00
Mike Rostermund
006056a754 Store performance data for each poller module 2016-01-24 15:35:31 +01:00
Neil Lathwood
b0f4c97d0b Merge pull request #2786 from paulgear/list-only-relevant-mib-graphs
Show only relevant MIB graphs
2016-01-21 23:31:50 +00:00
Neil Lathwood
eb34c1c84e Merge pull request #2814 from paulgear/disable-global-debug-message
Disable debug message about MIB poller
2016-01-19 21:52:06 +00:00
Paul Gear
8416f4af3e Disable debug message about MIB poller 2016-01-20 07:40:03 +10:00
laf
3a8b0b053d Rebased includes/common.php 2016-01-19 09:00:18 +00:00
laf
49adff3895 Added the lookup of IP if device hostname is a hostname 2016-01-17 23:59:51 +00:00
laf
5e37de8b65 Added config option to force showing sysName instead of IP 2016-01-17 22:01:09 +00:00
laf
0558275414 Added verbose debugging, normal debugging will now try and mask certain information 2016-01-17 14:39:17 +00:00
Paul Gear
e38c2f6885 Show only relevant MIB graphs
This reduces noise in the drop-down by only displaying MIB graphs defined for the device.
2016-01-17 15:00:15 +10:00
laf
63444e2f39 Rebased 2016-01-10 00:41:20 +00:00
Paul Gear
f672a8e12e is_mib_poller_enabled() needs to be in common.php for code paths that don't use includes/snmp.inc.php (e.g. graph.php) 2016-01-07 09:38:32 +10:00
Paul Gear
7170a240a8 Don't display MIB menu items if MIB-based polling is disabled 2016-01-07 09:26:48 +10:00
laf
fdc0eca44d Centralised version info + used in output 2016-01-06 00:14:35 +00:00
Paul Gear
eb1dbc74c7 Remove redundant function 2016-01-02 07:10:43 +10:00
Paul Gear
2244a5f31d Fix issues flagged by scrutinizer 2016-01-02 07:10:43 +10:00
Paul Gear
ea29977d29 Support MIB-based overrides in processor & memory pools 2016-01-02 07:10:43 +10:00
Paul Gear
2558aa9bda Fix up some funky formatting; add/tidy end-of-function markers to reduce diff churn 2016-01-02 07:10:43 +10:00
Paul Gear
8a20ad4896 Move rrd handling functions into includes/rrdtool.inc.php; add backwards compatibility with file naming in old version of MIB-based polling 2016-01-02 07:10:42 +10:00
Paul Gear
ed15e2a6cf Restore name_shorten so we can provide backwards compatibility 2016-01-02 07:10:42 +10:00
Paul Gear
b52f7f5e86 Fix rebase for can_ping_device 2016-01-02 07:10:42 +10:00
Paul Gear
5d53761727 Trivial cleanups 2016-01-02 07:10:42 +10:00
Paul Gear
7619a340d6 Split polling & discovery of MIB-based poller 2016-01-02 07:10:42 +10:00
Paul Gear
40a1cef050 Generalise arp discovery cache; move to common 2016-01-02 07:10:42 +10:00
Paul Gear
b8601b5896 Skeleton framework for allowing MIB values to feed CPU & memory health graphs 2016-01-02 07:10:41 +10:00
Paul Gear
7752bc0494 Move to fixed DS names in MIB-based polling; add script to convert RRDs 2016-01-02 07:10:40 +10:00
laf
6f44b19681 Updated device_by_id_cache() to convert IP column 2015-12-07 02:22:44 +00:00
Mike Rostermund
3467fc8a86 Fixed regex for negative lat+lng 2015-11-30 21:02:26 +01:00
laf
2b92bd5fb8 Updated parse_location function 2015-11-18 22:12:27 +00:00
laf
7d7479b977 Added parsing support for lat/lng coords from device location 2015-11-16 18:50:52 -08:00
Mark Schouten
930d9b022d Move the ceph_rrd function to includes/common.inc.php 2015-11-10 12:33:52 +01:00