Commit Graph
7065 Commits
Author SHA1 Message Date
e40e1069d5 Fixes to Export CSV (#12830)
* fixes to port CSV Export

Signed-off-by: Patrik Forsberg <[email protected]>

* fix code-style issues

Signed-off-by: Patrik Forsberg <[email protected]>

Co-authored-by: Tony Murray <[email protected]>
2021-05-04 21:51:19 -05:00
Denny FriebeandGitHub 1734e3af04 Fix allow_unauth_graphs (#12829) 2021-05-04 07:49:16 -05:00
Tony MurrayandGitHub bb39b4ad83 Rrd graph optimizations (#12806)
* 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

* run the rrdgraph command in the rrd directory
2021-05-03 09:48:15 -05:00
Tony MurrayandGitHub f7586973c9 ignore Wrong Type errors in snpm_get and snmp_get_multi_oid (#12800)
Works around some awfully broken devices.
2021-05-02 14:38:12 +02:00
JellyfrogandGitHub 4821c2b377 Prevent error when no alert rules (#12815) 2021-04-29 22:45:06 -05:00
JellyfrogandGitHub 49ec6aabd6 Bump tecnickcom/tcpdf dependency to support php 8 (#12816)
Also fix undefined variable error
2021-04-29 22:43:47 -05:00
Tony MurrayandGitHub 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
JellyfrogandGitHub 76803c2acc Make applications work with rrdcached (#12807) 2021-04-28 22:00:32 -05:00
Tony MurrayandGitHub 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 MurrayandGitHub 7de808a4e8 Revert "RRD Graph optimization (#12735)" (#12805)
This reverts commit 2833d935e0.
2021-04-28 09:07:31 -05:00
Tony MurrayandGitHub 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
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 <[email protected]>
2021-04-28 05:19:17 -05:00
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 <[email protected]>
2021-04-27 10:02:17 -05:00
Tony MurrayandGitHub 7510224ead Fix #12793 (#12798) 2021-04-26 20:59:21 -05:00
Bennet GalleinandGitHub 5576847c26 fix: fixing consistency accross api endpoints (#12795) 2021-04-26 21:30:30 +02:00
e50590edc3 Firebrick sensor rework (#12783)
* WIP

* wrong test data, corrected.

* yaml and more broken stuff

* Add sensor gorupings

Co-authored-by: Jellyfrog <[email protected]>
2021-04-26 11:13:27 +02:00
PipoCanajaandGitHub 27970eb830 Zywall - HW, Version, Serial (#12788) 2021-04-26 10:45:38 +02:00
39676fb932 Update functions.inc.php (#12793)
Eliminate discovery warning with PHP8

Co-authored-by: Tony Murray <[email protected]>
2021-04-26 09:33:45 +02:00
PipoCanajaandGitHub 9ae6b88cf0 oids (#12794) 2021-04-25 20:31:52 -05:00
PipoCanajaandGitHub 3177052541 Basic support for zyxelac_xmg3927 (continued) (#12743)
* HW, FW and Serial

* tests
2021-04-25 19:53:20 +02:00
PipoCanajaandGitHub 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 SmithandGitHub 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
PipoCanajaandGitHub 23e9ec3891 VRP Serial hwDeviceEsn (#12789) 2021-04-24 15:05:35 +02:00
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 <[email protected]>
2021-04-23 00:00:17 -05:00
Tony MurrayandGitHub 11d4f8c669 Fix issue with sensor class case (#12782) 2021-04-23 00:59:23 +02:00
Tony MurrayandGitHub 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
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 <[email protected]>
2021-04-22 14:40:45 -05:00
PipoCanajaandGitHub 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
PipoCanajaandGitHub 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
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 <[email protected]>
2021-04-21 07:40:48 -05:00
Rob SchultzandGitHub 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
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 <[email protected]>
2021-04-20 18:14:38 +02:00
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 <[email protected]>
2021-04-20 07:49:55 -05:00
rassstaandGitHub 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
dethmetaljeffandGitHub 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
TorchandGitHub 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
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 <[email protected]>
2021-04-14 10:11:51 -05:00
martinbergandGitHub 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
Dave BrowningandGitHub 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 MurrayandGitHub 3a29198238 Fix mempool tags (#12745)
Does not affect rrd, only external tsdb
2021-04-13 21:33:07 +02:00
PipoCanajaandGitHub 9635f88c00 basic support for zyxelac_xmg3927 (#12740) 2021-04-12 10:43:19 +02:00
Tony MurrayandGitHub 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 MurrayandGitHub 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
PipoCanajaandGitHub ba23ee3999 Added support Cisco CBS350 (#12737)
* support Cisco CBS350

* hardware collect
2021-04-12 02:37:36 +02:00
craig-nokiaandGitHub 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 MurrayandGitHub 0e79413a5b escape user editable field (#12739) 2021-04-11 15:08:41 +02:00
JellyfrogandGitHub 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
Tony MurrayandGitHub 6d40871395 Fix mempools divide by 0 (#12734) 2021-04-09 11:10:02 +02:00
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 <[email protected]>
2021-04-08 18:53:07 +02:00
TorchandGitHub 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