Commit Graph

190 Commits

Author SHA1 Message Date
Tony Murray
83d7bbdd1b fix: reduce mib graph queries (#4439)
Used have 1 query for every graph type known to LibreNMS.
Now it just gets a list of the graphs for the device and checks against that.
2016-09-15 08:45:45 +01:00
Tony Murray
0351b54fb8 webui: make d_echo work in webui (#4432)
* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
2016-09-14 10:05:49 +01:00
Neil Lathwood
4001f8c60a webui: Updated bootgrid + added syslog colouring based on priority (#4287)
* Updated bootgrid + added syslog colouring based on priority

* Updated functions and removed uneeded file
2016-09-06 07:39:53 -05:00
Neil Lathwood
f59cfa3b17 Add case insensitive string helper functions. (#4283)
refactor: Refactored new helper functions for case sensitivity #4283
2016-08-31 07:42:32 +01:00
Tony Murray
9b93fc5fd7 Combined case sensitive and insensitive functions
Added tests
2016-08-31 00:11:04 -05:00
Neil Lathwood
e29a4261ee bug: Added fallback icon for syslog table #4262
bug: Added fallback icon for syslog table #4262
2016-08-30 22:16:17 +01:00
Tony Murray
38901bfe83 Add case insensitive string helper functions. 2016-08-30 11:55:24 -05:00
Tony Murray
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
Tony Murray
fd34c24f5c String helper functions
Bring some sanity to the madness
2016-08-19 14:57:08 -05:00
Tony Murray
4f1a50a36e Make it easy to check for $debug condition for c_echo 2016-08-17 16:00:43 -05:00
Tony Murray
aa8294bfce c_echo
Console_color2 helper.
If $console_color isn't instantiated, remove the color directives and print.
2016-08-16 20:01:22 -05:00
Tony Murray
ead28f6acd Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-07 08:22:32 -05:00
Florian Beer
a7a8c55eb5 Add filter by priority to syslog 2016-08-05 13:34:23 +02:00
Tony Murray
66bed276c2 Reconstruct addHost() so it is easier to understand
Update addHost() to return either device_id or a string
modify print_error(), print_message() to allow for $quiet variable
Only call addHost() once in addhost.php, if the snmp version isn't set, addHost will cope
Fix up snmp-scan.php and discovery-protocols.inc.php to detect when a device already exists
change in ip_exists() to make it more readable
2016-08-02 00:31:27 -05:00
Tony Murray
97daf3dd54 Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-01 10:18:28 -05:00
laf
b35321cdad Updated version_info to output unix timestamp 2016-07-31 22:41:39 +01:00
Tony Murray
01cfb960d1 Fix sensors rrd name issue
Use last instead of first, as last won't flush rrdcached
Only stream_select if timeout > 0
Attempt to fix mysql
2016-07-08 22:58:36 -05:00
Tony Murray
a1ab19047e Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-07-07 21:28:47 -05:00
Tony Murray
57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
Neil Lathwood
0f5cfb5af1 Merge pull request #3782 from murrant/git-date
Add date to git version info
2016-07-07 19:09:15 +01:00
Tony Murray
8362039f67 Support older versions of git 2016-07-06 18:29:41 -05:00
Tony Murray
846c5ab0c9 Add date to git version info
valdiate: local tz, rfc2822
poller: iso 8601
about: iso 8601 -> browser local
Also, do not fetch github info on about page, it isn't used.
2016-07-06 13:17:13 -05:00
Brandon Boudrias
11f651fa39 prevent device_by_id_cache from adding unneeded array elements to $device 2016-07-06 10:08:19 -07:00
Neil Lathwood
6665fd8f95 Merge pull request #3700 from f0o/issue-3683
Fixed Device-Groups for multiple entries and glue-expansion
2016-07-05 09:09:09 +01:00
Tony Murray
2dbec67088 Run git as the configured user when ./validate.php is run as root
Move the modified files check out of the get_version function
2016-07-01 12:49:44 -05:00
f0o
21a0a18055
Fixed Device-Groups for multiple entries and glue-expansion 2016-06-22 08:42:48 +00:00
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