Commit Graph

18638 Commits

Author SHA1 Message Date
Tony Murray
43cd9b0c79 Fix lnms scan nets not detected (#13129)
using the wrong config.  Thanks PJGuy.
2021-08-11 19:01:52 -05:00
PipoCanaja
a7f9c97ae7 Bug - Standard MIB wrongly moved to Junos, and Dell still in ~/mibs (#13122)
* Standard MIB wrongly moved to vendor directory

* more
2021-08-11 00:33:58 +02:00
Tony Murray
31246c6ba6 Revert "Full Python code fusion / refactor and hardening (#13094)" (#13123)
This reverts commit 9c534a1a90.
2021-08-10 15:13:05 -05:00
Kevin Zink
93209a0fc8 API mac search (#12964)
* API find a switchport with the mac from device

* fix style

* convert SQL to Eloquent

* convert SQL to Eloquent

* git mistake

* Global use App\Models\Port

* git mistake partII

* Refractor Eloquent - Not finish but easier to help for others

* Better Eloquent Query without filter option

* Validation

* fix style

* Add filter option and DOC

* convert to the better macToHex method

* add a maxToHex unit test

* fix style

* fix style

* fix syle - seems my dev:check is running again :-)

* Fix phpStan

* phpStan #2
2021-08-09 19:33:04 -05:00
Orsiris de Jong
9c534a1a90 Full Python code fusion / refactor and hardening (#13094)
* Add inline command_runner library

* New service/discovery/poller wrapper

* Convert old wrapper scripts to bootstrap loaders for wrapper.py

* Add command_runner to current requirements

* Move wrapper.py to LibreNMS module directory

* Reformat files

* File reformatting

* bootstrap files reformatting

* Fusion service and wrapper database connections and get_config_data functions

* Moved subprocess calls to command_runner

* LibreNMS library and __init__ fusion

* Reformat files

* Normalize logging use

* Reformatting code

* Fix missing argument for error log

* Fix refactor typo in DBConfig class

* Add default timeout for config.php data fetching

* distributed discovery should finish with a timestamp instead of an epoch

* Fix docstring inside dict prevents service key to work

* Fix poller insert statement

* Fix service wrapper typo

* Update docstring since we changed function behavior

* Normalize SQL statements

* Convert optparse to argparse

* Revert discovery thread number

* Handle debug logging

* Fix file option typo

* Reformat code

* Add credits to source package

* Rename logs depending on the wrapper type

* Cap max logfile size to 10MB

* Reformat code

* Add exception for Redis < 5.0

* Make sure we always log something from service

* Fix bogus description
2021-08-09 18:49:29 -05:00
geg347
a4a04e6f09 Adding html_entity_decode function to fix HTML encoded characters in Slack Transport Alert (#13120) 2021-08-09 18:34:43 -05:00
Tony Murray
5d691dc375 Consolidate DB version code (#13111)
* Consilidate DB version
and don't use dbConnected() function

* cleanup imports
2021-08-09 18:33:31 -05:00
Tony Murray
2b8eb74b7a Detect sending non-html emails as html (#13114)
* Detect sending non-html emails as html
and use <br /> for line returns instead of \r\n

* Fix style
2021-08-09 09:17:32 -05:00
Jason Cheng
d6039399fa Updated Traditional Chinese Translation (#13116)
* Update auth.php

* Create port.php

* Update sensors.php

* Create smokeping.php

* Update zh-TW.json

* Update settings.php

* remove trailing whitespace

* remove trailing whitespace

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-08 23:59:29 +02:00
Jellyfrog
3f9d16a096 Run PHPStan with higher level for new files (#13108) 2021-08-06 16:40:04 +02:00
ottorei
1dce74f54c Update FAQs for large groups (#13110)
* Update FAQs for large dynamic groups

Added a workaround for error messages when editing large dynamic groups

* Review fixes

* Add example value
2021-08-06 16:36:39 +02:00
PipoCanaja
55ce8db4e4 fix (#13113) 2021-08-06 16:04:54 +02:00
PipoCanaja
0a36ff3d0a MIB cleaning for OS "Junose" (#13087)
* SMIs and rfc*.mi2

* rfc*.mib

* juni*.mi2 files

* more standard to get rid of

* jnx*.mi2

* more standard

* broken directory
2021-08-06 02:05:45 -05:00
PipoCanaja
9b03b35b42 MIB cleaning (misc again) (#13103)
* sort TELESYN-ATI-TC (allied)

* sort  MIB-DELL-10892 (dell)

* sort  MIB-DELL-10892 (dell)

* sort SFA-INFO (ddn)

* sort SYNSO-UPSMIB (probably unused)

* sort DataAire-dap4-al-MIB (probably unused)

* sort RADWIN-MIB-WINLINK1000 (radwin)
2021-08-06 01:36:05 -05:00
PipoCanaja
f744b31b0f MIB cleaning for Junos (#13085)
* cleaningJunos

* moving to the dedicated dir
2021-08-06 01:33:58 -05:00
La
cecfe9113c Added H3C / Comware MIB files (#13102)
* add h3c mib files

* Delete HH3C-AAL5-MIB

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-08-06 08:23:23 +02:00
Jellyfrog
39eea7bdc7 Remove links to freenode (#13101)
* Remove links to freenode

* Add funding links

* Sort composer
2021-08-05 10:33:23 -05:00
igorek24
2f267ca739 Add SignalWire (Twilio alternative) alert transport support (#13107)
* Add SignalWire (Twilio alternative) alert transport support

* Add SignalWire (Twilio alternative) alert transport support
2021-08-05 10:26:29 +02:00
M. Toups
1082373145 add two indices to syslog table, addresses librenms/librenms#12855 (#13105) 2021-08-05 10:15:15 +02:00
dennypage
6fc5f11a44 Update Cisco Small Business (mostly) MIBs (#13099)
* Update Cisco MIBs

* Update Cisco MIBs

* Delete BRIDGE-MIB

This file is a standard one. Ne need to replicate it in cisco mib-dir.

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-08-04 09:43:08 +02:00
Kevin Zink
0ff299f77c Add Janitza power consumed (#13095)
* Janitza add power_consumed

* Move Janitza to create variant

* Update testfiles

* fix typo

* update testdata

* fit typo part2
2021-08-03 22:37:07 +02:00
tcwarn
dedae6a0d4 Added OID for Extreme switch X350-48t to OS/Shared/Extreme.php (#13096) 2021-08-03 22:36:02 +02:00
Kevin Zink
0ae6fcb3c3 Opnsense detection (#13097)
* add another opnsense detection

* add testdata

* anonymous hostname to be more generic
2021-08-03 22:35:49 +02:00
Kevin Zink
49757c2502 Fix WUT ThermoHygro with new hardware revisions (#12913)
* Fix WUT ThermoHygro

ThermoHygro does not provide 'wtWebGraphThermoHygroPortName'

* Update wut.yaml

* add testdata

* Create wut_57720-os-143.json

* Next try to add testdata

* refresh wut_57720

* Change descr to Environment

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-08-03 21:40:03 +02:00
dennypage
049b7af3d5 Allow stack index other than '1.' for CiscoSB (#13078)
* When in a stack, the index for each port is based on the unit number in the stack. The first unit
in the stack uses index '1.', the second uses index '2.', the third '3.' and so on. This change
allows for stack indexes greater than '1'

* Create ciscosb_cbs350-4x.snmprec

* Create ciscosb_cbs350-4x.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-03 16:31:00 +02:00
Jellyfrog
332641236c Add Laravel task scheduling (#13074)
Currently does nothing, preparing for the future...
2021-08-03 16:30:13 +02:00
Jellyfrog
7f278cdd14 Add issue forms (#13092) 2021-08-02 16:06:01 +02:00
Jellyfrog
b3f2f25f09 Update NET-SNMP mibs (#13093) 2021-08-02 12:46:24 +02:00
PipoCanaja
bbe5e9e4f7 MIB cleaning (Misc) (#13086)
* HH3C in comware dir

* netapp

* misc file renaming
2021-08-01 22:00:21 -05:00
PipoCanaja
288d17db31 panasonic (1 file) and avtech (11 files) (#13088) 2021-08-01 21:54:29 -05:00
PipoCanaja
aa5b7455d6 MIB cleaning for Dell + Gandi (#13089)
* dell

* gandi
2021-08-01 21:53:16 -05:00
PipoCanaja
7bf581c56c MIB cleaning for equallogic (#13083)
* equallogic_step_1

* cleaning

* cleaning cont.
2021-08-01 21:50:19 -05:00
PipoCanaja
6a0ab25319 hp (#13084) 2021-08-01 21:49:37 -05:00
Peca Nesovanovic
9557cccb6a Jetsream: added/fixed LLDP discovery (#13082) 2021-07-31 18:26:57 +02:00
Tony Murray
02d49c1314 Remove timeouts for passthrough lnms commands (#13080)
Should not be an issue once the commands are natively implemented.
2021-07-30 12:20:09 -05:00
Negatifff
b9e6a5975f add urlencode for location link in device view (#13076) 2021-07-28 10:49:28 +02:00
Kevin Zink
7c41698e4b Add logo for Scientific Linux (#13075) 2021-07-27 16:27:50 +02:00
Jellyfrog
2b98e92fa1 Bump super-linter (#13073)
* Bump super-linter

* Update lint.yml

* Update lint.yml

* Update lint.yml

* Update lint.yml
2021-07-27 12:51:03 +02:00
adamus1red
ae40865200 Document optional ups-nut arg1 (#13072)
As added in librenms/librenms-agent#371 the ups-nut script can take an optional argument for overriding the default UPS name.
2021-07-27 10:25:24 +02:00
Bennet Gallein
574eb1f0f0 Billing: add peak in and out (#13006)
* feat(api): added max in/out per bill_history period

* chore(Docs): updated docs to include in/out max values

* chore(formatting): style-ci

* chore(db): update db-schema

* fix(db): reverted wrong changes in schema

* fix: wrong table name in migration

* feat(billing-history-frontend): added max in/out values to frontend bill-history

* chore: renamed to peak instead of min/max
2021-07-26 10:37:52 -05:00
Jellyfrog
e873768845 Bump larastan (#13071)
* Bump larastan

* Use php7.4 for lint test
2021-07-26 09:00:34 -05:00
Tony Murray
ae2b761e94 Fix Cisco SLAs garbage entries (#13068)
* Fix Cisco SLAs garbage entries
Resulting from extra data returned by device not in the exisitng MIB... Updated the MIB too.
Thanks https://community.librenms.org/t/cisco-ip-sla-issues/16429

* Add test data
2021-07-25 11:23:04 +02:00
Sean
747506172a Update cleanup options document (#13026)
- Add missed units for config definition
  - And remove units from translate strings
- Change values in the document to the actual default value
- Sort configs in the document by order
- Replace redundant text with "please refer to"
- Add instruction to use Web GUI setting
2021-07-25 09:50:25 +02:00
O Palivan
754276ba89 Extend REGEX filtering option by sensor_class (#13066) 2021-07-23 23:46:12 +02:00
wkamlun
dcb9f3c1d5 Update #13037 to add wireless sensor for FortiAP (#13063)
* Update #13037 to add wireless sensor for FortiAP

Update #13037 to add wireless sensor for FortiAP

* Add files via upload

* Update Fortigate.php

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-23 19:45:46 +02:00
Keryazmi
2ddf460283 ADVA - Typo in previous PR (#13064)
Replace string 'cmEthernetTrafficPortIfIndex' to 'cmEthernetNetPortIfIndex'.
And replace typo word.
2021-07-23 12:00:02 +02:00
saschareichert
efa86e0166 Improve dell-compellent detection for newer firmwares (#13019)
* Update dell-compellent.yaml

Dell changed the text for sysDescr after the 2017 firmware-release so that the string "COMPELLEN" which was looked after here before, did not appear anymore. The Compellent cuts off the snmp-answer after 255 characters.
I replaced the previous detection to a new snmpget-detection using the oid (DELL-STORAGE-SC-MIB::productIDDisplayName.0) that shouldnt be altered in the future.

* Add files via upload

* Rename dell-compellent_scv3020.snmprec.TXT to dell-compellent_scv3020.snmprec

* Keep backward compatibility

* Create dell-compellent_scv3020.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-22 14:14:02 +02:00
PipoCanaja
b885198809 Cisco ISE version, HW, SW and test-data (#13062)
* ise

* ise
2021-07-22 13:53:56 +02:00
martinberg
342900ee53 Poll current connections for F5 ltm (#12968)
* Poll current connections for F5 ltm

* Changed polling to a separate RRD-file

* Reverted old changes

* Remove stats not needed in this file

* Fixed typos and cleanup

* Updated copyright
2021-07-22 01:07:30 +02:00
wkamlun
1d55265690 Update with FortiAP (#13037)
* Update with FortiAP

Add number of connected wireless client and number of connected FortiAP

* Add fortiAP support

* Update Fortigate.php

* tests

* style

* Update fortigate_500d.json

Test cannot run properly because of dependency between interfaces and OSPF ports.

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-21 20:26:29 +02:00