Commit Graph

19737 Commits

Author SHA1 Message Date
Shift
944e33f9bc Use <env> tags for configuration
`<env>` tags have a lower precedence than system environment variables making it easier to overwrite PHPUnit configuration values in additional environments, such a CI.

Review this blog post for more details on configuration precedence when testing Laravel: https://jasonmccreary.me/articles/laravel-testing-configuration-precedence/
2022-11-09 16:33:43 +01:00
Shift
a05797de4e Bump Laravel dependencies 2022-11-09 16:33:43 +01:00
Shift
036338fe85 Default config files
In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
2022-11-09 16:33:43 +01:00
Shift
ced9b57d4a Shift config files 2022-11-09 16:33:43 +01:00
Shift
7b65cef6bf Convert deprecated $dates property to $casts 2022-11-09 16:33:43 +01:00
Shift
ec84d44d10 Convert route options to fluent methods
Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods.
2022-11-09 16:33:43 +01:00
Shift
43949c97b3 Remove unnecessary $model property 2022-11-09 16:33:43 +01:00
Shift
bb974b24f6 Convert optional() to nullsafe operator 2022-11-09 16:33:43 +01:00
Shift
b83520bc58 Shift core files 2022-11-09 16:33:43 +01:00
Shift
c764df5d55 Upgrade to Flysystem 3.0 2022-11-09 16:33:43 +01:00
Shift
8a7f13c055 Streamline $commands property 2022-11-09 16:33:43 +01:00
Shift
09aad802e2 Remove fruitcake/laravel-cors dependency 2022-11-09 16:33:43 +01:00
Shift
555616fbe8 Shift registered middleware 2022-11-09 16:33:42 +01:00
Shift
a67552dc63 Move resources/lang folder 2022-11-09 16:33:42 +01:00
geg347
96c7e7166e
Adding device's field in get_alert_rule and list-alert-rules API function (new) (#14481)
* Adding device's field in get_alert_rule and lis-alert-rules API function

* Converting SQL request for list/get_alert_rules to Eloquent (thanks a lot to Murrant)

* Manually added #14500 to pass pipeline

* Fixing StyleCI error + trying to fix PHPStan errors

* Trying to fix PHPStan errors (part 2)
2022-11-09 08:21:41 -06:00
Tony Murray
b9d8a7c33c
Improved AIX os information collection (#14595)
* Improved AIX os information collection

* Fix-up merged data

* remove baseline
2022-11-09 12:04:56 +01:00
Jellyfrog
71d740770b
Remove Log::event (#14526)
* Remove Log::event

Use the Eventlog class directly instead

* wip

* wip

* wip

* Apply fixes from StyleCI

* Update Eventlog.php
2022-11-09 09:47:19 +01:00
Tony Murray
0e9bb04071
API restore ability to update purpose and override_sysLocation (#14596)
fixes #14538
2022-11-08 18:22:37 +01:00
fufroma
7ca41179bd
Disable SNMP Bulk for Delta UPS devices (#14599)
Some devices like the Delta Electronics Amplon RT-2K need SNMP Bulk to be disable.
2022-11-08 18:22:20 +01:00
Skylark
49bbc57427
Documentation for observium Migration (#14601)
Blog no longer exist, these are the original instruction with minor adjustments rescued from way back machine.
Note: picture are missing
2022-11-08 18:21:00 +01:00
Talk Straight Ltd
9826fa9089
feat: Add sortorder parameter to list_logs (#14600) 2022-11-08 18:20:34 +01:00
PipoCanaja
b807fd526b
Bug - rrd_def and rrd file definition issue (#14597)
rrd_dev striked again :)
2022-11-07 21:28:16 +01:00
Tony Murray
94b86e7e7e
More inclusive Cisco SB os detection (#14594) 2022-11-07 14:06:31 -06:00
Zane C. Bowers-Hadley
8511611f64
add HV Monitor, a generic means for monitoring hypvervisors (#14218)
* add HV::Monitor support

* document hv monitor

* add HV Monitor tests

* style cleanup

* fix a few missed style items

* test fix

* more test cleanup

* more minor test tweaks

* more test cleanup

* more test tweaking

* test ordering fix all done... hopefully

* more test cleanup

* minor formatting change
2022-11-07 13:35:48 -06:00
Tony Murray
9d3d81bb11
IP Infusion OcNOS basic detection (#14588)
* IP Infusion OcNOS basic detection

* add test data

* add os data
2022-11-07 13:09:33 -06:00
Tony Murray
0801af7a81
Consolidate and improve snmptranslate usage (#14567)
* Consolidate and improve snmptranslate usage

* Fix style

* lint fixes

* fix typo

* allow multiple mib directories

* Only add mib if it is not already set

* oid first, in case we have key length issues

* if there is a full oid, don't add other mibs

* debug in ci

* more debug in ci

* better debug in ci

* remove debug

* Use numeric index

* revert dlink change

* Don't add -On twice

* unit tests and hopefully better heuristics

* remove dump and add one more set of tests

* style fixes

* handle bad input in old functions

* shortcut whole snmp_translate function
2022-11-07 12:00:47 -06:00
PipoCanaja
70524b1e9d
fix array (#14564) 2022-11-07 07:10:20 -06:00
Tony Murray
9cb6e7b665
Fix port neighbors missing (#14586)
Inverted check when fixing another bug
2022-11-06 17:06:10 -06:00
mabra94
a01e8188d3
Timos - Improve SAP stats graphing (#14534)
* Update Timos.php

Adding InProf and HiPrio counters to allow proper SAP Stats graphing

* Update Timos.php
2022-11-06 16:22:12 -06:00
fuzzbawl
070caefbdc
Clarify Dispatcher-Service.md for systemd (#14575)
There are two systemd service files suggested for use, only one should be used. My changes clarify the usage and adjust the librenms-watchdog.service to install as librenms.service as that appears to be the intention from #12188
2022-11-06 10:53:21 -06:00
PipoCanaja
8760454ad8
Bug in Ciscowlc AP graphs definition (#14585) 2022-11-06 04:03:49 +01:00
Tony Murray
26318dc4b3
Improve trap testing (#14546)
* Improve trap testing
Add helper log() to Trap
Avoid saving to the database at all

* style

* Move all traps to $trap->log()

* Update tests

* Lint and style fixes

* Use correct partial mock call

* more style

* Add docs

* debug in ci

* use the correct log function....................

* all, I guess

* not the first??

* 3rd?

* use event_id to order
2022-11-05 14:43:54 -05:00
Bierchermuesli
7f3301caa4
Device - Basic hatteras dslam integration (#14115)
* basic hatteras dslam integration

* snmprec and json test files

* fix HN4000e variant

* add hn4000e variant

* logo and yaml fixes

* change type in test file

* inexistent(?) disco module removed: route

* Update hatteras.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-11-05 14:43:23 -05:00
Jellyfrog
009d69a48d
Use Collection instead of collect() (#14527)
* Use Collection instead of collect()

* wip
2022-11-05 10:04:36 +01:00
Tony Murray
e5e169358f
SnmpQuery Handle empty oids in get more gracefully (#14577) 2022-11-05 00:38:20 -05:00
Tony Murray
78d6ed49ee
Fix some icons (#14584)
fa-info icons, update to FA6 style
2022-11-04 23:13:36 -05:00
Tony Murray
35bea945ba
SnmpQuery fix mib directory order (#14580) 2022-11-04 23:12:56 -05:00
Tony Murray
1f1efa55f2
Add snmp_flags and tips on string oids to the docs (#14579)
* Add snmp_flags and tips on string oids to the docs

* refinements, strongly suggest yaml
2022-11-04 20:22:50 -05:00
Tony Murray
6cbe6fde4f
Mock astext (#14581)
* Mock astext
avoid dns failures

* whitespace

* fix arista

* restore test data except astext

* restore test data except astext

* Full fresh run

* Move DI call into class
2022-11-05 01:18:52 +01:00
Tony Murray
126696e26b
Fix APC current divide by zero (#14578) 2022-11-04 11:18:29 -05:00
mprins-RAM
bca7591084
Added Fortigate SD-WAN Health checks (#14456)
* Added Fortigate SD-WAN Health checks

* Add unit test

* Fix for displaying user description when F2A isnt used

* Revert "Fix for displaying user description when F2A isnt used"
This reverts commit d9f170d7e6.

* Fix for displaying user description when F2A isnt used

* Fixing comments

* Requested changes, with modified tests

* adding the correct tests

* fix tests

* fix tests

* Testing issue resolved

* fixing tests
2022-11-04 10:41:06 -05:00
otkd
0f34c144cf
Update license section of readme (#14571)
Bumped year to 2022
2022-11-04 01:39:17 +01:00
Tony Murray
539ef9ff90
Fix graph errors wrong content type (#14574)
Some code was returning too soon and messing up the return type
Other code was simply not setting it
2022-11-03 15:07:17 -05:00
Tony Murray
95e81a53a8
Fix device bits overview when no ports are included (#14573) 2022-11-03 13:29:17 -05:00
Tony Murray
2fb81ce429
Fix graph previous period getting partially applied (#14572) 2022-11-03 12:33:29 -05:00
Santiago Z
24c36ffcf4
[About] Open Laravel and RRDtool link in new tab (#14568) 2022-11-03 15:31:39 +01:00
Tony Murray
511e345321
API graphs, variable whitelist (#14552)
* API graphs, variable whitelist
Restore several missing parameters that relied on graphing code fetching from $_GET directly.
Whitelist valid parameters to set on the request get
Move common parameter handling into common code

* Fix style

* Include previous
2022-11-03 01:08:52 -05:00
Tony Murray
0c365d08e3
SnmpQuery numeric accept a boolean (#14565) 2022-11-02 18:50:46 -05:00
PipoCanaja
bd4c2d70fb
McAfee Web Proxy with COUNTER rrd_type on sensors (#14529)
* webGw1

* rrd_type for mcafeewebgateway.yaml

* update tests
2022-11-02 18:45:52 -05:00
PipoCanaja
ce6eaadc2a
More Replacement Capabilities for sensor index computation (#14522)
* More Replacement Cap.

style

* more compact

* fix mni.yaml

* too compact, revert

* quantastor

* str_replace was never matched
2022-11-02 16:54:40 -05:00