Commit Graph

18402 Commits

Author SHA1 Message Date
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
rasssta
3f0f133ee9
Added metric for MySQL Slave Lag (secs) (#12765)
* Added metric for MySQL Slave Lag (secs)

Added metric for MySQL Slave Lag (in seconds) to be able to build Alert Rules when slave lag value is greater than 0 (or X). It's possible to add graphs and other metrics as well, but the priority for me is to be able to build alert rules based on the "Slave Lag" metric.

* Added metric for slave lag (SlLa)
2021-04-19 20:06:55 +02:00
dethmetaljeff
da19fc51f2
fix outlet sensor indexes overwriting each other when there's more than one infeed (#12763)
* fix outlet sensor indexes overwriting each other when there's more than one infeed

* adding test data for sentry3 switched pdu
2021-04-18 19:51:47 +02:00
Tony Murray
5f7682d4fe Bump version to 21.4.0 2021-04-17 23:05:07 -05:00
Tony Murray
6bcba7833b Changelog for 21.4.0 2021-04-17 23:04:56 -05:00
Jellyfrog
e86b4662b3
Fix globe controller up/down partition bug (#12757) 2021-04-17 16:46:54 -05:00
Jellyfrog
2ce294618f
Fix scopeIsArchived query (#12756)
Method Illuminate\Database\Eloquent\Builder<App\Models\Notification>::limit() invoked with 0 parameters, 1 required.
2021-04-17 17:47:28 +02:00
Torch
62c5759bd1
Device: Added basic support for BKtel Optical Amplifier (#12754)
* added basic bktel oa support

* renamed bktel mibs
2021-04-16 13:50:56 +02:00
Jay Shepherd
c464797536
Add Packet Buffers as memory for PanOS (#12582)
* Add Packet Buffers to PanOS


Add buffer memory logic to panos.php
Replace panos test data

* Update Panos.php

* Revert to original test data

Reverting original snmprec to regenerate tests

* Regenerated Test Result

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-16 09:34:09 +02:00
wuwei
385ef98ff7
Parse info from H3C branded comware devices (#12551)
* Update comware.yaml

Fix the problem that the H3C switch cannot obtain the device hardware model

* better regex, remove ENTITY-MIB::entPhysicalName it is rubbish.

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-14 10:11:51 -05:00
martinberg
b17b3069c9
Added Liebert HPM support (#12747)
* Fixed problem where  was still set at next loop

* Added support for more sensors

* Added testdata

* nobulk because otherwise snmp timeouts
2021-04-14 15:39:16 +02:00
Tony Murray
6241df2d74
StateTranslation model (#12751) 2021-04-14 07:33:41 -05:00
Dave Browning
ea6bd6af85
Allow getting VDSL stats on "down" VDSL ports (#12753)
https://community.librenms.org/t/broken-vdsl-stats-after-update/11471/20
2021-04-14 07:33:12 -05:00
Tony Murray
3a29198238
Fix mempool tags (#12745)
Does not affect rrd, only external tsdb
2021-04-13 21:33:07 +02:00