15430 Commits

Author SHA1 Message Date
421bcb030d Force root url if set by user (#9266)
* Force root url if set by user
If user sets APP_URL, force the root url to that.  Empty strings result in default behavior.
Fix some of the urls in the laravel templates.

* Docs update

* Add base_url
2018-10-02 07:56:13 -05:00
9a17307f3f Allow login with GET variables (#9268) 2018-10-01 20:05:30 -05:00
ac677a99ee Fix eventlog when the device has been deleted. (#9276) 2018-10-01 20:03:06 -05:00
c9bbaf5a9f Added support for PBI Digital Decoder (#9223)
* added PBI MIB

I finally found a MIB for PBI device

* added PBI-MAIN-MIB

* added another PBI MIB

* added PBI MGSYSTEM-MIB

* added ird.yaml to definition

* added senors discovery for PBI devices

* added ird.inc.php for polling

* added logo for PBI

* added ird.json

* Rename PB-MAIN-MIB to PBI-MAIN-MIB

* Update ird.json

* Update PBI-4000P-5000P-MIB

* Update PBI-MAIN-MIB

* Update PBI-MGSIGNALCHARACTERISTICS-MIB

* Update PBI-MGSYSTEM-MIB

* Create ird.snmprec

* Updated json test file

* deleted frequency from yaml

I think that better will be see values from frequency in wirelles frequency, where it is in MHz

* Create Ird.php

* Update Ird.php

* Update Ird.php

* Update ird.json

* Update Ird.php
2018-09-30 21:28:33 -05:00
56481c6681 Added support for Teleste Luminato (#9061)
* Create teleste.yaml

* Create teleste.inc.php

* Create teleste.snmprec

* Add files via upload

* Add files via upload

* Update teleste.inc.php

* Delete teleste.svg

* Add files via upload

* Update teleste.yaml

* Update teleste.inc.php

* Delete HOST-RESOURCES-TYPES.mib

* Changed os to luminato

* Update and rename teleste.inc.php to luminato.inc.php

* Delete HOST-RESOURCES-MIB.mib

* Delete RFC1155-SMI.mib

* Delete RFC1213-MIB.mib

* Delete SCTE-HMS-HE-COMMON-MIB.mib

* Delete SCTE-HMS-HEADENDIDENT-MIB.mib

* Delete SCTE-HMS-PROPERTY-MIB.mib

* Delete SCTE-HMS-ROOTS.mib

* Delete SCTE-ROOT.mib

* Delete UCD-SNMP-MIB.mib

* Delete TELESTE-COMMON-MIB.mib

* Delete TELESTE-LUMINATO-MIB.mib

* Delete TELESTE-LUMINATO-MIB2.mib

* Delete TELESTE-ROOT-MIB.mib

* Create teleste.md

* Delete teleste.md

* Create telestefilename.md

* Delete telestefilename.md

* added TELESTE-COMMON-MIB

* edited os polling

* Update luminato.inc.php

* Update luminato.inc.php

* Create TELESTE-LUMINATO-MIB

* added discovery sensors for luminato

* Update luminato.inc.php

* Updated and added test files

* added TELESTE-ROOT_MIB

* Create TELESTE-LUMINATO-MIB2

* Added missing json test file

* Fixed TELESTE-ROOT-MIB

* Updated test data
2018-09-30 21:28:08 -05:00
14a168b2a9 Keeps the dashboard sessions from expiring. (#9263)
* Keeps the dashboard sessions from expiring.
Route dashboard ajax calls through Laravel.
Boots minimal cookies and sessions.
Does not fix other pages for now, real fix is to fully port.

* Check Laravel auth for the legacy calls.
Display Laravel errors in the dashboard.
legacy auth checks are mostly extraneous now.
2018-09-30 21:23:00 -05:00
c36a9e9abf Missing {{ }} around $value in some examples (#9272)
Storage alert and another was missing {{ and }} around the $value giving an error in test-template.php.
2018-09-30 21:08:51 -05:00
6242f941f6 Update Eventlog WebUI/backend to use ajax (#9252)
* WIP Eventlog table

* Initial Eventlog rework

* fromdevice is not a request parameter

* updates

* remove unneeded field

* Cleanups
2018-09-24 08:07:00 +01:00
602d8f531c List files for new permission check. (#9255) 2018-09-24 07:53:34 +01:00
63aec0c4a7 Improved ASUSWRT-Merlin (#9253)
higher resolution icon for ASUSWRT-Merlin
2018-09-22 13:53:47 +01:00
56afc654f4 Re-enable unit tests for PHP 5.6 (#9251) 2018-09-21 17:55:19 -05:00
5aacb03a30 Docs for listing devices in a device group seems misplaced in port-docs. (#9250)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-21 18:13:47 +01:00
4e9a036fc4 Merge pull request #9249 from murrant/ns-collision
Config class collides with Config in model namespace
2018-09-21 17:46:08 +02:00
d9e5b425b3 Config class collides with Config in model namespace 2018-09-21 10:08:17 -05:00
5bf4ca2b6c Fix syslog select2 theme (#9248)
Wrong one :/
htmlentities the rest...
2018-09-21 08:22:15 -05:00
f81552e1c1 Syslog fixes (#9246) 2018-09-21 07:33:34 -05:00
d9b4fb580c Updated EXIM Download instruction (#9241)
Changed EXIM status download instructions to match other extensions
2018-09-20 21:43:36 +01:00
21ca8bf0b0 Update syslog display and backend (#9228)
* Update syslog display backend
select boxes now dynamically load instead of loading all on pageload
select and table ajax backends completely redone with Laravel (just syslog for now)
duplicate url creation to Url utility class for now (uses Device model instead of array)
build short hostname functionality into Device->displayName() helper

* Fix whitespace

* Some tidying up. Split out displayName() and shortDisplayName()

* Enable auto-sizing.
Fix small error in Url

* Eager load device
Use bootstrap theme for select2
2018-09-20 21:33:03 +01:00
c30d494505 Fixed edit dashboard permissions + moved to toastr (#9236)
* Fixed edit dashboard permissions + moved to toastr

* Moved $_POST to $vars
2018-09-20 12:21:38 -05:00
4f6e2b488a Update new_alert_rule.inc.php (#9240) 2018-09-20 12:35:54 +01:00
daec72f8a0 Move ext-mysqlnd to suggested for now (even though it is actually required) (#9229)
* Move ext-mysqlnd to suggested for now (even though it is actually required)
Remove extra dependency version locks, they are more trouble than they are worth.  I just run composer with php 5.6 when updating composer.lock.
Update dependencies.

* Trigger full build on composer updates

* Update composer.json
2018-09-20 00:05:10 +01:00
1a89e27de7 Disable used rules in template map for select them (#9212)
* Disable used rules in template map for select them

* WIP Enable/Disable options dynamically

* Enable/Disable options dynamically

* Even better. Selected options for template are not disabled

* Didnt work so reverting back

* Update attach_alert_template.inc.php
2018-09-20 00:04:52 +01:00
86d862fb25 Added support for allowing alerts to un-ack (#9136)
* Add support for allowing alerts to un-ack

* Updated db_schema.yaml

* Update and rename 263.sql to 265.sql

* Fix up ui a bit.

* Renamed sql file
2018-09-19 23:38:01 +01:00
7682093fd0 Fixed FAQ link and added delayed alerts FAQ (#9239)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [ ] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-19 23:25:41 +01:00
2757232dd6 Added specific support for APC Automatic Transfer Switch (#9221)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.


----------------------------

**APC Automatic Transfer Switch are now detected has generic APC device like a PDU, but the overall information is not the same.**

Long time that I've not added a new device, sorry in advance for the mistakes...

![screen shot 2018-09-18 at 10 02 55](https://user-images.githubusercontent.com/1927109/45676643-7fb30e00-bb32-11e8-82e2-bd08f27b9757.png)
<img width="912" alt="screen shot 2018-09-18 at 10 38 10" src="https://user-images.githubusercontent.com/1927109/45676644-7fb30e00-bb32-11e8-84e9-bab33ccce72a.png">
<img width="899" alt="screen shot 2018-09-18 at 10 40 07" src="https://user-images.githubusercontent.com/1927109/45676645-7fb30e00-bb32-11e8-867e-caa5d731981a.png">
2018-09-19 23:20:34 +01:00
2c7a19712f Run all tests in os group when testing specific OS (#9235)
https://phpunit.de/manual/6.5/en/textui.html#textui.examples.filter-patterns

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-19 23:18:15 +01:00
fc12175ee0 Fixed remember me for login (#9233)
remember me and AuthenticateSession are incompatible on Laravel 5.4

6ca154f2b6

More info: https://kfirba.me/blog/the-undocumented-authenticatesession-middleware-decoded

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-19 23:05:32 +01:00
ba8497d484 Added Transit+Peering to Port Aggregator in the graph widget (#9234) 2018-09-19 15:50:40 -05:00
05d6720a01 Add universe repo (#9238)
adjustment to ## Install Required Packages ## section > add-apt-repository universe
2018-09-19 15:49:22 -05:00
720e6289a8 add-apt-repository universe (#9237)
adjustment to ## Install Required Packages ## section > add-apt-repository universe
2018-09-19 15:49:11 -05:00
41cc344106 VRP: Discovery improvement for optical power + Mib upgrade (#9225)
* Huawei Mib file update

* VRP: Improve sensor discovery for optical equipment

* VRP: Improve sensor discovery for optical equipment

* VRP: Adding Test data after sensor dbm update
2018-09-19 10:00:11 -05:00
85f78e76e4 Fixing Sentry 3 and 4 Temperature Sensors (#9177)
* fixing sentry3 temperature sensor issues: read all sensors not just first two, fix reading limit and current values, fixing snmp get options

* fixing sentry4 temperature sensor issues: read all sensors not just first two, fix reading limit and current values, fixing snmp get options

* fixing code style issues

* addressing review items from murrant, removing individual snmp_gets, fixing fahrenheit to celcius code back

* addressing review items, putting back the celcius fahrenheit conversion logic back

* using snmpwalk_cache_oid instead of reinventing in sentry3 code

* using pre-cache for sentry4 temp sensors, addressing review items

* checking all sentry3 humidity sensors instead of first two, bulk reading instead of individual gets

* addressing style issues

* pre-caching sentry4 humidity warning table removing duplicate temp sensor event config table

* adding two more sentry snmprec files after temperature and humidity sensor updates

* making sensor index values for sentry3/4 unique

* adding sentry3 and 4 test data files after temperature and humidity sensors update
2018-09-19 08:16:04 -05:00
466b5a35a8 Added ability to set a custom SQL query for alert rules. (#9094)
* Added support for AVG in rules

* More updates

* Final work to have advanced sql queries

* Added missing use

* Fix exception when invalid json is passed

* Fixed api for alert rules

* updated docs
2018-09-19 07:47:45 -05:00
53a1730fc7 Fixed PagerDuty alert to show rule name + device as summary (#9213)
* Fixed PagerDuty alert to show rule name + device as summary

* Update Pagerduty.php
2018-09-19 02:28:50 -05:00
e81a1fc79d Updated file permissions check for validate (#9218)
Always post generic full fix commands.  Use chmod instead of setfacl in case the filesystem doesn't support acls.

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-18 20:58:47 +01:00
173b1339e9 Fixed install.php not redirecting when it should (#9224)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-18 20:56:48 +01:00
87ed73ec5c More specific test filtering (#9226)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-09-18 20:54:22 +01:00
22f07914e8 device: Add Allied Telesis oxidized syslog hook support (#9219)
This patch adds support for Allied Telesis AW+ devices running at
least 5.4.8-2.1 the ability to automatically have oxidized pull
configs when the device config has been saved.

Syslog hook for LibreNMS config.php
$config['os']['awplus']['syslog_hook'][] = Array
  ('regex' => '/IMI.+.Startup-config saved on/',
    'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');

Note: V5.4.8-2.1 should be released on roughly Nov 2 2018.

Refer to the following for latest release notes:

https://www.alliedtelesis.com/documents/release-notes-alliedware-plus-548
2018-09-18 10:31:40 -05:00
0c5ff933be Update Syslog.md (#9220)
Added configuration for Allied Telesis Alliedware Plus. 

Note: This should be accepted after #9219 has been delivered.
2018-09-18 10:31:20 -05:00
1fc6a031b3 AD Authorization fixes (#9216)
* AD Authorization fixes
Remove mres() and $_SESSION usage.
Remove broken addUser function and use Mysql addUser.

* AD Authorization fixes
Remove mres() and $_SESSION usage.
Remove broken addUser function and use Mysql addUser.
Extract common AD auth code to ADUtils

* AD Authorization fixes
Remove mres() and $_SESSION usage.
Remove broken addUser function and use Mysql addUser.
Extract common AD auth code to ADUtils

* Send no user info to log instead of toast.

* Remove commented code

* add abstract getConnection() method that is required.

* Actually return the value
2018-09-18 07:57:23 -05:00
5e9d032e16 Speed up testing based on changed files (#9214)
* Speed up testing based on changed files

* Updated to use phpunit instead of foreach loop
2018-09-17 21:32:41 -05:00
8f89cd5e2c Merge pull request #9217 from murrant/gh-templates
Update github templates
2018-09-17 22:18:33 +02:00
1a7ec8823d verbage 2018-09-17 12:08:13 -05:00
7642b56f54 Update github templates 2018-09-17 12:07:11 -05:00
cf31776a6b Show sensors warnings values + moved to json and toastr (#9210)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-09-16 18:23:12 +01:00
57b16c77bf Remove api rate limits (#9211) 2018-09-16 17:17:02 +01:00
8bde5a93b9 Merge pull request #9202 from murrant/components_errors
Work around for annoying Components errors
2018-09-16 12:49:56 +02:00
e0e08e9b52 Fix AD auth with large SID components (#9207)
* Fix AD auth with large SID components
Per http://php.net/manual/en/function.unpack.php unpack on 32bit will convert large unsigned long values into signed long values, so we check for PHP_INT_SIZE and fix them up if necessary.

* Fix indentation
2018-09-15 13:30:32 -05:00
3e4315c158 Don't output non-fatal errors from legacy web pages. (#9208)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-09-15 14:16:30 +01:00
ee85264772 Switch IRC to Discord link in database validation (#9209) 2018-09-15 10:16:45 +01:00