Commit Graph

18207 Commits

Author SHA1 Message Date
dependabot[bot]
fafbf0a221
Bump dot-prop from 4.2.0 to 4.2.1 (#12289)
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 10:23:51 -06:00
Jellyfrog
50c8033099
Laravel 8.x Shift (#12235)
* Shift HTTP kernel and middleware

* Shift service providers

* Shift console routes

* Shift to class based factories

* Namespace seeders

* Shift PSR-4 autoloading

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them. This allows you to review the commit
diff for once for customizations when you are done Shifting.

Moving forward, consider using ENV variables or create a separate
config file to allow the core config files to remain as default
as possible.

* Shift Laravel dependencies

* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Shift cleanup

* console routes

* composer update

* factories

* phpunit

* bootstrap pagination

* model factory

* wip

* Apply fixes from StyleCI (#12236)

* wip

* Apply fixes from StyleCI (#12238)

* wip

* wip

* wip

* wip

* Apply fixes from StyleCI (#12240)

* wip

* Apply fixes from StyleCI (#12242)

* composer update

* Bump to PHP 7.3 minimum

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-11-03 10:18:31 -06:00
Jellyfrog
bc02ab3f6e
Bump to PHP 7.3 minimum (#12288) 2020-11-03 02:56:49 +01:00
Tony Murray
0ac05fda69 Bump version to 1.69 2020-11-01 21:25:18 -06:00
Tony Murray
59eda5acb1 Changelog for 1.69 2020-11-01 21:25:16 -06:00
Tony Murray
139d25236f
Allow preformatted logon message (#12281)
Either this or allow full html, but that seems dubious security wise.
2020-11-02 04:15:30 +01:00
Jellyfrog
5e5128a558
Apply fixes from StyleCI (#12285) 2020-11-01 01:48:24 +01:00
DerTFL
1374c56ade
Fixed display "Power Status" for libvirt vm's (#12283)
* Update print-vm.inc.php

virsh (libvirtd (libvirt) 4.5.0) displaying status of VMs:
```
shut off
running
paused
```

* Update libvirt-vminfo.inc.php
2020-11-01 01:26:00 +01:00
p4k8
134b110e71
Change of default .pdf font (#12278)
* Changed default font in .pdf creation for wider charset support

Change of TCPDF font from helvetica to freeserif to support wider variety of languages by default (including cyrillic). Causes "??????" to render correctly.

* Update pdf.php
2020-11-01 01:24:35 +01:00
Tony Murray
3456322677
Fix incorrect invalid algorithm logging (#12280) 2020-10-30 11:14:33 +01:00
Hans Erasmus
6c4596d1b9
Added new authalgo support for SNMPv3 (#11966)
* Added new authalgo support for SNMPv3

* Update 2020_07_27_00522_alter_authalgo_column.php

Fixed case

* Update addhost.inc.php

Fixed case

* Update snmp.inc.php

Fixed case

* Update db_schema.yaml

Fixed case

* Fixed SHA-* order to ascending

* Update 2020_07_27_00522_alter_authalgo_column.php

Fixed space

* Update db_schema.yaml

Fixed line to be of type string

* Update config_definitions.json

Fixed sorting

* Fixed test file case sensitivity

* Fixed rollback function

* SourceDoctor code for checks

* Fixed indentation issues on Travis test

* Update to re-trigger testing stuck on CLA step

* Added crypto-algo updates

* Incorporated suggestions from Jellyfrog

* Added documentation entry

* Fixed travis spacing error

* Fixed validations

* Delete snmpv3_version_compare.patch

Sorry, this one was not supposed to be there.

* Added poller evaluation

* Added poller comparison

* Fixed merge-conflicts

* Fixed typo in test unit

* code refinements
only can check on webui that it supports the algorithms, hopefully, the eventlog is enough to notify users of distributed pollers.

* style fixes and remove openssl setting

* fix device access

* fix missing migration column

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-29 13:02:26 -05:00
PipoCanaja
7239d4fc5f
typo in bind application polling (#12276) 2020-10-29 15:32:41 +01:00
Jellyfrog
b866bcf2ab
Revert "Check PHP dependencies in daily.sh (#12260)" (#12271)
This reverts commit d82d2f1f19.
2020-10-29 15:11:32 +01:00
Tony Murray
399858e5b5
fix permissions issue (#12274)
fixes #12272
2020-10-29 07:54:09 -05:00
Anthony F. McInerney
d67b9424a9
api functions - device_availability device_outages quick fix (#12270) 2020-10-29 11:09:08 +01:00
PipoCanaja
9797be3677
Update DSL stats even if port is down (#12262)
* Update DSL stats even if port is down

* Correct swapped Upload/download on graphs

* Display attainable line speed in the ADSL page

* Correct SNR graph

* Rewrite labels to avoid misunderstanding

* last swap I hope
2020-10-29 02:08:29 +01:00
Jellyfrog
d82d2f1f19
Check PHP dependencies in daily.sh (#12260) 2020-10-29 01:34:42 +01:00
Tony Murray
4746c3f9d0
Fix permissions bug in IRC (#12266)
* Fix permissions bug in IRC
Rename Permissions class to remove confusion with the Facade

* Fix style
2020-10-28 16:07:03 -05:00
SourceDoctor
1bc868e781
Fix - only get shortlabel from vlan if it has ports (#12267) 2020-10-28 17:58:17 +01:00
ottorei
599c423532
Optional availability calculation mode to allow planned maintenance (#12218)
* Add an optional availability calculation mode

* Style fixes

* Review fixes

* Variable fix

* Style fixes

* Style fixes

* Style fixes

* Add additional status check, remove uptime

* Style fix

* Style fix

* Fix extra database update

* Style fix

* Style fix
2020-10-28 02:05:19 +01:00
MarlinMr
a9762d609f
Update SNMP-Configuration-Examples.md (#12265)
More secure default configuration
2020-10-28 01:50:23 +01:00
corsoblaster
c47ddd2c17
Basic support for Sophos xg v18 (#12251)
* Basic support for Sophos XG V18

Basic support for Sophos XG V18 - new version of SFOS with update snmp structure

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update includes/definitions/discovery/sophos-xg.yaml

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Update sophos-xg.yaml

* Moved file into subfolder

* Update sophos-xg.yaml

* Fix mib folder (deleted)

* Fix snmp file references

* Update sophos-xg.yaml

* Fix folder by vendor

* Update sophos-xg.yaml

* Update sophos-xg.yaml

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-10-25 12:51:01 +01:00
Tony Murray
0fbd60416f
snmpwalk_cache_oid() handle multiline strings (#12254)
* snmpwalk_cache_oid handle multiline strings

* remove useless function

* some output has no space after equals

* airos-af-ltu use hr processors

* don't try to append with empty strings

* fix changed test data due to fix

* revert smartax

* better regex
additional check
2020-10-24 22:56:01 -05:00
Tony Murray
d314f6429a
Attempt to fix dispatcher crash on restart (#12257) 2020-10-24 21:13:59 -05:00
PipoCanaja
8ab1c22de6
webui - Corrected swapped ul/dl Max Rate (#12255)
* correct ul/dl Max rate swapped

* correct ul/dl Max rate swapped
2020-10-24 11:20:59 +02:00
Jellyfrog
bd81f76caa
Use variable for PHP min version in docs (#12256)
* Use variable for PHP min version in docs

* Bump mkdocs deps
2020-10-24 11:19:45 +02:00
Jellyfrog
780e74b0e1
Remove legacy password algoritms and move to Laravel standard. (#12252) 2020-10-23 09:56:17 -05:00
Hayden
774d95c118
allow nullable ospf auth (#12249)
* ospfAuthType

* update db_schema

* remove extra migrations
2020-10-21 21:07:12 -05:00
Matt Peterson
a3f8dc6499
Clarify non-x86 hardware info sources for snmpd (#12253)
* Clarify non-x86 hardware info sources for snmpd

* Clarify that ARM platforms use device tree, not SMBIOS _(maybe consider a wrapper script for this too?)_
* Non-GPS based systems can also provide lat & lon, such as Galileo or Beidou
* Clarify that Distro means Distribution

* Update SNMP-Configuration-Examples.md
2020-10-22 02:39:06 +02:00
PipoCanaja
219aec241c
More generic match of GS1900 (#12246) 2020-10-22 01:37:22 +02:00
Jellyfrog
b765b250c9
Fix sql query syntax error (#12248) 2020-10-21 23:15:47 +02:00
PipoCanaja
f796676323
bug - FDB table for GS1900-8 as well (#12244)
The 8 ports variant behaves the same as 24 and 48 ports.
2020-10-21 14:37:11 +02:00
CameronMunroe
59accd7e42
Improve Services documentation (#12226)
* Update Services.md

I updated the services page for a few of the following reasons:

* Fix placement of certain info that was better placed elsewhere.
* Adjust the documentation to inculde how to install during setup step.
* Fixed a few lines for a better feel to the wording.

* Update Services.md

Dispatcher Service notice.

* Update Services.md

dispatcher -> dispatch
2020-10-20 19:12:30 -05:00
Hayden
397a10e73f
new sensors for siteboss OS + new sensor type: percentage (%) (#11958)
* split siteboss 530 and 550 into multiple OS

* add more sensors to siteboss550 and new Percent sensor

* fix contact closure event state values

* split os polling for siteboss to siteboss530 and siteboss550

* add test unit for siteboss550, rename test unit for siteboss to siteboss530

* refactor siteboss os polling to \Librenms\OS

* implement OSPolling to Sitebos550

* force save in pollOS() to keep custom sysName during polling

* updated unit test

* update device graphs

* remove pollOS and extra save()

* siteboss550 no longer extends OSPolling

* update siteboss550 test data

* update discoverOS() to match recent os discovery changes

* styleCI changes

* fix siteboss hardware discovery; add check to OS polling if os_group .inc file exists

* collapse siteboss to single OS, implement siteboss sensors in advanced discovery

* add siteboss unit tests

* removed unneeded OS disco defs

* styleCI changes

* more styleCI changes

* split siteboss os to siteboss530 and siteboss550

* split siteboss os to siteboss530 and siteboss550

* move php polling back into yaml

* keep original siteboss OS name

* resave snmp data for siteboss OS

* resave snmp data for siteboss550 OS
2020-10-20 19:11:12 -05:00
PipoCanaja
f822567186
Fix wrong Zyxel GS1900 Q-BRIDGE replies (fdb-table) (#12230)
* handle wrong GS1900 zyxel QBRIDGE implementation
2020-10-20 19:01:17 -05:00
Heath Barnhart
e56f17e86b
Added instructions for rsyslog version 8 (#12224)
* Update Syslog.md

Added instructions for rsyslog version 8

* Update Syslog.md

Not familiar with the markup, but looking at the source file for the page Jellyfrog linked it looks correct for tabs. Does the Git preview not render them?

* Update Syslog.md

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-10-20 15:09:38 +02:00
Jellyfrog
cce6d84f39
Fix device url (#12234) 2020-10-20 14:57:56 +02:00
Jellyfrog
0a30243416
Convert VyOS to yaml (#12231) 2020-10-20 13:31:12 +02:00
Jellyfrog
0b6231be1b
Move device exist check to prevent error (#12232) 2020-10-20 13:28:03 +02:00
Jellyfrog
6416de5bd3
Add space between manufacturer and hardware (#12233)
`SupermicroX9SRL-F` => `Supermicro X9SRL-F`
2020-10-20 13:27:48 +02:00
Tony Murray
a0f91de9b2
Capture OSPF test data (#12215) 2020-10-19 09:35:41 -05:00
Yuwei Ba
fd2c1361ef
Update Telegram.php (#12228)
Return Telegram response body when failed so users will know where went wrong, bad template etc.
2020-10-19 09:27:01 -05:00
SourceDoctor
b32aa03d57
Fix return value on deleting a Device Group (#12225)
* Fix return value on deleting a Device Group

* style fix
2020-10-19 12:27:17 +02:00
PipoCanaja
7033724207
Check group os file exists before inclusion (#12227) 2020-10-19 12:23:44 +02:00
Guilherme Poletto
3753e70476
initial support for DC-UPS-48 from algcom (#12209)
* initial support for DC-UPS-48 from algom

* add snmprec files for algcom-dc-ups

* rename MIB and create json test unit

* new MIB name, recapture test snmprec and json

* remove unnecessary OS matching
2020-10-17 22:05:02 +02:00
Tony Murray
6cd42b3ee0
Fix Oki LAN OS info (#12213)
* Fix Oki LAN os info
fixes #12207

* Add test data and some bonus info
2020-10-16 15:07:29 +02:00
Gil Obradors
676b7ac50d
Add supermicro SVG logo (#12222)
* Create supermicro.svg

* Update supermicro.svg

* fix format

* Update supermicro.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-10-16 14:42:44 +02:00
Clark Chen
2f61f505ca
Fix typo cause empty data for NFS Server (#12223)
Typo causing NFS tab data aren't polling properly
2020-10-16 10:53:37 +02:00
Tony Murray
292d6a0fdb
permissions query fixes (#12220) 2020-10-15 20:38:26 -05:00
Tony Murray
0de03ad582
validate dashboard id (#12219) 2020-10-15 12:43:24 -05:00