Commit Graph

18415 Commits

Author SHA1 Message Date
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 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
PipoCanaja
9635f88c00 basic support for zyxelac_xmg3927 (#12740) 2021-04-12 10:43:19 +02:00
Tony Murray
0f1c4734d4 Load device relationship from device cache (#12712)
* Load device relationship from device cache

* unrelated should be null, not a null object
2021-04-12 02:55:39 +02:00
Tony Murray
0b617db7f5 Fix alert rules display when creating new alert template (#12731)
Doesn't clear rules from default template...
2021-04-12 02:47:08 +02:00
Tony Murray
c36fe928e4 Fix mini graphs (#12738)
Remove the polyfill, if the noscript tag isn't removed it breaks graphs
Ajax tables should not use lazy loading anyway...
2021-04-12 02:40:47 +02:00
Tony Murray
dec1ed1e45 Split port_groups migration to prevent issues (#12732)
* Split port_groups migration to prevent issues

* split out to individual tables

* fix class names

* Fix the hasTable check
don't need separate foreign key migrations since they are both on the same table.
2021-04-12 02:39:46 +02:00
PipoCanaja
ba23ee3999 Added support Cisco CBS350 (#12737)
* support Cisco CBS350

* hardware collect
2021-04-12 02:37:36 +02:00
craig-nokia
99795eafca Added basic Delta Orion Controller support (#12741)
* Added basic Delta Orion Controller support

* Updated files.
2021-04-12 01:31:12 +02:00
Tony Murray
0e79413a5b escape user editable field (#12739) 2021-04-11 15:08:41 +02:00
Jellyfrog
643c1ca3aa Correct snmp function usage (#12714)
* Use snmp_translate correctly

* use snmp_get correctly

device array instead of object

* Update snmp.inc.php
2021-04-09 11:11:57 -05:00
Jake
21dcd3eed9 Update Dashboards.md (#12733)
Corrected a couple typos.
2021-04-09 11:11:03 +02:00
Tony Murray
6d40871395 Fix mempools divide by 0 (#12734) 2021-04-09 11:10:02 +02:00
Tommy Andre Mikkelsen
8eda073da9 Corrected OID for c3GsmSimStatus (#12724)
* Update cisco.inc.php

Wrong OID used for c3GsmSimStatus

* add test data for iosxe

* Update ios_ir809.json

* Update iosxe_ir1101.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-04-08 18:53:07 +02:00
Torch
687ee5df54 feature: Added support for Infinera XTM (#12710)
* added Infinera wdm defination

* fixed discovery & poller location

* removed poller and discover modules, added HW
2021-04-08 10:46:44 -05:00
Tony Murray
78dd6f305c Fix bug in component table (#12730)
* Fix bug in component table

* use !empty
2021-04-08 10:27:20 -05:00
Tony Murray
6f02ddfe7b Fix js error (#12729) 2021-04-08 10:14:45 -05:00
Jellyfrog
edb36fd69d More cleanups (#12715)
* PHPDoc

* Replace Auth > Illuminate\Support\Facades\Auth

* Return inside when()

* use str_replace correct

* Misc

* dead code

* use int $port

* styleci
2021-04-08 08:14:49 -05:00
Jellyfrog
c147be4505 Revert "Remove snmp2ipv6 (#12683)" (#12725)
This reverts commit f5f72dd398.
2021-04-08 14:57:17 +02:00
Tony Murray
04407db85b Use native browser lazy load (#12720)
* Use native browser lazy load
Polyfill for older

* Add intersection polyfill for IE and older browsers
2021-04-08 11:24:53 +02:00
Tony Murray
500f50e867 JS fixes for IE (#12721)
* JS fixes for IE
just a couple that caused the issues with graph loading and widget settings not saving.

* remove polyfill

* Update ports.inc.php
2021-04-08 11:22:44 +02:00
Tony Murray
d34cd0a1b8 Fix ports table when unpolled ports exist (#12722)
* Fix ports table when unpolled ports exist

* fix another divide by 0
2021-04-08 11:17:53 +02:00
dependabot[bot]
19032b33a5 Bump phpseclib/phpseclib from 2.0.30 to 3.0.7 (#12723)
Bumps [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) from 2.0.30 to 3.0.7.
- [Release notes](https://github.com/phpseclib/phpseclib/releases)
- [Changelog](https://github.com/phpseclib/phpseclib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phpseclib/phpseclib/compare/2.0.30...3.0.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 11:16:11 +02:00
Tony Murray
f5f72dd398 Remove snmp2ipv6 (#12683)
* Remove snmp2ipv6

* Fill in bgpPeerRemoteAddr too update test data
2021-04-07 16:57:57 -05:00
Rob Schultz
40517f695a Cisco AES256 support (#12717)
* Add support for net-snmp AES-256-C option

* Add AES-256-C to tests and config definition
2021-04-06 22:07:41 -05:00
Jellyfrog
dedc46b548 Fix SQL injection in rediscover-device (#12716)
Closes #12697
2021-04-06 21:57:50 -05:00
Jellyfrog
a70d55bfd8 Add feature to capture a full snmprec (#12706) 2021-04-06 17:26:31 -05:00
SourceDoctor
4b9e480118 Define Port Groups (#12402)
* Define Port Groups

* .

* .

* .

* API Calls

* .

* .

* .

* minor changes

* .

* update forms

* remove link

* .

* change column settings

* change migration

* change update position

* db migration fix

* .

* .

* .

* add missing doc reference

* update test data

* update test data

* update test data

* .

* .

* .

* .

* .

* .

* .

* .

* port group association in seperate table

* .

* .

* show all found groups on port

* select multiple Portgroups per Port

* change on migration file

* change query to eloquent

* Code changes

* move port group menu to ports main menu

* port group update to eloquent

* .

* .

* update to new setting way

* add missing merge parameter

* Use select2 and port some things to Laravel
some fixes, hopefully no new added bugs

* schema

* don't use on update restrict unfortunately

* remove unused import and revert changes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-06 17:25:08 -05:00
Wooboy
ecb87d9671 Added support for Canon printer model TM TX series (#12667)
* Update canonprinter.yaml

ADD support printer model TM TX series

* Create canonprinter_tm.snmprec

upload test file

* Update canonprinter_tm.snmprec

* Create canonprinter_tm.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-04-06 14:37:05 -05:00
Antonio Almeida
d80c19d0dd WebUI - Display interface errors per second instead of accumulated (#12613)
* Display delta errors instead of accumulated
* Interface errors rate based on polling time and with units
* After some googling changed Eps to EPS to represent errors per second

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-04-06 20:40:23 +02:00
Jellyfrog
c97e49db3b Fix doc building (#12711)
And upgrade
2021-04-06 19:22:58 +02:00
Simon Smith
f0bef36b16 fix adding discrete ipmi sensors (#12709) 2021-04-06 18:44:35 +02:00
Tony Murray
7788c19256 Fix mempool tags (#12705)
Does not affect rrd, only external tsdb
2021-04-06 00:50:48 +02:00
PipoCanaja
8c2a5d5a16 Issue with snmpwalk_group string splitting (#12701)
* handling invalid data for snmpwalk_group

* style

* new approach

* new guess

* split trim

* cleaning
2021-04-05 22:47:11 +02:00
Misha Komarovskiy
61b4c35ab1 Update IOS with 4948 variant hardware detection (#12685)
* Update IOS with 4948 variant hardware detection

* Use entPhysicalModelName if Switch System match
* Add test data for 4948e and 4948-10ge variants

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Fix bracket error

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Add json test data

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2021-04-05 22:26:38 +02:00
hartred
339227280a BDCOM update support (#12696)
* tests snmprec

* add snmprec test

* test json

* discovery json

* json test

* snmprec

* add mib files
2021-04-05 10:21:49 -05:00
O Palivan
cedb0570eb TAIT - Add entity physical support (#12703)
* Add entity discovery out of proprietary mibs
2021-04-04 17:13:11 +02:00
cjsoftuk
43ea55bcf3 Better firebrick support (#12600)
* Add Firebrick MIBs, temperatures and voltages.

* Add missing $sysOid checks.

* Add fan speed for FB6000 series.

* Add sane limits.

* Update Firebrick MIBs.

* Make BGP peers work.

* Better support for Firebricks.

* Add more firebrick support.

* Add BGP Peer States.

* Fix fan speed divisor now that Cliff has fixed the code.

* Fixes for BGP and sensors.

* Add Firebrick IPSec module.

* Add IPSec Tunnels (Base).

* Sort out the IPSec states (although they're still green for no real reason).

* Code style fixes.

* Add missing config definition.

* Fix code style issues.

* Move bgp-peers to its own file.

* Do fan speeds with yaml, not PHP.

* Add Firebrick 6000 snmprec.

* Move Firebrick tests to be FB6000 tests.

* Revert "Move Firebrick tests to be FB6000 tests."

This reverts commit 426c1db980.

* Add tests for specific firebrick variants (2900, 6000) rather than generic.

* Add the firebrick-ipsec-tunnels poller config option.

* Switch to cipsec-tunnels for Firebrick.

* Unnecessary as it's now in cipsec-tunnels.

* Add extra MIB fields for Firebrick BGP MIB.

* Minor fix for AS text.

* Fix the tests.

* Exclude build timestamp from the version.

* Fix a couple of careless errors.

* Code style fix.

* Better version strings.

* Fixes for BGP, and add "Routing Table" support (VRF).

* Add more test data for BGP peers.

* Fix test data for BGP.

* Remove processors for now - as we can't get the data sensibly.

* Fix code style.

* Update firebrick.inc.php

Force tests re-run

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-04-04 16:17:49 +02:00
Jellyfrog
14a95f47c9 Bump php-amqplib to support PHP8 (#12698) 2021-04-02 13:00:48 +02:00