16709 Commits

Author SHA1 Message Date
6c88436dce Fix mini graph order (#10708)
* Fix mini graph order

* oops, added twoday
2019-10-17 14:35:09 +00:00
bc6dda75b7 Fix oxidized (#10706) 2019-10-17 12:05:39 +00:00
01e07e24b6 Restore base_url base tag (#10705) 2019-10-17 11:38:53 +00:00
25e8de30c1 Implement Oxidized "config search" as an API (#10648)
* Implement Oxidized config search as API

* Add Oxidized config search DOC.

* Update Devices.md

* change /configsearch/{searchstring} to /config/search/{searchstring}

* Update Devices.md
2019-10-17 02:46:44 +00:00
439a737de8 Fix ldap groups not being overridden (#10700) 2019-10-17 01:11:05 +00:00
d3d34a7f4d https://github.com/librenms/librenms/issues/10686 (#10687) 2019-10-17 00:33:53 +00:00
10870bd1c8 Corrected Os detection of Nortel Baystack 3510 (#10689) 2019-10-17 00:24:49 +00:00
2a8f9ca160 Update unix.inc.php (#10698) 2019-10-17 00:11:04 +00:00
3c25551a93 Update Slack.php add emoji and username support (#10695)
* Update Slack.php add emoji and username support

* Update

* Update
2019-10-16 23:52:36 +02:00
699aa8a042 Consolidate configuration settings and implement dynamic webui settings (#9809)
* initial db/defaults dump

* numeric values

* Remove $config['time']

* Use config_definitions.json

* try setting definition as a complete array

* a little more

* fix format

* WIP converting dynamic setting pages

* rewriting the webui

* remove legacy and add translations

* finish email section

* improve navigation
update js a bit

* Import the remaining existing settings

* Update backend still some wip
migration

* fix config loading (db not overriding defaults)

* some cleanup

* more array collapsing

* update settings

* Settings search

* add purge settings to ui, order groups and sections

* collapse more arrays

* Auth definitions WIP

* remove needless slash escapes

* add warning to json

* moving settings from defaults.inc

* remove slow_statistics

* Move rrdtool settings to the poller section

* Use translations more consistently

* removing more settings from defaults.inc.php

* show setting name in tooltip

* allow help text to be shown on mobile

* disable settings that are set in config.php

* Implement undo and reset to default.

* Vue.js functional

* Vue.js WIP

* Implement tabs component

* accordion WIP

* lodash ver update

* two items

* Accordion somewhat working

* hash navigation

* Refine Accordion

* Fix up tab styling a bit

* Cleaner tab selected property
Hide html while loading

* spinner?

* Icon support
property for accordion to active

* WIP

* Tabs/Sections from ajax

* Setting Component skeletons

* Dynamic Component resolution

* Basic functionality

* toggle class

* Refactor components

* translate tabs and accordions

* simple array attempt

* improve readonly tooltip

* array styling

* array value editing

* organize snmp info

* Handle initial tab/section in url

* Use Laravel to parse tab/section, dump old

* Draggable array entries

* v-tooltip, for clickable (and touch) help tooltips
disable draggable

* Navigation WIP

* Navigation WIP

* groups computed

* filter settings

* fix event reference

* vue.js i18n initial

* missing description = just setting name

* en fallback

* tidy up the language support and js generation

* persist value to db

* fix issue with 0

* Delete settings from DB instead of setting them to default

* ldap-groups
fixup style

* Default dashboard selection

* fix array of options instead of object

* allow custom validation for settings

* translate options in SettingSelect

* SNMP v3 WIP

* fix setting arrays

* Split persist out of set

* Hook up events for SNMP v3 Auth
correct Config::persist behaviour with arrays

* dependent settings (primitive for now)
actually update the settings values in the LibrenmsSettings component

* more complex "when" behaviour

* remove un-needed seeder

* add poller_modules.cisco-qfp

* remove en.json (disable warning)

* don't set default for log_dir or log_file, otherwise it won't be processed correctly

* Fix module order
add some missing settings

* more config corrections

* correct graphs
correct loading values set to null (although it should have no difference)
remove project_name_version

* Add nfsen settings.  Docs are very confusing, so might have flubbed something
remove option for array definition of select option as numeric indexes messes it up

* Correct more upstream config differences

* Config cleanup after a bunch of merges.

* Fixes

* add version tags to js/css files
remove old js

* Print out full settings list read-only

* Add http_proxy setting
fix indents in config_definitions.json

* repeaters default is 0 (aka 20)

* cleanups

* rewrite the dynamic config docs

* add language docs

* Don't show snmp v3 auth add/remove if disabled by config.php
2019-10-16 21:22:05 +00:00
750b19f3e8 Fix issue when non-existent plugin is enabled (#10699) 2019-10-16 21:18:17 +00:00
99b29ef20c Remove update=0 in distributed poller docs (#10681)
That is separate from distributed poller and should be set based on user preference.
2019-10-16 16:08:17 +00:00
1f483c5318 Fixed duplicate ping response causing false down (#10692)
* Fix duplicate ping response showing false down
Log event that duplicate was detected
Escape fping cli parameters
add unit test

* Update FpingTest.php
2019-10-16 09:36:54 +01:00
2fe392f330 alphabetic sorting of global settings view (#10678) 2019-10-14 02:22:16 +00:00
447277fd10 Fix junose test data non-incrementing (#10679) 2019-10-14 01:58:35 +00:00
63442e8b4a Refactor tests (#10625)
* Refactor tests
Boot Laravel for all tests.
Config use private static property for storage instead of global

* Backup/restore modules

* disable snmpsim log

* Fixing DBTestCase

* Fix macros loading to the wrong place

* trap and other tests should check if db is available

* don't include snmp.inc.php if mock.snmp.inc.php is already included...

* fix migration

* if we don't reset the db, run migrations at least.

* set vars for migrate too

* Fix style

* ignore issues with undefined indexes in legacy code
2019-10-13 13:40:38 +00:00
4cf584b425 Improve migration informations (#10673)
* Improve migration informations

* Generalization for modified files
2019-10-11 05:56:43 -05:00
e046ccde2d Rename RutOS 2xx pinState state sensor to avoid conflict (#10675)
with rutos PinState state sensor
2019-10-11 04:10:50 +00:00
80e138fa40 removed the ksort block as it was not working (#10674) 2019-10-11 01:32:25 +00:00
a19a18492e Added support for RedLion N-Tron 714FX6 industrial switch (#10617)
* Add files via upload

add icon for REDLION

* Add files via upload

Add Device REDLION ntron 716FX6

* Add files via upload

* add device redlion ntron 714FX6

* Delete ntron.yaml

* Add nev device RedLion N-Tron 714FX6

* Update ntron.yaml

* additional snmp data redlion ntron714fx6

* Rename ntron714fx6.mib to NTRON714FX6-MIB

* Create ntron.json

* Update os_schema.json
2019-10-10 14:09:45 +02:00
ef38f099c6 Fix DSM DS916 test snmp data (#10667) 2019-10-10 04:35:39 +00:00
ae84049108 Update SNMP-Configuration-Examples.md (#10662)
Minor notes.
Firewalld settings for RHEL 7
2019-10-09 00:32:02 +00:00
d779d970ed sort app overview RRDs by hostname (#10663) 2019-10-09 00:25:22 +00:00
ca281ec12a Better Model detection of Old 3Com devices (#10660) 2019-10-09 00:11:12 +00:00
6cca8c6e6f Remove default temp dir already set in LibreNMS/Config.php (#10654) 2019-10-07 21:29:51 +00:00
00d05ff078 Optimize docs picture size (#10657) 2019-10-07 21:28:06 +00:00
8b329a18a1 Optimize logo sizes (#10656)
by reducing colors
2019-10-07 21:27:23 +00:00
f07651a2eb Added Teltonika Rutos-2xx wireless sensors (#10646)
* CodeClimate Fix

* Added Teltonika Wireless Sensors

* Removed HiveOS local changes

* cleanup

* Update Rutos2xx.php

* typo fix

* Blank Line Fix

* Travis FIX

* White Space Fix
2019-10-07 13:16:51 +00:00
be04388137 Store config data serialized (#10651)
* Store config data serialized
This way we can store null, booleans, and more reliably.

* Use model to get the mutated output.

* fix whitespace and unused function

* use json_encode/decode and casts
migration to transfer

* json_encode JSON_UNESCAPED_SLASHES

* Use JSON_UNESCAPED_SLASHES.  That is only relevant if you are printing into an HTML page.

* pre-encode the seed...

* filter other fields besides config_value
2019-10-06 21:51:22 +00:00
a2c69cd62f Added Cisco QFP module (#10637)
* QFP Discovery module
* QFP Polling module - Utilization
* Add Cisco QFP module in module list
* Web UI QFP discovery module
* Add average packet size graph
* Health overview QFP graph
* Polling and UI improvements, test data
* Reformatting and style checks
* Readd snmprec data
* Fix module performance stats collecting
2019-10-05 11:10:34 +02:00
51e5521d9f Do not update mempool warning % every discovery (#10647) 2019-10-03 00:35:44 +02:00
7482422614 When sending email alerts use CRLF for windows clients (#10563)
* When sending email alerts use CRLF for windows clients

* Convert hard \r\n into line return in templates

* there is no down really
2019-10-02 14:08:10 +00:00
c8bcdbb916 Fix CentOS PHP install docs (#10645)
* Fix CentOS PHP install docs

* Update Installation-CentOS-7-Apache.md

* Update Installation-CentOS-7-Apache.md

* Update Installation-CentOS-7-Nginx.md
2019-10-02 13:57:01 +00:00
ef4e6de867 Fix device_groups in alert/group builder (#10643) 2019-10-02 13:54:54 +00:00
74724a4618 Add redis sentinel support to dispatcher service (#10598)
* Add redis sentinel support to dispatcher service

* Update docs for redis sentinel support

* Don't re-raise python exception in service
2019-10-01 06:51:07 +00:00
2825a7f7ec add discovery of mempool percent warning limit (#10618)
* add ability to discover percent warning on mempools discovery

* remove wierd charachters from json

* remove database defaults, add defaults for Linux and Vmware

* update db schema

* update test data

* adapt hrstorage mempools

* rebase
2019-09-30 13:22:55 +00:00
4a36c18e69 use testing database for capturing test data (#10635)
if available
2019-09-30 13:21:37 +00:00
4c075a3484 Bump version to 1.56 1.56 2019-09-30 11:07:05 +00:00
121c5bc030 Changelog for 1.56 2019-09-30 11:07:03 +00:00
f715c2ea94 add support for per-OS SNMP max repeaters configuration file setting. (#10628)
* add support for per-OS SNMP max repeaters configuration file setting.

* Simplify function

I think it should be equivalent

* whitespace...
2019-09-30 10:45:09 +00:00
3c9a0f9c6b French translation update (#10640) 2019-09-30 10:44:22 +00:00
d0f8491a00 Added SNMP example for EdgeOs Ubiquiti (#10639)
* Add example for EdgeOs Ubiquiti
* typo
2019-09-30 08:03:44 +02:00
91ac7aff7f Removed ambiguity in Component filter query (#10638)
In case we try to filter the component by it's `id`, we ran into ambiguity issue because both `component` and `component_prefs` tables have column `id`. Fixed by filtering explicitly on `component` table.
2019-09-29 19:23:53 +02:00
43729d7b6f Group total processor utilization per processor type (#10626) 2019-09-28 04:16:18 +00:00
2139eed306 Add EdgeCore ECS4110-28T Support (#10525)
* Add ECS4110 cpu usage

* Add cpu usage oid for ECS4110
* TESTED

* Fix EdgeCore ifOperStatus does not follow the Cisco convention
* Since EdgeCore use "lowerLayerDown" in ifOperStatus when port is unplugged
* On the other way, Cisco use briefly "down".
* So change "lowerLayerDown" to "down" to workaround the bug that will make port always show as up/up

* Refactor Edgecos cpu usage oid
* Codeclimate is unhappy about it maybe the refactor will make it happy.

* Add EgdeCore ECS4110 MIB

Just got MIB from EdgeCore

* Refactor Egdecos Mempool

* a bit refactor of Mempool discover and polling
* add support for ECS4110 via MIB

* Modify ECS-4110 MIB

* MODULE-IDENTITY change from ECS4110-52P-MIB to ECS4110-MIB
* strip off syntax error part(time range)

* Add EdgeCore ECS-4110 OS polling

* polling OS and Hardware via MIBs

* Fix typo

* Sorry that I am dazzled

* Fix Syntax Check

* Codeclimate is a bit aggressive

* Update edgecos.inc.php

* Update edgecos.inc.php

* Revert "Fix EdgeCore ifOperStatus does not follow the Cisco convention"

This reverts commit 27971b34a86c4a347d576a6add0583a60aeed912.

* Add snmprec file for unit testing.

* Create edgecos_ecs4110-28t.json
2019-09-28 03:18:24 +00:00
c69643056f Asterisk Doc Improvements (#10631)
Made the asterisk documentation more like the rest of the documents using a wget command.
2019-09-28 01:53:37 +00:00
f672c12bcc discovery: Added Cisco QFP processor (#10622)
* Added Cisco QFP processor discovery

* Fix QFP index loop variable name

* Add test data for IOS-XE processors (from ASR1001-HX)

* set the right variable
2019-09-28 01:22:06 +00:00
a1ed45eb46 Fix LibreNMS Logo SVG missing i sometimes (#10632)
* Update librenms_logo_light.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".

* Update librenms_logo_blue.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".

* Update librenms_logo_mono.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".

* Update librenms_logo_dark.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".
2019-09-27 16:56:03 +00:00
dada33ae5e replaced description by ifAlias to fix the sort on Description 2019-09-27 14:26:18 +02:00
ee2a847c0b Storage RRD - descriptionlength fix - percent column fix (#10607)
* Storage RRD - descriptionlength fix - percent column fix

* changed percentage column description

* increase also column length on furhter graphs

* fix column title length
2019-09-26 02:51:07 +00:00