Commit Graph

18170 Commits

Author SHA1 Message Date
Jellyfrog
20b4215204 Swich links to https (#12511)
* Switch librenms links to https

* Convert librenms links in comments

* Switch gnu.org url to https

* switch php urls to https
2021-02-09 00:29:04 +01:00
Tony Murray
aa7fa09c89 Fix Fast Ping (#12509)
Recent Laravel version update broke ping.php by now serializing the PingCheck job.
Store process parameters instead of process object.
2021-02-08 10:18:02 -06:00
Jellyfrog
ee1606d799 Fix url generator XSS (#12507) 2021-02-08 02:43:34 +01:00
Jellyfrog
3d02e76e0e Fix XSS in notifications (#12504) 2021-02-07 12:12:30 +01:00
balkandude
8fbe1b3153 Network map fix Css/img (#12498)
* Add files via upload

* Delete zoomExtends.png

* Delete upArrow.png

* Delete minus.png

* Delete plus.png

* Delete leftArrow.png

* Delete downArrow.png

* Delete rightArrow.png

* Create test

* Add files via upload

* Create readme

* Add files via upload

* Delete downArrow.png

* Delete leftArrow.png

* Delete minus.png

* Delete plus.png

* Delete rightArrow.png

* Delete test

* Delete upArrow.png

* Delete zoomExtends.png

* Update readme
2021-02-06 18:23:26 +01:00
Showfom
30c008cc56 Correct rrdcached.sock location (#12496)
According to https://docs.librenms.org/Extensions/RRDCached/
2021-02-05 00:04:15 +01:00
TridTech
2173b6d6a5 Update deltaups.yaml definition (#12497)
Add relevant graphs as the overview graphs for Delta UPSes
2021-02-04 23:59:36 +01:00
dependabot[bot]
e42a6e36a6 Bump laravel/framework from 8.22.1 to 8.24.0 (#12490)
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.22.1 to 8.24.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.22.1...v8.24.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 18:39:20 +01:00
Nick Kringle
1e591da594 Fixes incorrect device graph type for poweralert 12 devices (#12491) 2021-02-02 18:03:39 +01:00
Torch
edab7e54aa Add support for SCS KS air-conditioning Devices (#12360)
* Added Device: SCS KS Air-Cons

* Changed SCS-KS-Series to SCS-KS, Added Interfaces, Added new tests
2021-02-02 16:16:44 +01:00
Negatifff
d201c4ff9d Socomecpdu support (#12481)
* socomecpdu-support

* added newline

* test added

* test added

* test json added

* fix1

* fix2
2021-02-02 16:12:41 +01:00
Anthony F. McInerney
5388a20c09 Add Service Templates (#12107)
* service templates - move to blade - jellyfrog fixes - revert get to find and fix discovery lookup

* service templates - move to blade - wip

* service templates - move to blade - wip

* service templates - move to blade - deprecate delete_service_template

* service templates - move to blade - deprecate delete_service_template

* service templates - move to blade - deprecate remove_service_template

* service templates - move to blade - deprecate remove_service_template

* service templates - move to blade - fix permisson lookup

* service templates - move to blade - fix remove route

* service templates - move to blade - fix remove route

* service templates - move to blade - fix permisson lookup

* service templates - move to blade - fix permisson lookup

* service templates - move to blade - fix permisson lookup

* service templates - move to blade - fix permisson lookup

* service templates - move to blade - fixs

* service templates - move to blade - fixes

* service templates - move to blade - fixes

* service templates - move to blade - fixes

* service templates - move to blade - nullable input?

* service templates - move to blade - nullable input?

* service templates - move to blade - nullable input?

* service templates - move to blade - add selected for device group id and type

* service templates - move to blade - add selected for device group id and type

* service templates - move to blade - add selected for device group id and type

* service templates - move to blade - fix discovery response

* service templates - move to blade - fix device group index display

* service templates - move to blade - add delete to discover_service_template

* service templates - move to blade - add discover all button - function foobar

* service templates - move to blade - add discover all button - function foobar

* service templates - move to blade - add discover all button - function foobar

* service templates - move to blade - fixes

* service templates - move to blade - fixes

* service templates - move to blade - fixes

* service templates - move to blade - button fixes

* service templates - move to blade - button fixes

* service templates - move to blade - button fixes

* service templates - move to blade - attempt route fix

* service templates - move to blade - attempt route fix

* service templates - move to blade - attempt route fix

* service templates - move to blade - attempt route fix

* service templates - move to blade - fix discovery function

* service templates - move to blade - fix discovery function

* service templates - move to blade - fix return values - thanks SourceDoctor

* service templates - move to blade - attempt route fix

* service templates - move to blade - button variable fix

* service templates - move to blade - button variable fix

* service templates - move to blade - button variable fix

* service templates - move to blade - function fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - move to blade - permissions fix

* service templates - add initial api - and model permissions fix

* service templates - add initial api - discovery too

* service templates - add initial api - discovery too

* service templates - merge fix

* service templates - api fixes

* service templates - api fixes

* service templates - remove bad fixe

* service templates - discover null? :)

* service templates - Policy requires Facade?

* service templates - Policy requires Facade?

* service templates - REVERT Policy requires Facade?

* service templates - REVERT Policy requires Facade?

* Revert "service templates - REVERT Policy requires Facade?"

This reverts commit 7752b3e4e5.

* service templates - clean up discover api call

* service templates - clean up discover api call

* service templates - clean up discover api call

* service templates - clean up discover api call

* service templates - clean up discover api call

* service templates - attempt route fix

* Revert "service templates - attempt route fix"

This reverts commit b48970351e.

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template

* service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template

* Revert "service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template"

This reverts commit ef93315db5.

* Revert "service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template"

This reverts commit 73af819a60.

* Revert "service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template"

This reverts commit dd019c3105.

* Revert "service templates - jellyfrog fixes - dbchanged - DeviceGroup relates to Service Template"

This reverts commit 94aaaf7976.

* service templates - jellyfrog fixes - DeviceGroup relates to Service Template

* service templates - fix permissions

* service templates - db service_templates_perms

* service templates - fix permissions

* service templates - fix permissions

* service templates - fix permissions

* service templates - fix permissions

* service templates - fix permissions

* service templates - fix edit.blade missing parameters - still 403 :(

* service templates - jellyfrog -fix route and construct

* service templates - jellyfrog -fix route and construct

* service templates - jellyfrog -fix route and construct

* Revert "service templates - jellyfrog -fix route and construct"

This reverts commit ec1eea7a99.

* service templates - jellyfrog -fix routes

* service templates - jellyfrog -fix services lookup

* service templates - edit blade fixes

* service templates - edit blade fixes - service or services or template or serviceTemplate or service_template good luck

* service templates - edit blade fixes

* service templates - index blade fixes

* service templates - discover return fix

* service templates - remove return fix

* service templates - fix discovery api returns

* service templates - fix discovery api returns

* service templates - fix discovery api returns

* service templates - fix discovery - test

* service templates - fix discovery

* service templates - fix checkbox integer

* service templates - fix checkbox integer

* service templates - fix checkbox integer

* service templates - fix checkbox integer

* service templates - fix checkbox integer

* service templates - fix discover all

* service templates - fix discover all

* service templates - fix discover all

* service templates - fix discover all

* service templates - fix discover all

* service templates - fix discover all

* service templates - fix discover all

* service templates - fix discover

* service templates - fix discover

* service templates - fix discover

* service templates - fix discover

* service templates - fix discover

* service templates - move discover/apply to blade - last of the old functions - wip

* service templates - move discover/apply to blade - last of the old functions - wip

* service templates - move discover/apply to blade - last of the old functions - wip

* service templates - change all relevant to template for sanity

* service templates - inspection fixes

* service templates - inspection fixes

* service templates - inspection fixes

* service templates - murrant fixes - use createOrUpdate - add obervers - fix function call

* service templates - murrant fixes - add ServiceController store - not used

* service templates - murrant fixes - add Observers file)

* service templates - murrant fixes - correct ServiceController

* service templates - murrant fixes - fix observers load

* service templates - observer fix

* service templates - schedule discovery function call fix, cheeky, is this allowed?

* service templates - attempt route fix.

* service templates - attempt route fix 2

* service templates - blade route applyall missing url - ie the route lol

* service templates - blade route applyall missing url - ie the route lol

* service templates - fix routes - bingo!

* service templates - fix routes - bingo!

* service templates - fix blade missing quote

* service templates - jellyfrog fix - remove pluck

* service templates - missing template id on service update

* service templates - jellyfrog fix - add get

* service templates - fix service db defaults / null

* service templates - fix service update

* service templates - fix service update

* service templates - fix service update

* service templates - fix service devicegroup change - obsoletes service_template_change in servicesdb

* service templates - fix service devicegroup change - obsoletes service_template_change in servicesdb

* Add service templates - phpcs fixes - and attemp whereNotIn scope

* Add service templates - styleci

* Add service templates - styleci

* Add service templates - fix notindevicegroup scope

* Add service templates - removed service service_template_changed - not required for delete or update

* Add service templates - removed service service_template_changed - not required for delete or update

* Add service templates - murrant fixes - add protected casts - fix checkbox

* Add service templates - fix checkbox - attempt2

* Add service templates - fix checkbox - attempt3

* Add service templates - fix checkbox - attempt3

* Add service templates - fix checkbox - attempt4

* Add service templates - fix delete row selection

* Revert "Add service templates - fix delete row selection"

This reverts commit 4d9e4990f2.

* Add service templates - fix delete row selection

* Add service templates - fix automatic discovery

* Add service templates - fix automatic discovery

* Add service templates - checkbox - add hidden input

* Add service templates - checkbox - add old value back?

* Add service templates - checkbox - fix disabled

* Add service templates - checkbox - fix disabled

* Add service templates - service fixes - styleci

* Add service templates - make devicegroup required

* Add service templates - let Disable text wrap

* Add service templates - dont allow device group to be deleted when service templates exist

* Add service templates - dont allow device group to be deleted when service templates exist

* Add service templates - enable multiple device groups - wip

* Add service templates - enable multiple device groups - wip

* Add service templates - enable multiple device groups - wip

* Add service templates - enable multiple device groups - dbschema - wip

* Add service templates - enable multiple device groups - db migration - wip

* Add service templates - enable multiple device groups - db migration - wip

* Add service templates - enable multiple device groups - wip

* Add service templates - enable multiple device groups - wip

* Add service templates - enable service template Groups - relationships to device AND device groups

* Add service templates - styleci fixes

* Add service templates - styleci fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - fixes

* Add service templates - db - primarykey issues

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fix migrations

* Add service templates - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - blade view - fixes

* Add service templates - misc update for travis build trigger

* Add service templates - restrict view to only show device/groups that have templates applied

* Add service templates - fix devicegroup update

* remove permissions table stuff

* Fix schema rollback

* fix style

* Update ServiceTemplateController.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-02-02 00:40:11 -06:00
Patrik Forsberg
89cbf152f6 Fixes issues with binding and authenticating users in nested groups (#12398)
* Fixes issues with binding and authenticating users in nested groups

Signed-off-by: Patrik Forsberg <git@paddyonline.net>

* re-instated the user group check for nested groups after identifying the real issue in ActiveDirectoryAuthorizer.php
added fix for special characters in group checker in ActiveDirectoryAuthorizer.php

Signed-off-by: Patrik Forsberg <git@paddyonline.net>

* fix for styleci/pr issues in ActiveDirectoryAuthorizer.php

Signed-off-by: Patrik Forsberg <git@paddyonline.net>

* further fixes for styleci/pr in ActiveDirectoryAuthorizer.php

Signed-off-by: Patrik Forsberg <git@paddyonline.net>

* fixed return value from userExists in ActiveDirectoryAuthorizer to return boolean instead of integer

Signed-off-by: Patrik Forsberg <git@paddyonline.net>

* fix for styleci/pr issues

Signed-off-by: Patrik Forsberg <git@paddyonline.net>

* cleanup

* don't use boolval on int...

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-02-02 00:13:48 -06:00
Tony Murray
aa634aa622 fix changelog (#12489) 2021-02-01 21:01:25 -06:00
Tony Murray
58a740cf81 Bump version to 21.1.0 21.1.0 2021-02-01 20:57:06 -06:00
Tony Murray
891f0e9694 Changelog for 21.1.0 2021-02-01 20:57:05 -06:00
Tony Murray
c79dc47e00 Bump version to 20.1.0 2021-02-01 20:52:47 -06:00
Tony Murray
38554bdffb Changelog for 20.1.0 2021-02-01 20:52:45 -06:00
Nick Kringle
5137b1319f Adds tripplight snmpwebcard support (#12445)
* Adds Tripplite 12x mib

* Adds triplight envirosense data

* add test data

* fixes type

* flushes out the snmprec

* Fixes incorrect multiplier & adjusts descriptions of sensors

* Adds test data for my variant

* adds test data for the other two (pre existing) variants

* address PR comments by adding additional os discovery items
2021-02-02 00:21:41 +01:00
fablabo
12533aa9a6 Update Rancid.md (#12487)
* Update Rancid.md

The current installation manual suggests running php-fpm as user librenms.  adding user www-data to group rancid won't help in making the rancid config files available for librenms.

* Update Rancid.md

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-02-01 20:54:57 +01:00
yrebrac
3251cc8ac0 Creating Documentation page (#12486)
* Updated the creating documentation page with more informationg on
building and viewing. Fixed some formatting and markup issues with
existing text.

* Minor corrections

* Revert "Minor corrections"

This reverts commit efbe4bde55.

* Minor corrections

* Update Creating-Documentation.md

* Update Creating-Documentation.md

* Update Creating-Documentation.md

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-02-01 20:50:52 +01:00
Oahz Egroeg
50b99a4f1a Fixes #12480 (#12482)
Casting REDIS_TIMEOUT to integer

Co-authored-by: Oahz Egroeg <8146946+EgroegOahz@users.noreply.github.com>
2021-02-01 20:43:32 +01:00
SourceDoctor
17f5a3f232 Copy Dashboard to other User (#11989)
* Copy Dashboard to other User

* travis fix

* only allow Dashboard Copy to Admins

* rewrite query

* move Controller to Eloquent

* optimize row copy

* travis ...

* move copy field to edit section

* code changes

* code changes

* limit copy feature to admins

* .
2021-01-29 08:28:47 -06:00
Dmkaz
5379176bd8 Freenas storage polling fix (#12275)
* Update to fix reporting with multiple zpools

Removed the foreach loop to prevent erroneous reporting when multiple zpools are polled.

* Update to fix reporting with multiple datasets

Removed the foreach loop to prevent erroneous reporting when multiple datasets are polled.

* updated test data

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-01-28 13:57:47 -06:00
Tony Murray
7b0929b9ee Fix oxidized API call when config is missing (#12476) 2021-01-28 11:12:22 -06:00
Tony Murray
39217d003f Remove PHP8 blockers in LibreNMS (#12451)
* PHP8 support
looks like one upstream package needs to be updated also.

* Sync dependencies with laravel/laravel

* remove php 8 tests for now

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-28 11:11:55 -06:00
Tony Murray
f230fc8342 fix storage test data order issues (#12478) 2021-01-28 10:49:26 -06:00
Jellyfrog
b68793b70d Add cache busting support to gh action (#12473) 2021-01-28 17:11:14 +01:00
Amund Meling
22a9f3221a Redis - Add scheme to allow TLS (#12477)
Ref: https://laravel.com/docs/8.x/redis#configuring-the-connection-scheme
2021-01-28 09:07:56 -06:00
Mathieu Poussin
a0882af549 API: Allow logs to be filtered by min/max id (#12471)
* Allow logs to be filtered by min/max id

* typo
2021-01-28 08:50:58 -06:00
alakiza
841ce1349d changed default param max_rows to increase widget count on dashboard (#12438)
* webui: changed default param max_rows to increase widget count on dashboard

* Set max rows

* Update jquery.gridster.min.js

* Update jquery.gridster.min.js

* remove newline

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-01-27 23:00:22 -06:00
Tony Murray
9ad60ac76d Fix js injections issues in device overview (#12475)
Thanks to @weev on Discord for reporting the issue
2021-01-27 22:09:13 -06:00
Tony Murray
a06d3babad fix exception in puppet overview (#12474) 2021-01-27 22:08:42 -06:00
Jellyfrog
956494a95b Switch GH pages to own repo (#12472) 2021-01-28 02:19:56 +01:00
Jellyfrog
32ed73b93e Speedup tests (#12470)
Moving the up check to later saves unnecessary waiting time
2021-01-27 21:46:45 +01:00
Adm Chrysler
1fe30d366e Added missing / on internal link (#12467) 2021-01-27 08:07:32 -06:00
Martin
41570c46b1 Support new lines in login_message again (#12469)
Introducing own css class for customization

Fix problem introduced with #12460
2021-01-27 08:06:20 -06:00
Jellyfrog
8d99a89814 Remove deprecated composer argument (#12468) 2021-01-27 10:17:21 +01:00
Tony Murray
60d3d54554 Fix poller frequency display bug and warn (#12466)
* Fix poller frequency display bug and warn
Make warning more obvious.

* Fix typo
2021-01-27 10:10:23 +01:00
ottorei
7b0b59fdfb Add sensors for Meinberg Lantime NTP-devices (#12447)
* test

* intendation

* test

* test

* test

* fix

* fix

* test

* a

* fix

* a

* a

* index

* index

* a

* a

* a

* fix

* clock types

* a

* spaces

* Add test data

* Additional states

* test

* count

* fix

* fix

* fix

* limits

* a

* a

* test

* a

* fix

* fix

* a

* a

* a

* test

* a

* test

* limit test

* a

* a

* a

* a

* a

* a

* a

* a

* generic values

* os info

* a

* fix

* new test data

* add test data

* Add test data
2021-01-27 04:06:15 +01:00
Jellyfrog
4ba095853b Add test to check if os parameter matches filename (#12442) 2021-01-25 23:19:31 -06:00
Adam Bishop
ae38a45b7e Add a button to reset port state history (#12457)
* Add API function to reset port state

* Log the activity

* Make StyleCI Happy

* Update FAQ.md

Add FAQ explaining problem and use
2021-01-25 23:13:31 -06:00
Tony Murray
fb600b4ca9 ldap auth handle no search more gracefully (#12424) 2021-01-25 23:07:51 -06:00
Martin
cdd93b695c Remove unnecessary horizontal scroll bars in allert widgets (#12464)
* Remove unneeded horizontal scroll bars for alert widgets

Fixes #12454

* Always hide horizontal scroll bars

Width of the widget_body class is set to 100% which hides them anyway, with correct css margins
2021-01-25 23:07:11 -06:00
Adam Bishop
27ac7d65ee Filter Juniper mempools (#12443)
* Add lost functionality to Juniper mempool polling

* Update test data

* Test data for a more recent device

* Change simple string match to case insentive regex

* Update test data - CPU was affected too
2021-01-25 23:02:30 -06:00
Hayden
82c272cb6e Update enexus for "SmartPack S" (#12465)
* Update enexus.yaml

add "SmartPack S"

* Update enexus.yaml

better fix
2021-01-25 22:59:15 -06:00
paulierco
9b7c7e8291 Add Alcatel AOS7 bgpdescr & bgpprefix (#12450)
* WIP: Add Alcatel AOS7 bgpdescr & bgpprefix

* fix descr and bgpprefix

* fix func

* fix style

* fix style

* fix style

* add tests
2021-01-25 22:56:59 -06:00
WhippingBoy
ca157ec673 Added Firepower 4125 (#12462) 2021-01-25 22:07:32 +01:00
Martin
3455371ff5 Reintroduce word wrapping to the custom login message (#12460)
The <pre> tag breaks the well formed output of the login messages by introducing scrollbars and wrong background color. Later is most noticeable in the dark theme.
2021-01-24 00:52:40 +01:00
Martin
4779e7952e Improving readability of tables on dark theme dashboards (#12455)
lighten the text color in widget tables such as syslog or eventlog (it was black on grey)
2021-01-23 00:18:06 -06:00