Commit Graph

18022 Commits

Author SHA1 Message Date
Wheel
475c079402 Ubiquiti Edgepower battery values (#12247)
* UBNT-EdgeMAX mib update

* Ubiquiti Edgepower new SNMP values

* Fix typo

* Guess test data

* Update edgeos-ep.json

* more favorable rounding

* Update edgeos-ep.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-09 00:51:22 -06:00
Jellyfrog
b7676e4cc8 Update to Composer 2 (#12263)
* Update to Composer 2

No need to roll our own checks anymore since this is now built in.
Also limit the update check to once a week.

* update

* Make Composer wrapper report correct exit code

* Update composer_wrapper.php

* re-enable extension check

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-09 00:28:07 -06:00
Patrik Jonsson
591384f321 Adding Fortigate HA checks (#12300)
* Adding Fortigate HA checks

* Fixed issues the linter had

* Moving sync checks to the poller since standalone units was marked as unsynchronized

* Whitespace lint corrections

* More whitespace linting fixes

* Removing haState since it only showed the state of one device in the cluster.

* Adding a third state fo sync where it will show a warning if a device that is part of a cluster does not have a peer

* Updating snmp test data for fortigate 1500d

* Changing numerical oids to names

* Restoring the original 1500d json file

* Adding cleaned test data

* Removing tags to see if that makes Travis happier

* Removing duplicate rows in SNMP data

* Take this Travis!

* Pretty please Travis?

* Fourth time's a charm?
2020-11-09 00:07:45 -06:00
SourceDoctor
76ab814647 only add new outage entry if Device status changed (#12309)
* only add new outage entry if Device status changed

* .
2020-11-08 22:15:29 -06:00
PipoCanaja
2b5da1ef05 VRP NAC polling optimisation (#12279)
* Only poll the OIDs needed

* style
2020-11-07 22:31:04 -06:00
Jellyfrog
8977bb50ad Remove some unused files (#12307) 2020-11-07 22:00:47 -06:00
Jellyfrog
75230d344b Remove incorrect mib_dir (#12306) 2020-11-08 00:55:42 +01:00
Hayden
e34b6877fd Add OSPF cost (TOS) (#11929)
* add OspfTos model to include ospfIfMetricEntry data (ospf interface cost)

* remove WIP comment

* add new model and db migration

* update OspfTos relationship to OspfPort and correct cleanup call

* add "Cost" to device\routing\ospf web UI interface

* updated db-schema test unit

* updated db_schema to resolve conflicts

* removed tos metrics from rrd ospf stats due to rrdcached errors

* reorder db_schema.yaml to match upstream

* readd ospf_tos to db_schema

* styleCI changes

* Capture OSPF test data

* add ospf unit tests for iosxr

* ospfAuthType

* update db_schema

* remove extra migrations

* add ospf tests for iosxe

* add ospf test to ios

* merge ospf_tos into ospf_ports

* update db_schema

* update ospf module unit tests for ios, iosxe, iosxr

* fix ospf_ports ospfIfMetricStatus column type

* update db_schema

* more efficient dropColumn in down() migration

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-07 09:27:25 -06:00
averzicco
f7f2688125 Fix bgp polling for BGP4-MIB devices (#12301)
* Fix bgp polling

* Change polling logic for BGP4-MIB devices

* make int rollover easier to read

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-07 09:12:09 -06:00
Walter Sonius
ee739e21fe Extend Debian instructions with Raspberry Pi OS (#12302)
* Extend Debian instructions with Raspberry Pi OS

The Debian 10 part of the install instructions for LibreNMS just need a different bash location to be compatible on Raspberry Pi OS, formerly known as Raspbian which is based on Debian 10 Buster.

* Update Install-LibreNMS.md

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-11-07 02:01:56 +01:00
joseUPV
e781537b56 Ignore aos6 phantom fan (#12303) 2020-11-07 01:56:25 +01:00
Tony Murray
25722bbbd5 Faster initial database creation (#12297)
* Faster initial database creation
Add db dumps to improve initial db migration
On my test system 13s -> 7s, a 46% reduction.
Should help out a lot on systems like RPi

* lnms schema:dump command

--snapshots saves db snapshots, otherwise it saves the yaml

* fix style

* fix timezones...

* not working with in-memory db yet
remove build.sql
2020-11-06 01:19:15 +01:00
ottorei
03c950af8c Update F5 MIB-files (#12296) 2020-11-05 17:11:41 +01:00
abrezinsky
240edd2143 Use a proxy server for the PagerDuty transport. (#12294)
* Use a proxy server for the PagerDuty transport.

We don't use the get_guzzle_proxy() function since tcp:// doesn't work
with all of the HTTP transports that Guzzle supports.  Instead we use
the standard get_proxy() function.

Tested against Squid

* formatting only
2020-11-04 15:03:48 +01:00
Jellyfrog
28591c0330 Split VMware into seperate OS (#12243)
* Split VMware into separate OS

* Bump VMware MIBs
2020-11-03 21:27:23 +01:00
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 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