Commit Graph

18662 Commits

Author SHA1 Message Date
Valery Kartel 64e91aa809 Update syslog.php (#13150)
* Update syslog.php

Clean code - removed some unused stuff

* Update syslog.php
2021-08-22 19:07:07 -05:00
Tony Murray e5e2633fbb Bump version to 21.8.0 21.8.0 2021-08-22 15:49:45 -05:00
Tony Murray 93180ce4f0 Changelog for 21.8.0 2021-08-22 15:49:44 -05:00
Facundo Caselles 8bb6eec732 Dark mode improvements (#13141)
* Changes to dark theme.
- Tables with white background now has dark background.
- Listbox in searchbar now has dark background.

* Minor change to internal css to modify all tables without 'table' class applied. (view screenshot)

* -Transparency on mini graphs on ports

* bootgrid-table td.no-results now has dark background

* Changes suggested by @Talkabout
2021-08-21 20:06:13 +02:00
Arjit Chaudhary 1fcf58a7a4 Fix layout width (#13115)
* Fix layout width

* Update services.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-21 00:25:13 -05:00
tikitaru 500a699797 Fix polling current on ICT2000DB-12IRC (#12529)
* Update ict-pdu.inc.php

Lines 7&8 fixes an issue seen when polling current on ICT2000DB-12IRC .

* Create ict-pdu_ict200db-12irc.snmprec

* More generic fix

* Create ict-pdu_ict200db-12irc.json

* Update ict-pdu.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-20 23:54:50 -05:00
Talkabout 1de372ca1b Priority filtering for syslog widget (#13134)
* Update SyslogController.php

* Update SyslogController.php

* Update syslog.blade.php

* Update syslog.blade.php

* Update web.php

* Create PriorityController.php

* Update SyslogController.php

* Update SyslogController.php

* changed priority controller to static list

* Update PriorityController.php

* Update PriorityController.php

* Update PriorityController.php

* using static list directly with standard select box without backend logic

* removed not required if statement
avoided array_flip by flipping foreach arguments
2021-08-20 22:52:15 -05:00
paulierco d6fee82e1a Add OSAG OS (#13156) 2021-08-20 19:25:07 +02:00
ottorei bc56f94f8f PagerDuty transport: Add EU service region (#13154) 2021-08-20 10:04:51 +02:00
Tony Murray e2d1bfff54 lnms config:set ability to set os settings (#13151)
* lnms config:set works for os settings
validate against os schema (gives us path and value validation)
fix unset in config:set
json formatted output in config:get to match input parsing

* inline errors

* Check that OS exists

* Fix lock file

* Set param type

* correct method name, it no longer returns a boolean

* rename --json to --dump
tests and fixes

* fix whitespace

* missed one whitespace

* typehints

* add connection typehint

* try again
2021-08-19 18:34:19 -05:00
fbourqui fcb1f2d6fa Revert to port description on port_link in Ports-Type pages after #13143 (#13149)
* Add Port description first to Ports-Type pages
Consistent with Customers pages.
For a port to be in a Ports-Type page it needs a parsed description
(Transit, Peering, Core, Custom, ...)

* make styleci.io happy

* Revert back to display Description like b4 #13143
2021-08-19 18:14:04 -05:00
Kevin Wallace e981570c34 enclose IPv6 literal in [brackets] for snmpget and unix-agent (#13130)
Co-authored-by: Kevin Wallace <kevinwallace@users.noreply.github.com>
2021-08-19 18:00:06 -05:00
Tony Murray 3c6f9fd60f Update docs for controlling modules (#13147)
* update docs for controlling modules

* text update

* clarify

* typo

* add missing word
2021-08-19 17:32:08 +02:00
Valery Kartel 4609da6db2 Fix issue #13146 (#13148)
* Fix issue #13146

fixed issue #13146 - Syslog :: syslog_xlate does not work with hostnames with dots

* Update syslog.php
2021-08-19 17:31:32 +02:00
Tony Murray f0f0a05dd1 Change PHPStan target to PHP 7.3 (#13153)
* Change PHPStan target to PHP 7.3

* ignore lines

* Update LoginTest.php

* Update LoginTest.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-08-19 16:20:13 +02:00
Tony Murray ca4a9e7ccf More specific grandstream-ht detection (#13152)
fixes #13138
2021-08-18 12:28:01 -05:00
Sander Blomvågnes 2bc5b15a3d GEMDS OS: Added voltage, cell states and wireless data for cell interface. (#13142)
* Added test data

* Added support for some Cell states

* Added more Cell states and added missing testdata

* Obs deleted the test data file

* Added support for monitoring Cellular signal

* Forgot test data again....

* Added more Cell states and Wirless data. Removed services because I cound get it to work correctly
2021-08-18 13:02:58 +02:00
fbourqui f1dc4435e3 Cleanup Port hover minigraph description when using "Interface Description Parsing" (#13143)
* Cleanup Port hover minigraph description.
Use port_descr_descr if exists or ifDescr.
Use the same generate_port_link() in:
- Devices - Ports
- Ports - All/Errored/Ignored
- Ports - "Types"

* Port-Customers, using Ajax Controller,  Util/Url

* make https://styleci.io/ check happy
2021-08-18 13:02:01 +02:00
Hannu Teulahti e9c89b3778 Use overwrite_ip when set for dns checks (#13133)
* Use overwrite_ip when set for dns checks

* Update check_dns.inc.php
2021-08-15 20:36:22 +02:00
Facundo Caselles 9723c44479 Improvements to dark theme (#13139)
- Tables with white background now has dark background.
- Listbox in searchbar now has dark background.
2021-08-15 09:27:14 +02:00
SourceDoctor 516b27f476 adjust App String Pi-hole to project name (#13136) 2021-08-14 19:55:07 +02:00
VTS 636dce43d2 sort port selector dropdown (#13135) 2021-08-13 16:45:22 +02:00
geg347 6dbefd4a61 Adding API route to set bgpPeerDescr field (#13056)
* Adding API route to set bgpPeerDescr field

* Fixing CI test

* Fixing CI test part 2

* Adding validation of bgpPeerId as integer and changing SQL request with question mark syntax.

* Fixing CI test

* Following murrant's advices to protect against SQL injection

* Use built in json function

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-13 00:58:47 +02:00
ottorei 35dbb3e9cb Update docs: Example for optional data on templates (#13128) 2021-08-12 12:55:36 +02:00
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