Commit Graph

15015 Commits

Author SHA1 Message Date
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
angryp
82072b3694 Fix for get_alert API method. Tested on MySQL-community 5.7.22 and MariaDB 10.2.14. (#8658) 2018-05-04 23:51:04 -05:00
Tony Murray
e1a3533fbe snmpscan.py: ignore bad DNS config (#8656)
When someone has configured reverse dns that points to an incorrect dns hostname, this should revert to IP properly
2018-05-04 09:46:18 -05:00
Kevin Ying
4140796807 Reordering metrics list on Health-Information doc (#8653)
* Updated XIRRUS-MIB; added Temperature

* Corrected field and indentation

* Added test data

* More test data

* Create xirrus_aos.json

* Reordered metrics back into alphabetical
2018-05-02 14:34:13 -05:00
Nash Kaminski
f568adfe0a Do not fail validation when IPv6 is disabled by unloading the associated kernel module (#8648) 2018-05-01 13:54:35 -05:00
Kevin Ying
d257fa0ea5 Updated XIRRUS-MIB; added Temperature sensor (#8631)
* Updated XIRRUS-MIB; added Temperature

* Corrected field and indentation

* Added test data

* More test data

* Create xirrus_aos.json
2018-04-30 10:03:16 -05:00
Aldemir Akpinar
d214f9d5b7 Added new raritan logo (#8581)
* Added new raritan logo

* Cropped logo for the device list, also minified svg a bit more

* updated logo

* Create raritan.svg
2018-04-30 09:58:17 -05:00
Tony Murray
91903bc525 Add good_if to boss (#8641) 2018-04-30 09:12:52 -05:00
Kevin Krumm
0c0b724b58 updated HPE iLo yaml to include HPE iLO 5 (#8634)
Detect HPE iLO 5
2018-04-30 09:06:07 -05:00
Neil Lathwood
386fea0321 docs: Changelog for 1.39 Apr 2018 (#8636) 1.39 2018-04-29 21:42:40 +01:00
VVelox
50935fff33 update docs to reflect SMART monitoring having the ability to use either device name or disk serial number (#8522)
* update to reflect changes to the SMART SNMP extend

* minor grammatical change

* update to reflect the default of SN and expand info on that all a bit
2018-04-27 22:49:30 +01:00
Neil Lathwood
80ef4d4324 Fixed clicking notes on device alerts page (#8629) 2018-04-27 11:58:07 -05:00
Tony Murray
c88d28c10a Always update the alert note when acknowledging (#8620)
and unacknowledging
2018-04-27 14:28:08 +01:00
Tony Murray
6c04f92877 fix: Fixed port_usage_perc macro (#8625)
We cannot check if the port is enabled inside the macro because it casts the usage percentage to a boolean (1 / 0)

Remove redundant macros.port in rule collection (was check 3 times before this)

Broken by #8511
2018-04-27 14:27:05 +01:00
Tony Murray
d1e8e2177f fix: Fixed Q-BRIDGE-MIB VLANs (#8623)
* Fix Q-BRIDGE-MIB VLANs
Properly handle dot1qVlanTimeMark index (by ignoring it instead of assuming it is 0)
Adds test data for at least one device that uses Q-BRIDGE-MIB.

Fixes: #8516

* fix whitespace

* remove unused variable
2018-04-27 14:22:49 +01:00
Neil Lathwood
df763931d7 Merge pull request #8621 from murrant/fix-alerts-note 2018-04-26 17:51:49 +01:00
Tony Murray
81d8060632 Update schema def too... 2018-04-26 11:29:51 -05:00
Tony Murray
7b8e6b66ea Fix alerting
notes field was set to not_null, so some inserts will fail
2018-04-26 11:11:59 -05:00
Neil Lathwood
d799600cab refactor: Updated the oxidized script (#8572)
* refactor: Updated the oxidized script

* Updated to use rmccue::Requests + Config::get()
2018-04-26 10:14:28 -05:00
Neil Lathwood
efe8b8858b device: Added detection for Red Lion Sixnet devices (#8576)
* device: Added detection for Red Lion Sixnet devices

* Added state sensors
2018-04-26 08:47:15 -05:00
Neil Lathwood
3d65deaf91 device: Added detection for Corero CMS devices (#8574)
* device: Added detection for Corero CMS devices

* remove files added by accident
2018-04-26 08:46:10 -05:00