Commit Graph
17185 Commits
Author SHA1 Message Date
Neil Lathwood cd058c26e9 Updated GitHub templates (#8711) 2018-05-14 21:20:06 +01:00
Neil Lathwood b6629aa974 Update issue templates 2018-05-14 20:55:21 +01:00
Neil Lathwood 475f60001c alerts: Updated parse_email() to use email_user config value (#8706) 2018-05-14 13:56:43 -05:00
Tony Murray ce52b55795 device: FDB fallback to q-bridge if os specific polling returns no data (#8710) 2018-05-14 19:43:54 +01:00
theherodied a2e68f41dc docs: Updated MySQL application entry for clarification. (#8708)
* Updated MySQL entry.

Cleaned up MySQL entry. Had somewhat duplicated Agent entries that might cause confusion. One was before the snmp extend entry, and the other after. This might cause people to believe both are needed. I cleaned it up and merged the agent entries.

Added comment at top to clarify that only one detection method is needed.

* Fixed highlighting
2018-05-14 18:33:29 +01:00
Tony Murray 9e30d3fd7b Fix some issues with globals (#8709)
Some variables aren't global anymore.
Make $vars global.
2018-05-14 18:31:46 +01:00
theherodied c664fbe1a6 device: Update Cumulus Support (#8626)
* Enhance Cumulus Support 001

* Enhance Cumulus Support 002

* Enhance Cumulus Support 003

* removed mibs

* Added test data

* Update cumulus.inc.php

* Update cumulus.inc.php
2018-05-13 22:09:09 +01:00
centralscrutiniser ba0ed73d5f device: Added and Updated Blue Coat device support (#8664)
* Blue Coat device updates

* Blue Coat device updates

* Updated PHP code per @laf comments

* YAML update for Packetshaper

* SSL Visibility YAML and snmprec file

* Cleanup problematic MIB files which should not have been there

* Reset Packetshaper YAML to original

* Added json test data
2018-05-13 21:54:10 +01:00
Tony Murray 411a5db269 fix: Fixed Poller taking too long -> device took too long alert rule (#8622)
* Fix poller taking too long rule

* Update alert_rules.json
2018-05-13 20:02:57 +01:00
centralscrutiniser 7cb930e318 Added AP/Client Count detection for FortiWLC (#8662)
* Added AP/Client Count detection for FortiWLC

* Corrected PHPCBF error on LibreNMS/OS/Fortiwlc.php

* Corrected PHPCBF error on includes/polling/os/fortiwlc.inc.php

* Removed IPV6-TC and re-added config.php.default per murrant comment

* Re-added config.php.default per murrant comment

* Added CPU% usage detection for FortiWLC

* Updated includes/polling/os/fortiwlc.inc.php with get_snmp_multi_oid

* Updated includes/polling/os/fortiwlc.inc.php with get_snmp_multi_oid

* Updated tests/snmpsim/fortiwlc.snmprec

* Create fortiwlc.json
2018-05-12 10:33:57 -05:00
Lucas Dousse 182185d433 Update to add acl on list of necessary package (#8639)
* Update to add acl on list of necessary package

Add acl package for the installation of Librenms

* Change sort

add acl to first

* Change file to add acl package
2018-05-11 22:42:04 -05:00
vivia11 0797d0892f Fix sensors for cimc os (#8591)
* fix OIDs for temperature sensor and add test data

* Add current values to discover sensor and test data

* Redo test data

* Split up power/current/voltage sensors to individual files and remove json data

* Whitespace fix

* Fix temperature sensors - spelling mistakes

* Code changes to voltage/power/current sensors

* Go to yaml, add mibs and json
2018-05-11 22:23:37 -05:00
Neil Lathwood 7f4566a854 fix: Fixed user permissions (#8700) 2018-05-11 15:50:47 -05:00
Tony Murray 4347f0a055 Fix permissions check (#8699)
Add new checks for Laravel
2018-05-11 20:25:29 +01:00
Tony Murray 3e9f4b396e Fix device inventory page (#8698)
$device isn't global it is in the local scope.
2018-05-11 12:06:03 -05:00
Tony Murray b3c3f0434f Fix two factor auth (#8697) 2018-05-11 11:29:10 -05:00
Tony Murray 66e4eccba7 Version librenms.js to break cache (#8696) 2018-05-11 11:14:35 -05:00
Tony Murray 824ce313fa Don't require mysql 5.5 or newer. (#8695)
Don't support emoji in strings :)
2018-05-11 10:33:36 -05:00
Tony Murray 54aa0a4df4 Ignore plugin hook calling errors (#8693)
Mostly this is because the plugin methods aren't static.
2018-05-11 15:40:45 +01:00
Neil Lathwood 2815979f5f Stop Laravel from loading another DB conn for poller/discovery (#8691) 2018-05-11 07:53:36 -05:00
Neil Lathwood 7b299983d5 fix: Fixed AD when no email address is returned (#8690) 2018-05-11 07:40:41 -05:00
vivia11 5fd81db819 device: Added Open Access Netspire OS support (#8674)
* Add netspire os support

* Update netspire.yaml

* Change from numerical oid to regular oid and readd poller/discovery modules

* Remove mib_dir and change os polling
2018-05-10 20:17:42 +01:00
Tony Murray 5236a24dd5 Fix missing vlan name on port vlan page (#8684) 2018-05-10 19:56:53 +01:00
Tony Murray e0f9572582 Fix .env migration unescaped $ in passwords (#8688)
* Fix .env migration unescaped $ in passwords
Better fix for timezone in Laravel

* Simpler change
2018-05-10 13:20:24 -05:00
Neil Lathwood 303336bce4 Merge pull request #8687 from laf/laravel-api-fix 2018-05-10 18:59:22 +01:00
laf 4267197430 Remove buffering for legacy api 2018-05-10 12:43:14 +01:00
Tony Murray e4bc556874 More pre-boot checks (#8685)
* More pre boot checks
Check php extensions
Laravel framework sub directories.
Check that web user belongs to the librenms group.
Make it clear that commands need to be run on the LibreNMS server.

* Handle spaces in .env
function was only public for testing
2018-05-10 08:18:57 +01:00
Tony Murray 0020479fc8 Test plugin menu method should be static. (#8681) 2018-05-09 08:39:21 -05:00
Tony Murray 1ad7f3138b Add Laravel to LibreNMS (#8318)
* Add Laravel to LibreNMS.

* Try to set permissions during initial install and first composer update to Laravel.

* Fix composer.lock
Fix missing db config keys

* Start building v1 layout
Port ajax_setresolution, inject csrf into jquery ajax calls
Layout works, building menu
Partially done.

* Fix device group list
remove stupid count relationships

* Print messages for common boot errors.
Don't log to laravel.log file.
Log to error_log until booted, then librenms.log

* Fix up some issues with Config loading
Start of custom directives

* Custom blade directives: config, notconfig, admin

* Preflight checks
Only load config files once.

* Update the composer.lock for php 5.6

* Menu through routing

* Start of alert menu

* Better alert scopes

* reduce cruft in models

* Alerting menu more or less working :D

* Fix style

* Improved preflight

* Fix chicken-eggs!

* Remove examples

* Better alert_rule status queries
Debugbar

* fix app.env check

* User Menu

* Settings bar (dropped refresh)
Search JS

* Toastr messages

* Rename preflight

* Use hasAccess(User) on most models.
Add port counts

* Missed a Preflight -> Checks rename

* Fix some formatting

* Boot Eloquent outside of Laravel
Use Eloquent for Config and Plugins so we don't have to connect with dbFacile inside Laravel.
Move locate_binary() into Config class

* Config WIP

* Try to fix a lot of config loading issues.

* Improve menu for non-admins removing unneeded menus
url() for all in menu

* Only use eloquent if it exists

* Include APP_URL in initial .env settings

* Implement Legacy User Provider

* Helper class for using Eloquent outside of Laravel.
Allows access to DB style queries too and checking the connection status.

* Fix up tests

* Fix device groups query

* Checking Travis

* copy config.test.php earlier

* dbFacile check config before connecting
Don't use exception to check if eloquent is connected, it gets grabbed by the exception handler.
Ignore missing config.php error.

* Fix config load with database is not migrated yet.

* Remove Config::load() from early boot.

* Use laravel config settings to init db (this prefers .env settings)
Fix bgp vars not set in menu
add _ide_helper.php to .gitignore

* Restrict dependencies to versions that support php 5.6

* Update ConfigTest

* Fix a couple of installation issues

* Add unique NODE_ID to .env

* Correct handling of title image

* Fix database config not loading. Thanks @laf

* Don't prepend /

* add class_exists checks for development service providers

* Fix config value casting

* Don't use functions that may not exist

* Update dbFacile.php

* d_echo may not be defined when Config used called.

* Add SELinux configuration steps
More detailed permissions check.
Check all and give complete corrective commands in one step.

* Ignore node_modules directory

* Re-add accidetal removal
2018-05-09 08:05:17 -05:00
Tony Murray 8afafe7eb0 refactor: pre-commit.php updates (#8679)
Disable the log for unit tests to speed things up hopefully
2018-05-09 12:53:45 +01:00
Neil Lathwood 5273b291bf Revert "Add check_http service custom command" (#8680)
* Revert "device: Add NTP support for Allied Telesis AWPlus products (#8580)"

This reverts commit e898075c36.

* Revert " Restore OpenBSD version/features/hardware (#8673)"

This reverts commit b94ad929b8.

* Revert "Expand the description of Application support (#8619)"

This reverts commit 8ce423dd2d.

* Revert "Documentation updates for DMI support and making two links in the FAQ work (#8440)"

This reverts commit a7437c13da.

* Revert "webui: Make two-factor auth logo use response (#8652)"

This reverts commit 3e0c26ff50.

* Revert "fix: Updated Discovery on Ceragon to re-add wireless (#8647)"

This reverts commit ce2b9f9e5d.

* Revert "feature: Add check_http service custom command (#8675)"

This reverts commit a1f92a92cf.
2018-05-09 08:39:16 +01:00
mattie47 e898075c36 device: Add NTP support for Allied Telesis AWPlus products (#8580)
* Add support for Allied Telesis AlliedWare Plus products

- Uses mibs from 5.4.7-2.1 for AlliedWare Plus products
- Updates Legacy AlliedWare mibs
- Added Allied Telesis svg

* Remove unnecessary "trim" from snmpget

* Add new line to end of file

* Minor fixes for commit

* awplus: initial ntp commit

This isn't completely working, however initial patch of it partially working

* awplus: Add NTP support

- Fixed polling issues for awplus. Now offset and delay graphs work.

- html/includes/graphs/device/ntp_*.inc.php
--  Removed extra "\" from MAX count which showed up in Graph legend

- html/includes/graphs/device/ntp_delay.inc.php
-- Present legend in either seconds, or milliseconds (depending on vendor)

- html/includes/graphs/device/ntp_dispersion.inc.php
-- Present legend in either seconds, or milliseconds (depending on vendor)

- html/includes/graphs/device/ntp_offset.inc.php
-- Removed rrd minimum (-l 0). This is because offset can be below 0.
--- It's better for the graph to auto scale than set a fixed minimum to display here.

- html/includes/graphs/device/ntp_stratum.inc.php
-- Changed graph to go from 0 to max of 16. NTP Stratum can only be 0 to 16.

* awplus: Add NTP test data

* updated awplus ntp poller

* device: awplus convert NTP poller into seconds

* device: fix NTP graph formatting

* device: Improve NTP formatting

* device: unset awplus NTP variable

* fix formatting

* device: awplus change NTP from numerical OIDs to named

* device: update awplus ntp json tests

* device: fix cisco and awplus ntp database creation

* device: update awplus json
2018-05-08 20:37:06 -05:00
Tony Murray b94ad929b8 Restore OpenBSD version/features/hardware (#8673)
* Restore OpenBSD version/features/hardware

* Add os test data

* Update openbsd.inc.php
2018-05-08 20:05:09 -05:00
Hans Erasmus 8ce423dd2d Expand the description of Application support (#8619)
* Expand the description of Application support

I was not aware that the applications can also be auto-discovered. I discovered it by chance, and when I mentioned it in discord channel, it seemed blatantly obvious to everyone else. Thought editing the docs might help future users.

* Update Applications.md

Changed a lot of instructions to make it more structured.

* Add files via upload

Addedimages to help with application extensions how-to.

* Update Applications.md

Added the file locations into master file.
2018-05-08 19:15:58 -05:00
James Andrewartha a7437c13da Documentation updates for DMI support and making two links in the FAQ work (#8440)
* Documentation updates for DMI support and making two links in the FAQ work

* Update SNMP-Configuration-Examples.md

* Update SNMP-Configuration-Examples.md

* Update snmpd.conf.example

* Update SNMP-Configuration-Examples.md
2018-05-08 18:35:25 -05:00
Lucas Dousse 3e0c26ff50 webui: Make two-factor auth logo use response (#8652)
If you customise your logo and use png the logo on the two auth is not responsive. I purpose to add class
2018-05-08 22:51:21 +01:00
Paul Heinrichs ce2b9f9e5d fix: Updated Discovery on Ceragon to re-add wireless (#8647)
* Update Poller / discovery moduls of ceragon

* Update test / snmpsim data

* Update overhead graph

* remove definition in yaml
2018-05-08 22:27:16 +01:00
Rémy Jacquin a1f92a92cf feature: Add check_http service custom command (#8675) 2018-05-08 21:54:50 +01:00
Tony Murray 9279c845f6 feature: Added wireless sensors to about and stats.librenms.org (#8676) 2018-05-08 21:42:52 +01:00
Tony Murray 350b3a1ef8 fix: Fixed alerting with dynamic contacts for rules made with the new builder (#8677)
Update test-alert.php too

Thanks to @dsgagi on Discord for identifying the issue
2018-05-08 21:35:21 +01:00
That Guy --^ 89092cd363 update juniper junos chassis definitions (#8678) 2018-05-08 21:31:09 +01:00
mattie47 88312c0928 device: rename awplus sensor state_name (#8671)
* device: rename awplus sensor state_name

* device: update awplus test data

* Update fiberhome.json

* Update fiberhome.json
2018-05-08 06:49:38 -05:00
angryp 2d237710e2 Fix for recurring date placeholders in maintenance scheduling form. Only actual for MySQL-community, tested on 5.7.20 and 5.7.22. (#8659) 2018-05-07 23:32:40 -05:00
theherodied d204a1beca Change Dell iDrac from Server to Appliance (#8642)
* Change HPE iLO from Appliance to Server

* reverted ilo to appliance, set idrac to appliance

* Added OS test data
2018-05-07 23:28:21 -05:00
Robert Baxter 622b1d09e5 Updated MIB (#8669)
Updated MIB pulled from https://dzf8vqv24eqhg.cloudfront.net/userfiles/1307/6214/ckfinder/files/MIMOSA-MIB-B5.txt?dc=201610241644-30 linked to from http://backhaul.help.mimosa.co/snmp-mib-downloads
2018-05-07 21:45:03 +01:00
Tony Murray fea3c77916 fix: Workaround bad lldp that supplies ifAlias instead of ifDescr for lldpRemPortDesc (#8666) 2018-05-07 21:17:45 +01:00
githubuserx 9401e43eb9 Added sysObjectID for Canon LBP printer series (#8644)
* Added sysObjectID for Canon LBP printer series, previously mentioned in issue (#5637)

* Added snmprec data for Canon LBP6670 (#5637)

* Create canonprinter_lbp.json
2018-05-06 20:41:12 -05:00
Forodrim 7e369a6d98 Added Temperature and Humidity Sensors for Dell Rack PDU (#8582)
* Added Temperature and Humidity Sensors for Dell Rack PDU

* Update dell-rpdu.yaml
2018-05-05 01:07:39 -05:00
Søren Rosiak 74e6e3481c newdevice: Fortinet FortiWeb Basic Support (#8654)
fix #8651
2018-05-05 00:02:05 -05:00
Søren Rosiak aa8e0096a2 fix: Fix Netguardian OS Polling Variable (#8655) 2018-05-05 00:00:52 -05:00