Commit Graph

18415 Commits

Author SHA1 Message Date
Tony Murray
61c89794e4 Remove debug globals (#12811)
* Remove $debug global
and $vdebug global
makes these variables more accessible and protects from collisions.

* the on boot set sends application as the first parameter, just handle that

* Relocate other debug related functions

* Log debug to stdout

* Wrong output

* remove stupid constants

* Fix lint and style issues
2021-04-29 22:42:18 -05:00
dependabot[bot]
2cdd762656 Bump laravel/framework from 8.35.1 to 8.40.0 (#12814)
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.35.1 to 8.40.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.35.1...v8.40.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 01:17:03 +02:00
dependabot[bot]
5bbe2e927c Bump composer/composer from 2.0.11 to 2.0.13 (#12813)
Bumps [composer/composer](https://github.com/composer/composer) from 2.0.11 to 2.0.13.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.0.11...2.0.13)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 00:30:44 +02:00
dependabot[bot]
f53476558f Bump rmccue/requests from 1.7.0 to 1.8.0 (#12812)
Bumps [rmccue/requests](https://github.com/rmccue/Requests) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/rmccue/Requests/releases)
- [Changelog](https://github.com/WordPress/Requests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rmccue/Requests/compare/v1.7.0...v1.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 00:29:15 +02:00
Kevin Zink
193a102b4e Update Plugin-System.md (#12810)
Have to be a static function. Throws execption since update to PHP8
2021-04-29 09:41:15 -05:00
Jellyfrog
89d9696fe5 Bump laravel/dusk (#12808) 2021-04-29 06:33:34 -05:00
Jellyfrog
76803c2acc Make applications work with rrdcached (#12807) 2021-04-28 22:00:32 -05:00
Tony Murray
526bc695d5 Alert rule delay/interval empty = 0 (#12804)
The alert rule delay was falling back to the default delay of 300s if the input box was empty.   Most people would assume empty = 0, so make it match user's expectations.
2021-04-28 15:31:45 -05:00
Tony Murray
3401013477 Fix docs custom graph rrd functions (#12803) 2021-04-28 09:45:36 -05:00
Tony Murray
7de808a4e8 Revert "RRD Graph optimization (#12735)" (#12805)
This reverts commit 2833d935e0.
2021-04-28 09:07:31 -05:00
Tony Murray
2833d935e0 RRD Graph optimization (#12735)
* RRD Graph optimization
Do not use temporary files to generate graphs
Don't start up a process to pipe commands to, just run the command
Error image improvements

* fix style issues
2021-04-28 05:28:07 -05:00
martinberg
33c7151763 Additional data collection for GAIA (#12713)
* Added support for GAIA logserver/firewall lograte, raid state and type, logserver state and testdata, firewall packet stats and connections stats

* Fixed typo

* Added testdata

* Fixed typo

* Changed some faulty strings to integers

* Added more sensors. License, HA states and Updates checks

* Added testdata

* Using snmp_get_multi. Cleaner code

* Fix rrd function usage

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-28 05:19:17 -05:00
SourceDoctor
ea75435990 Filter Ports out by Interface Type (#12590)
* Filter Ports +out by Interface Type

* style fix

* style fix

* .

* .

* change code

* .

* move filter to main filter function

* reduce to bad_iftype in settings
2021-04-27 21:43:52 +02:00
paulierco
f355b2a3b5 Adjust Alcatel-Lucent aos7 (#12766)
* fix aos7 yaml

* fix aos7 yaml

* fix tests

* fix tests2

* trying to fix tests3

* Update aos7_6900-x20.json

* add new tests

* some changes

* miss this

* again

* again

* again

* again

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-27 10:02:17 -05:00
Jellyfrog
ae04b7d6db Point device/feature requests to community site (#12797)
* Point device/feature requests to community site

* Update bug_report.md
2021-04-27 07:40:32 -05:00
Tony Murray
ebadcbc8af Enable config:set to set variables inside a nested array of settings (#12772)
* Enable config:set to set variables inside a nested array of settings
Re-index arrays when forgetting a value from a sequential numerically indexed array

* cleanup
2021-04-26 21:03:03 -05:00
Tony Murray
7510224ead Fix #12793 (#12798) 2021-04-26 20:59:21 -05:00
Bennet Gallein
5576847c26 fix: fixing consistency accross api endpoints (#12795) 2021-04-26 21:30:30 +02:00
Tony Murray
e50590edc3 Firebrick sensor rework (#12783)
* WIP

* wrong test data, corrected.

* yaml and more broken stuff

* Add sensor gorupings

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-04-26 11:13:27 +02:00
PipoCanaja
27970eb830 Zywall - HW, Version, Serial (#12788) 2021-04-26 10:45:38 +02:00
Kevin Zink
39676fb932 Update functions.inc.php (#12793)
Eliminate discovery warning with PHP8

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-26 09:33:45 +02:00
PipoCanaja
9ae6b88cf0 oids (#12794) 2021-04-25 20:31:52 -05:00
PipoCanaja
3177052541 Basic support for zyxelac_xmg3927 (continued) (#12743)
* HW, FW and Serial

* tests
2021-04-25 19:53:20 +02:00
PipoCanaja
40e626d487 Calix (occamos) b6_316 and Calix (calix) 700 (#12744)
* Add mibs for CALIX B6 and enable nobulk

* sensors

* sensors and tests

* mibs

* Calix700 added

* tests

* tests suite

* rerun tests
2021-04-25 09:24:32 -05:00
Simon Smith
5453163331 change printer-supplies rrd name to include the supply_type (#12792)
* Update PrinterSupplies.php

* Update toner.inc.php

* Update auth.inc.php
2021-04-25 09:16:21 -05:00
PipoCanaja
23e9ec3891 VRP Serial hwDeviceEsn (#12789) 2021-04-24 15:05:35 +02:00
Tony Murray
dec5485e1e phpstan should be dev dependency 2021-04-23 10:47:18 +02:00
Tony Murray
027ff0ebee Revert #12321 (#12786)
Revert #12321
You can't import raw SQL like that.
2021-04-23 08:17:51 +02:00
Torch
2529334df2 Device: updated Nexus (nxos) os information and test data (#12779)
* added nexus discovery and test data

* Delete nxos.inc.php

* Update nxos.json

* Update nxos_n3k-3064pq.json

* remove application

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-23 00:00:17 -05:00
Jellyfrog
d9ac9ab80d Support X-Forwarded-Proto header (#12759) 2021-04-22 22:21:01 -05:00
Jellyfrog
53d46044c3 Fix OS sensor array return (#12694) 2021-04-22 21:49:33 -05:00
Jellyfrog
b9b7a8caa9 Cache astext in tests to avoid DNS lookup (#12784) 2021-04-22 21:05:23 -05:00
Tony Murray
11d4f8c669 Fix issue with sensor class case (#12782) 2021-04-23 00:59:23 +02:00
Tony Murray
b0178932cf FabOS sensor fixes and add SFP dBm (#12777)
* FabOS module dBm
fixes #11597

* Fix polling and state sensor discovery value

* fix temperature and fanspeed checks.
Also, fanspeed was totally broken.

* port sensors to yaml, found more broken things in the process.
2021-04-23 00:20:13 +02:00
PipoCanaja
07900ccc08 Discovery - Refactor num_oid computing (#12576)
* Test the num_oid generation

* Refactor num_oid discovery

* cnt

* Cache the value to avoid unnecessary snmptranslate

* desc of function

* typo

* Negative caching as well

* Negative caching

* style

* Str::before

* Str::before

* Str::before

* Fix key,  and model Devices

* types

* types

* doc update

* re-run tests

* Use Cache class

* Simplify caching and do it into oidToNumeric

* Simplify caching and do it into oidToNumeric

* style

* Extend to 3 hours

* and not ->cache_time

* force re-run tests

* only one OID for num_oid test

* rerun tests

* typo in MD

* restore

* Exemple

* Exemple

* light change

* test

* test

* test

* back to PR

* phpstan + suggestions from Tony

* fix firebrick num_oid

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-22 14:40:45 -05:00
Sean
d32e62479e Use GitHub instead of Github (#12781) 2021-04-22 14:34:03 -05:00
PipoCanaja
eab63ea220 webui - Services bootstrap enable + status (#12736)
* Services bootstrap enable + status

* style

* copyright

* generic create-service.inc.php to allow updates of some fields only

* generic create-service.inc.php to allow updates of some fields only
2021-04-22 19:13:39 +02:00
Sean
46ef094015 Update copyright year (#12780) 2021-04-22 15:27:27 +02:00
m4rkov
dd2a8f23f0 Update Smokeping.md (#12775)
It is necessary to install fcgiwrap, for CGI wrapper interact with Nginx, if you dont have installed the page doesn't work.

Regards
2021-04-21 21:57:59 -05:00
TheGracens
44e52e5a8d Notify if a sensor has been deleted (#12755) 2021-04-21 21:52:42 -05:00
PipoCanaja
827721d43b vrp - Collect sticky mac addresses in fdb-table (#12774)
* collect sticky mac addresses as well

* style
2021-04-21 21:49:40 -05:00
Jellyfrog
3e3aa9077e Revert "Fix StringBlade errors with a stub file" (#12776)
This reverts parts of commit 165c4fd53c.
2021-04-21 23:22:15 +02:00
Jellyfrog
165c4fd53c Enable PHPStan linter (#12678)
* Enable PHPStan linter

* Add PHPStan baseline

* Switch to Level 5

* Fix StringBlade errors with a stub file
2021-04-21 07:41:34 -05:00
djamp42
97d20dd09a Make docker app work with rrdcached (#12746)
* docker app rrdcached

* offset fix and formatting fix

* more fixes

* Update Rrd.php

* Update Rrd.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-04-21 07:40:48 -05:00
Rob Schultz
7c157c1577 Fix auth and crypto select options (#12769)
* Fix auth and crypto select options

Output no string vs the value of $snmpv3_sha2 and $snmpv3_aes256 as this would result in <option selected1> resulting in the proper option not being selected.

* Fix style issue
2021-04-20 23:26:01 +02:00
PipoCanaja
6a3b1c94ea Missing in select (#12771) 2021-04-20 23:24:16 +02:00
thegreatecheese
d06be3f3f9 Pop returned value from snmpwalk_group for lldp on mikrotik routeros (#12768)
* Pop returned value from snmpwalk_group for lldp on mikrotik routeros

* Account for non-multiarray response then pull out the inner-array

* StyleCl suggested format

* Add comment

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-20 18:14:38 +02:00
craig-nokia
d5bffb28ba Corrected Chassis Over Temp oid for state indexes (#12764)
* Corrected Chassis Over Temp oid for state indexes

* Updated old timos snmprec and json files to newer device release.

* Updated per review.

* Oops!

* Update timos.yaml

* tests

* double backslash

* idem

* idem

* tests generation

issue with save-test-data on my server

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-04-20 07:49:55 -05:00
Jellyfrog
a8c8a9a4a2 Misc cleanup (#12758)
* Fix Docblock

* Misc

* Parameter #2 $callback of function array_filter expects (callable(mixed, mixed): bool)|null, 'strlen' given

* Parameter #2 $data of function hash_hmac expects string, int given

* Unreachable statement - code above always terminates.

* Update Device.php
2021-04-20 12:47:22 +02:00
Tony Murray
cea6f13bf5 Document sub index references (#12767) 2021-04-20 11:26:17 +02:00