Commit Graph

18300 Commits

Author SHA1 Message Date
SourceDoctor
b162eff5ee
Global Settings - Discovery Network (#12334)
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 18:08:46 +01:00
SourceDoctor
fde1b1ab43
Interface description types to Global Settings (#12291)
* Special Ports to Global Settings

* customers_descr type fix

* add mix-manifests - move section

* move to webui :P

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 11:44:33 +01:00
Meh
c53dec796e
Added devices unpolled alert rule template (#12321)
* Update alert_rules.json

Added devices unpolled alert template

* Update alert_rules.json

* Use coalesce to provide default value

* Update alert_rules.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-20 22:22:45 -06:00
ottorei
a7e65be09d
Bugfix: SQL error with alerts search bar (#12329)
* Fix SQL-error on search bar

* restore escapes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-20 22:13:59 -06:00
hartred
c66d6493fa
SNR-ERD add support RSensor-H/T/P (#12328)
* SNR-ERD add support RSensor H/T/P

yaml

* SNR-ERD add support RSensor H/T/P

test json

* SNR-ERD add support RSensor H/T/P

snmpsim
2020-11-20 21:25:46 -06:00
SourceDoctor
a3470bb06e
Custom_descr Ports - configurable Icons (#12331)
* Custom_descr Ports - configurable Icons

* fixes

* fixes
2020-11-20 20:59:54 -06:00
SourceDoctor
04f29c2717
Fix Device Dependency Count Limitation (#12332) 2020-11-20 20:58:08 -06:00
Jellyfrog
820cf1dcca
Fix disabling of built-in commands when using ./lnms (#12308)
* Fix disabling of built-in commands when using ./lnms in production

It wasn't working correctly after Laravel upstream changes

* Use nunomaduro/laravel-console-summary

* fix command name

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-19 22:51:20 +01:00
Tony Murray
aded238299
Do not run validate.php as root (#12327) 2020-11-19 22:41:32 +01:00
SourceDoctor
0ede8a2c1d
API - Allow Hostname on add/remove Device Dependencies (#12319)
* API - Allow Hostname on add/remove Device Dependencies

* style fix

* change device placeholder name
2020-11-18 20:23:07 -06:00
Tony Murray
8ee9d0cfb7
Fix model observer registering multiple times (#12323)
* Fix model observer registering multiple times

* remove unused import
2020-11-18 20:21:04 -06:00
SourceDoctor
1652d17ff4
Global setting ad domain (#12326)
* API - Allow Hostname on add/remove Device Dependencies

* style fix

* change device placeholder name

* Global Settings - add missing Active Directory Domain field

* cleanup

* cleanup

* cleanup

* cleanup
2020-11-18 20:18:11 -06:00
SourceDoctor
3daacc5e1a
Sort Alert Transport by Name (#12318) 2020-11-17 23:08:48 -06:00
SourceDoctor
deae23cca7
Mark acknowledged Alerts in Alert Rule List (#12320)
* Mark acknowledged Alerts in Alert Rule List

* style fix
2020-11-17 22:28:57 -06:00
HalianElf
498e0be319
Update regex for vCenter 7 (#12316)
It looks like VMware dropped the Appliance for vCenter 7 since it only comes as an appliance now. Example: `VMware vCenter Server 7.0.1.00100 embedded build 17004997 VMware, Inc x86_64`
2020-11-17 00:53:46 +01:00
MarlinMr
a95f098ee8
More secure example configuration (#12317) 2020-11-17 00:52:15 +01:00
hartred
3ffb797705
Add support new os SNR-ERD (#12315)
* Add support new os SNR-ERD

mib files

* Add support new os SNR-ERD

discovery os

* Add support new os SNR-ERD

support sensors

* tests files

* tests json
2020-11-14 20:24:50 +01:00
Tony Murray
f4ea49e38e
Update Distributed-Poller.md 2020-11-12 07:40:02 -06:00
RobJE
e1497ecf0b
shellcheck (#12258)
* remove unneeded semi-colons at end of line

* fix SC2206: Quote to prevent word splitting/globbing

* fix SC2164: Use 'cd ... || exit' in case cd fails

* fix SC2004: $/${} is unnecessary on arithmetic variables.

* fix SC2155: Declare and assign separately to avoid masking return values.

* fix SC2124: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.

* fix SC2059: Don't use variables in the printf format string. Use printf "..%s.." "$foo".

* fix SC2076: Don't quote rhs of =~, it'll match literally rather than as a regex.

* fix SC1090: Can't follow non-constant source. Use a directive to specify location.

* fix SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.

* SC2223: This default assignment may cause DoS due to globbing. Quote it.

* fix SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

* fix SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n"

* better handling of branch comapre

* add missing local ver_73 from merge

* remove duplicate definition
2020-11-11 23:21:15 +01:00
Keryazmi
565dc3c445
New device support named BTI SA-800 Series (#12264)
* New device named bti800

Support new device for model bti sa-805

* Create bti800.yaml

* Create BTI8xx-MIB

* Create BTI8xx-SYSTEM-MIB

* Create BTI8xx-TC-MIB

* Create BTI8xx-INTERFACE-MIB

* Create BTI8xx-SFP-MIB

* Create bti800.inc.php

* Create bti800.inc.php

* Create bti800.inc.php

* Create bti800.snmprec

* Create bti800.json

* OS icon for BTI800

* Update bti800.yaml

Change mib folder name 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-MIB to mibs/bti/BTI8xx-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-INTERFACE-MIB to mibs/bti/BTI8xx-INTERFACE-MIB

Change directory named from 'bti800' to 'bti'

* Rename mibs/bti800/BTI8xx-SFP-MIB to mibs/bti/BTI8xx-SFP-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-SYSTEM-MIB to mibs/bti/BTI8xx-SYSTEM-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-TC-MIB to mibs/bti/BTI8xx-TC-MIB

Change directory named 'bti800' to 'bti'.

* Create bti800.yaml

Added system temperature and transceiver temperature for BTI800.

* Delete bti800.inc.php

System temperature and transceiver temperature code convert to yaml file locate at /includes/definitions/discovery/bti800.yaml

* Update bti800.inc.php

Add missing code at line 20.

* Update bti800.inc.php

* Update bti800.yaml

* Delete bti.svg

* Replace bti.svg to bti.png

* Update bti800.snmprec

* Update bti800.json

* Update bti800.json

* Update bti800.json

* Update bti800.yaml

* Update bti800.inc.php

Change call for each current Tx and Rx value by using pre_cache() function instead using snmp_get() function for each value to return.
2020-11-11 23:13:55 +01:00
Denny Friebe
9977fc46df
Rittal CMC III: Add device support for PU and PU Compact (#12268)
* Rittal CMC III: Add device support for PU and PU Compact

* Rittal CMC III: Readd accidentally removed sysObjectID

* Rittal CMC III: Some small fixes

* Rittal CMC III: Use device serial number instead of the internal device id for state index naming
- version, hardware and serial is now read via yaml
- update test files

* Rittal CMC III: Check if the serial number is available

* Rittal CMC III: Update test data

* Rittal CMC III: Update unset

* Rittal CMC III: Remove space in yaml
2020-11-11 23:11:50 +01:00
ospfbgp
ef7fd466c3
Add support for new Extreme VSP/VOSS models (#12273)
* Update voss.yaml

* Update xos.yaml

* Update voss.yaml

* Update xos.yaml

* Update voss.yaml

* Update voss.yaml

* Update voss.yaml

* Update xos.yaml

* Update boss.yaml

* Update voss.yaml

* Update boss.yaml

* Update voss.yaml
2020-11-11 23:09:53 +01:00
Hans Erasmus
904667def8
Update distributed poller documentation (#12312)
Because of https://github.com/librenms/librenms/pull/11896 I thought it would be a good idea to update the docs as well.
2020-11-11 23:05:02 +01:00
ottorei
f261abac59
Update junos MIB-files (#12313) 2020-11-11 23:01:24 +01:00
Jellyfrog
cfd9dce620
Convert Virtual Machine pages to Laravel (#12287)
* Convert Virtual Machine pages to Laravel

* wip

* wip

* wip

* wip

* wip

* wip

* delete

* wip

* wip

* move powerStateLabel
2020-11-11 01:15:20 +01:00
SourceDoctor
ac5920f45c
OSPF View Open/Close Button (#12311)
* OSPF View Open/Close Button

* style fix

* style fix
2020-11-10 10:28:39 -06:00
SourceDoctor
be3853f885
Fix Network Map Device Group Highlighting (#12290)
* Fix Network Map Device Group Highlighting

* style fix

* change parameter fallback

* change if clause
2020-11-09 07:48:03 -06:00
Tony Murray
8f3b08721a
fix customers_descr config definition (#12310) 2020-11-09 10:30:25 +01:00
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 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