200 Commits

Author SHA1 Message Date
Tony Murray 0ac05fda69 Bump version to 1.69 2020-11-01 21:25:18 -06:00
Tony Murray a0f91de9b2 Capture OSPF test data (#12215) 2020-10-19 09:35:41 -05:00
Tony Murray 1e4702fa4f Support multiple daily process locking backends with distributed polling (#11896)
* Implement locks in the file cache

* Replace custom locks

* implement restore lock
Used when re-hydrating

* remove legacy use statements

* Add class descriptions

* Fix style

* Default to database cache driver

* missed cache_locks table
prevent chicken-egg issue

* style fixes

* Remove custom file lock implementation

* missed items from file cache

* Update schema definition
hmm, other schema noise must be from manual modification as this is generated from a freshly migrated db.

* require predis, it is pure python, so no harm in adding

* and set predis as the default client
2020-10-07 07:36:35 -05:00
Tony Murray 90d0d46dfb Bump version to 1.68 2020-09-29 22:16:05 -05:00
Tony Murray 9b4f8931a3 Windows detect newer versions (#12164)
* Fix Window hardware info flapping

* add description

* Missing features field

* Rename hardware method

* Updated test data
2020-09-30 01:01:43 +02:00
Tony Murray 93e43d09bc Update dev:check style to use php-cs-fixer (#12132)
* Update dev:check style to use php-cs-fixer

* dont override default paths

* Update .php_cs

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-23 20:54:00 -05:00
Jellyfrog 29f45ca352 Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
Jellyfrog 0d56bbd946 Apply fixes from StyleCI (#12123) 2020-09-21 15:51:53 +02:00
Jellyfrog 82f43cb98d Apply fixes from StyleCI (#12120) 2020-09-21 15:40:17 +02:00
Jellyfrog 77c531527c Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00
Damon Reed e0a076455e Fix CiHelper function checkPythonExec to use 'pip3 install --user' and improve error message (#12097)
* Fix pip3 install function to use --user

* Update error message to reflect somethign closer to reality.
2020-09-16 00:30:50 +02:00
Jellyfrog dd23dea019 Bump version to 1.67 2020-09-03 13:17:55 +02:00
Jellyfrog f992b7dc9f Remove duplicate changelog entries 2020-08-04 14:40:10 +02:00
Jellyfrog eaed9e8195 Don't count self-merges in changelog stats 2020-08-04 14:40:10 +02:00
Jellyfrog baaabadd69 Fix for deleted github users 2020-08-04 14:40:10 +02:00
Tony Murray 9fdea8c3b5 Bump version to 1.66 2020-07-30 00:27:39 -05:00
Jellyfrog 86220eed9e Add more types to settings page (#11918)
* Add a executable type to settings page

This allow us to validate the value is a valid executable

* Add a directory type to settings page

This allow us to validate the value is a valid directory

* fixes
2020-07-21 20:51:23 -05:00
arrmo c1418c12af Correct link for Rule, Location (Alerts, and several other pages) (#11937)
- wherever generate_url is used
- does not address hostname (device), separate PR for that
2020-07-17 15:32:30 +02:00
Tony Murray 0c334f130d Fix users that set a non-array for cors (#11921)
* Fix users that set a non-array for cors
combine two Env util classes

* Used the wrong thing.
2020-07-09 15:03:12 -05:00
Jellyfrog f526ba326b Laravel 7.x Shift (#11676)
* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Shift Laravel dependencies
Add laravel/ui dependency
Use our fork of string-blade-compiler

* Shift config files

Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

Restore config header comment

* Remove duplicate named routes

* add basic trust host middleware

* Trusted proxies should be default null

* Fix missed rename

* wip

* Rename routes

* Update trustedproxy.php

* Update Kernel.php

* revert trustedproxy.php

It only accepted '*' and not ['*']

* Fix tests

fake request was causing the error

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-09 08:22:50 -05:00
Tony Murray 8a6de3ef23 Bump version to 1.65 2020-07-03 00:50:46 -05:00
Tony Murray 014928accd Release wording change (#11892) 2020-07-03 00:15:05 -05:00
Tony Murray 3ab0a92de9 catch config() error in a more deliberate way to prevent issues with future code changes. 2020-06-27 07:47:08 -05:00
Tony Murray de7d0aae97 handle config() call outside of Laravel 2020-06-27 07:47:08 -05:00
Tony Murray 0175872d87 run artisan key:generate externally 2020-06-27 07:47:08 -05:00
Tony Murray d1ceb14b9a create .env if non-existing 2020-06-27 07:47:08 -05:00
Tony Murray b1f526be48 finish conversion 2020-06-27 07:47:08 -05:00
Tony Murray 5f0388f0e3 Remove DB credentials from config.php
Better validation when config.php does not exist

Update docs and quote password

only populate legacy vars in config_to_json
drop .travis.yml config copy
remove credentials from config.php.default

Check for existance of .env instead of config.php in python scripts

legacy credential cleanup

tiny cleanups

consistent env for artisan server and artisan dusk
2020-06-27 07:47:08 -05:00
Tony Murray 27027428fa config file writing 2020-06-27 07:47:08 -05:00
Tony Murray 94a71f9f41 check for INSTALL environment var 2020-06-27 07:47:08 -05:00
Tony Murray cab235c3e9 Merge pull request #11841 from murrant/loadbalancers-tests
Loadbalancers tests
2020-06-26 13:51:50 -05:00
SourceDoctor 4e6a7291a2 Device Availability Calculation (#11784)
* Device Availability Calculation

* Travis fix

* .

* schema corrections

* flexible duration

* travis

* .

* .

* .

* .

* remove not needed code

* line Text to RRD

* update humantime

* .

* only set up again if device was marked as down

* set RRD area transparency

* save uptime also, to keep last availability as good as possible

* file description correction

* look for outages even if uptime > duration
2020-06-22 22:57:30 +02:00
Tony Murray d44ff69b99 Load Balancers test 2020-06-19 13:40:02 -05:00
Tony Murray 7334f629ba Restore SQL debug output
apparently something changed with hasListeners()
2020-06-15 22:25:10 -05:00
Tony Murray 8ca0309ebf Fix smokeping slave not found causing error (#11799) 2020-06-09 11:10:07 -05:00
Tony Murray 147ba0f00d Fix latency tab bugs (#11787)
when there is no latency data
fix smokeping error
2020-06-07 23:18:18 -05:00
Tony Murray 5c6c8844e8 Auth middleware refinement (#11767)
* auth middleware group

* dummy page for legacy php scripts instead of recursively calling init.php

* Test and fix routing scenarios

* fix api auth

* disable unused auth routes
2020-06-05 11:50:58 -05:00
Tony Murray ec50217173 More release categories (#11750) 2020-05-31 16:23:14 -05:00
Tony Murray e8dff37eef Bump version to 1.64 2020-05-31 10:48:00 -05:00
Tony Murray 4caa73089d Set primary device in module test helper (#11749)
* Set primary device in module test helper

* unneeded one
2020-05-31 10:18:54 -05:00
Tony Murray 0bf160eddf Fix dev:check os only tests (#11747) 2020-05-30 21:42:30 -05:00
Tony Murray fa12c4ca2f Fix poller enabling graphs for display (#11743) 2020-05-30 17:42:50 -05:00
Tony Murray a184035841 left accidental change (#11710) 2020-05-26 13:21:14 -05:00
Tony Murray e292cc98cc Wrong snmpsim endpoint for TravisCI pre-start (#11706)
* Wrong snmpsim endpoint for TravisCI pre-start

* Fix full check parsing
2020-05-26 13:18:27 -05:00
Tony Murray f689fcbef9 CI Helper fixes 3 (#11696) 2020-05-25 14:10:07 -05:00
Tony Murray e7d954d7df Fix dev:check fail-fast not returning error (#11672)
Fix dantherm definition
2020-05-23 14:43:41 -05:00
PipoCanaja 3c4751e3c7 Fix error breaking poller/discovery on my test machine (#11671) 2020-05-23 13:27:45 -05:00
Tony Murray fb162f16b8 dev:check Fallback to full if can't get changed file list (#11667)
* ci should fail fast

* fallback to full if can't get changed file list
mostly happens if the git clone is too shallow on travis-ci

* missed
2020-05-23 10:17:26 -05:00
Tony Murray ce21011aff Rewrite development helper to lnms dev:check (#11650)
* Refactor pre-commit to class

* docs build

* dusk check

* ci mode for checks

* full checks

* other mysql

* make other lint checks actually work
fix pylint finding

* ci is a long opt

* fix undefined index

* dusk fully working

* ask for forgiveness, not permission

* fix whitespace

* skip dusk sometimes

* Handle 3com and other os with digits

* flags instead of if else spaghetti

* convert to command

* cleanup

* missed check

* fixes

* case

* self-check :D

* argument now

* fix bugs from refactors

* another fix

* adjust file change parsing

* refactor execut a bit

* fallback to global quiet when unknown type.

* allow quiet override for specific commands

* output cleanup

* check flow

* start of tests

* file categorizer tests and fixes

* fixes and cleanup

* skipable not implemented...

* more tests, fix bugs

* more tests and cleanup

* wrong command

* fix canCheck and set env properly

* full env fix

* don't allow dusk on user's run as it will erase their db.

* fix os option

* fix whitespace

* don't need to start server

* ci doesn't like that
2020-05-22 20:27:48 -05:00
Adam Bishop 3838549748 Fix test behaviour with PHP 7.4 on Fedora 32 (#11648)
* Handle cases where the data type is hex encoded, but the data is
not actually hex encoded.

* Test data claims 4x, but is not hex encoded

* Encode the private string

* Replace 4x|<private> with 3C707269766174653E

* Re-run save test data.

Seems some of these files might have been hand edited at some point
as fields seem out of order

* Have a trap test use a mock instead of a db query
2020-05-21 08:22:55 -05:00