96 Commits

Author SHA1 Message Date
Tony Murray cf897d278e Bump version to 24.9.0 2024-09-29 16:47:37 -05:00
Jellyfrog 77fa7573cf Revert "Convert Config to a singleton (#16349)" (#16382)
This reverts commit f1e7a218f0.
2024-09-10 09:59:20 +02:00
Tony Murray f1e7a218f0 Convert Config to a singleton (#16349)
* Convert Config to a singleton
Continuation of #14364 by @Jellyfrog
This time, make the old class a shim for the facade.  Will update references in a separate PR.

* Remove logging config call

* Apply fixes from StyleCI

* Fix bad Git constructor call

* Fail on config table does not exist instead of throw exception

* Inline LibrenmsConfig::isRegistered()

* Debug call in case there are more issues,
remove before merge.

* Fix up config tests

* Allow config cache controlled by CONFIG_CACHE_TTL (disabled by default for now)

* Enable config cache for tests

* Remove debug statement and deprecation phpdoc

* Apply fixes from StyleCI

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-09-09 18:48:07 +02:00
Tony Murray f6fe0cf2da Bump version to 24.8.0 2024-08-15 15:14:10 -05:00
Tony Murray f3227c3727 Bump version to 24.7.0 2024-07-17 01:35:08 -05:00
Tony Murray a717e084f0 Bump version to 24.6.0 2024-06-16 11:23:37 -05:00
Tony Murray 2a42bf714f Bump version to 24.5.0 2024-05-19 22:53:54 -05:00
Tony Murray 9088a34299 Bump version to 24.4.0 2024-04-19 20:52:35 -05:00
Tony Murray af2f953c7f Bump version to 24.3.0 2024-04-01 10:18:44 -05:00
Tony Murray f362746224 Bump version to 24.2.0 2024-02-27 12:54:10 -06:00
Neil Lathwood 421f2c7d38 Bump version to 24.1.0 2024-01-07 15:49:52 +00:00
Tony Murray 54ff1d7e63 Bump version to 23.11.0 2023-11-16 20:57:41 -06:00
Tony Murray c22b74d46b Bump version to 23.10.0 2023-10-26 22:47:36 -05:00
Tony Murray bfc82a5383 Bump version to 23.9.1 2023-09-18 20:59:06 -05:00
Tony Murray 4b98bd7607 Bump version to 23.9.0 2023-09-15 07:29:15 -05:00
Tony Murray 69297c9e91 Bump version to 23.8.0 2023-08-19 09:13:28 -05:00
Tony Murray 6edb3b5046 Bump version to 23.7.0 2023-07-16 23:42:41 -05:00
Tony Murray eaf0253412 Bump version to 23.6.0 2023-06-23 08:25:03 -05:00
Jellyfrog 2b3575a5e9 Laravel 10.x Shift (#14995)
* Apply code style

* Remove explicit call to register policies

* Shift core files

* Shift config files

* 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.

* Bump Laravel dependencies

* Add type hints for Laravel 10

* Shift cleanup

* wip

* wip

* sync translation

* Sync back config

* Public Path Binding

* QueryException

* monolog

* db::raw

* monolog

* db::raw

* fix larastan collections

* fix phpstan bug looping forever

* larastan errors

* larastan: fix column type

* styleci

* initialize array

* fixes

* fixes

---------

Co-authored-by: Shift <shift@laravelshift.com>
2023-05-24 22:21:54 +02:00
Tony Murray 02896172bd Bump version to 23.5.0 2023-05-19 10:32:19 -05:00
Tony Murray d6e1c6ee5f Bump version to 23.4.0 2023-04-06 18:52:52 -05:00
Tony Murray c91b9b64d7 Bump version to 23.2.0 2023-02-23 16:27:42 -06:00
Tony Murray 040ebcf917 Bump version to 23.1.0 2023-01-24 10:43:30 -06:00
Tony Murray 8b4263f2f3 Bump version to 22.12.0 2022-12-28 12:26:21 -06:00
Tony Murray bea0389938 Bump version to 22.11.0 2022-11-24 00:01:26 -06:00
Tony Murray ddf24809d4 Bump version to 22.10.0 2022-10-17 23:47:05 -05:00
Tony Murray e4451714e2 version and git helper improvements (#14412)
* Fix up version and git helpers
Improve method names
Move all git calls into the git helper
Allow runtime and external cache of results where appropriate
Consolidate version headers for discovery, poller, and validate

* Style fixes

* improve consistency in git calls

* fix style

* don't send name inconsistently

* Improve database versions

* No need to cache Version it is not used more than once currently.
2022-10-02 00:41:56 -05:00
Tony Murray f60b6788d3 Cache version data (#14404)
* Cache version data
Calling cli commands can be expensive, cache the results.

* style fixes

* Fix pre-laravel usage

* fix lint
2022-09-28 23:23:32 -05:00
Tony Murray dbcee24749 Bump version to 22.9.0 2022-09-21 01:51:22 -05:00
Tony Murray ff7d89e5e4 Bump version to 22.8.0 2022-08-19 20:34:31 -05:00
Mark Nagel 3309750f35 replace git show --no-patch option with --quiet (#14160)
* replace git show --no-patch option with --quiet

Older versions of git do not support --no-patch or -q, but both older and modern versions support --quiet.

* Merge #14161

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-07-30 14:57:26 +02:00
Jellyfrog 670f964e98 Validate: use "database version" instead of "mysql version" (#14158)
* Validate: use "database version" instead of "mysql version"

* wip

* wip
2022-07-29 11:36:18 -05:00
Tony Murray 8508710e62 Stats: Collect OS distro and LibreNMS version (#14138)
* Stats: Collect OS distro and LibreNMS version

Add os distro/version and LibreNMS version to stats collection.

To view stats: https://stats.librenms.org

* style/lint fixes

* Put debug where it will work

* One call sends int, which is ok
2022-07-29 08:53:41 -05:00
Tony Murray 747d6f288c Bump version to 22.7.0 2022-07-20 21:53:17 -05:00
Jellyfrog 5980d9d042 Use --no-patch instead (#14047) 2022-06-20 22:59:15 +02:00
Tony Murray 3724aaa836 Bump version to 22.6.0 2022-06-14 21:53:42 -05:00
Tony Murray 1d442fa5c2 Fix an issue when getting the local version from git (#14020)
* Fix an issue when getting the local version from git
If the process is not the owner of the git repo, an unsafe directory error is thrown.

* fix style
2022-06-10 16:19:40 -05:00
Tony Murray 5a4fd0bb13 Bump version to 22.5.0 2022-05-21 08:45:24 -05:00
Tony Murray acaa0695f4 Fix version check error (#13981) 2022-05-14 08:08:38 -05:00
Tony Murray 014213680f Move Config loading to a service provider (#13927)
* Move Config loading to a service provider
That way other service providers can depend on it
Move various random listener registrations into the EventServiceProvider
Various startup cleanup

* Config::persist Set live variable before persisting incase db update fail

* Disable strict mode for legacy code (init.php)

* Disable debug after os test data is gathered

* remove Eloquent::boot it is never used

* remove Eloquent::version

* lint fixes

* style fixes

* there is no c_echo here
2022-04-22 19:12:07 -05:00
Tony Murray 15feac7297 Bump version to 22.4.0 2022-04-21 21:13:47 -05:00
Tony Murray 6ad5fdada5 Validate fixes (#13935)
* Fix version check abort when something goes wrong

* more generic message when failing to parse ajax
2022-04-20 23:10:36 -05:00
Tony Murray 0a84098211 Port Validation Page to Laravel (#13921)
* Revamp validate web page
 to load page then validate, instead of validate then load page

* style fixes

* lint cleanups

* fixes

* translations and a couple fixes

* style fixes

* move result serialization into the class.
2022-04-14 11:22:40 -05:00
Tony Murray 22209732dd Bump version to 22.3.0 2022-03-17 23:00:10 -05:00
Dan Langille 0c08670acc Bump version to 22.2.1 (#13798)
* Bump version to 22.2.0

This was missed?

* Update Version.php

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-02-18 09:12:46 +00:00
Tony Murray e1908f26d6 Bump version to 22.1.0 2022-01-23 08:47:41 -06:00
Tony Murray b27efefb91 Bump version to 21.12.0 2021-12-21 19:57:55 -06:00
Tony Murray c79b187d72 Poller rewrite (Try 2) (#13525)
* core WIP

* try to finish up

* trim space too
and a couple of cleanups

* update test data

* put escapes back

* another net-snmp difference

* correct copy paste error

* WIP

* Use new code YAY

* a tiny bit more

* Kind of working

* Handle manual modules correctly

* convert core to modern module

* Only save metrics if modules is not overridden

* correct module exists check

* database error handling

* debug handling

* restore bad changes

* Introduce Actions
 RunAlertRulesAction
 UpdateDeviceGroupsAction

* tweaks to output

* Fix some issues in outside code

* Style fixes

* fixes to module status checks

* typehints!

* Use logger only and DI

* OS module not named correctly

* Work on quiet output a bit more

* generically don't change output when disabling debug if the driver is already stack

* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction

* restore legacy os module shim

* use the new poller code for tests

* PollingDevice event

* Fix some issues and enable/disable error reporting around legacy modules

* typehints

* fully update baseline

* Use Process for version commands so we don't leak debug output.

* don't detect rrdtool version in ci every time

* style fixes

* Warning fixes

* more fixes

* re-update baseline

* remove diff noise

* fix up alerts

* Catch exceptions in device ip lookup

* Revert accidental snmp.inc.php poller target change
(should have been ?: not ??)
2021-11-17 19:23:55 -06:00
Tony Murray f8764ddcb5 Revert "Poller command rewrite (#13414)" (#13524)
This reverts commit 1752d1efd4.
2021-11-16 21:40:29 -06:00
Tony Murray 1752d1efd4 Poller command rewrite (#13414)
* core WIP

* try to finish up

* trim space too
and a couple of cleanups

* update test data

* put escapes back

* another net-snmp difference

* correct copy paste error

* WIP

* Use new code YAY

* a tiny bit more

* Kind of working

* Handle manual modules correctly

* convert core to modern module

* Only save metrics if modules is not overridden

* correct module exists check

* database error handling

* debug handling

* restore bad changes

* Introduce Actions
 RunAlertRulesAction
 UpdateDeviceGroupsAction

* tweaks to output

* Fix some issues in outside code

* Style fixes

* fixes to module status checks

* typehints!

* Use logger only and DI

* OS module not named correctly

* Work on quiet output a bit more

* generically don't change output when disabling debug if the driver is already stack

* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction

* restore legacy os module shim

* use the new poller code for tests

* PollingDevice event

* Fix some issues and enable/disable error reporting around legacy modules

* typehints

* fully update baseline

* Use Process for version commands so we don't leak debug output.

* don't detect rrdtool version in ci every time

* style fixes

* Warning fixes

* more fixes

* re-update baseline

* remove diff noise

* fix up alerts
2021-11-16 16:59:46 -06:00