Commit Graph

18525 Commits

Author SHA1 Message Date
rhinoau
ce0ab24acd Add renamehost function result handling and exit codes (#12980) 2021-06-25 00:34:16 +02:00
VTS
b6f9dd29df return api error when device doesn't exist (#12978)
* return api error when device doesn't exist

Function device_by_id_cache returns a hash table, which isn't null despite the device not existing.  This checks to see if the type has been populated to also determine if the device exists. 

Without this, the function always returns a "valid" device, even if one doesn't exist.

* use device_id instead of type
2021-06-25 00:13:51 +02:00
Ray Lyon
03aa453893 Added logo svg for Rocky Linux (#12977)
* rocky linux logo

* removed width and height attributes

* added back viewbox
2021-06-23 15:48:17 +02:00
dependabot[bot]
1bb4dd173e Bump phpmailer/phpmailer from 6.4.1 to 6.5.0 (#12975)
Bumps [phpmailer/phpmailer](https://github.com/PHPMailer/PHPMailer) from 6.4.1 to 6.5.0.
- [Release notes](https://github.com/PHPMailer/PHPMailer/releases)
- [Changelog](https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md)
- [Commits](https://github.com/PHPMailer/PHPMailer/compare/v6.4.1...v6.5.0)

---
updated-dependencies:
- dependency-name: phpmailer/phpmailer
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-22 23:23:27 +02:00
Simon Smith
748186c05f Update menu.blade.php (#12970)
fix menu proxmox url
2021-06-21 17:59:26 +02:00
Tony Murray
ff55f674c1 Make migrating after upgrading MySQL easier. (#12971)
Many people got stuck by this migration as it would fail on index creation after the table was created
2021-06-21 17:58:33 +02:00
Kevin Zink
7ef302a8b9 EUROstor RAID (#12969)
* Proware Controller in EuroStore RAID Chassis

* fix style

* Eurostore

* renew testdata

* Fix style
2021-06-21 10:13:40 +02:00
cjsoftuk
b7d1420020 Firebrick: Fix an issue which led to duplication of BGP peers. (#12932)
* Firebrick: Fix an issue which led to duplication of BGP peers.

* Code style.

* Attempt to get some sanity with BGP Table 0.

* Attempt to make it so peers are not immediately added then deleted.

* Force vrfId to Null if empty.

* Another attempt at keeping the DB clean.

* Code style.

* Stop the dicovery deleting peers it just created.
2021-06-21 09:51:49 +02:00
Jezekus
b111ab6ff9 Add HPE-maPDU support (#12550)
* Add support for HPE Managed Power Distribution Unit - pdu2 and pdu3

* Adding test data for hpe-mapdu from HPE P/N H8B49A (pdu2) and HPE P/N
P9S18A (pdu3)

* Remove module overrides and leave it up to user. Fix snmp_max_oid

* Fixed detection of PDU3 devices, updated testing data

* Make sysDesc definitions more specific - adding only HPE part number and
whole sysdescription of tested device.

* Change sysDescr to be less specific

* Force Test Re-run

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-06-19 18:51:14 +02:00
Tony Murray
50dd6c1685 Fix ldap/ad group webui settings (#12967)
* Fix LDAP groups UI WIP

* fix up ldap and ad group settings

* production compiled assets
2021-06-19 16:16:02 +02:00
djamp42
fb36f0bc60 Create Laravel Sessions Table (#12962)
* create laravel sessions table

* fixing last commit
2021-06-18 23:37:50 -05:00
martinberg
24b8bebde7 Add support for Liebert humidity setpoint and UPS powerfactor (#12965) 2021-06-18 16:33:12 +02:00
Tony Murray
fb2608ee3d Bump version to 21.6.0 21.6.0 2021-06-17 23:35:44 -05:00
Tony Murray
62192f81a3 Changelog for 21.6.0 2021-06-17 23:35:44 -05:00
Kevin Zink
4ec609bccf Add Serialnumber for some Dell ForceTen devices (#12960)
* Add Serialnumber for some Dell Force devices

* Also in entity-physical

* fix style

* fix style

* add testdata
2021-06-17 21:16:09 -05:00
Kevin Zink
d0d8a9024b Add Signal CLI transport support (#12954)
* Add Signal CLI support

* Update Signal.php

* fix style

* fix style

* fix CI style

* fix CI style

* escapeshellarg

* fix style

* fix style

* fix style
2021-06-18 00:38:09 +02:00
BennyE
0f429e3d9a Added New-OS: Alcatel-Lucent Enterprise Stellar Wireless (#12952)
* Added New-OS: Alcatel Stellar Wireless

* Addressing StyleCI remarks

* StyleCI is still unhappy with me

* Addressing scrutinizer identified minor bug with additional type check

* Add snmprec test data

* Add json test data
2021-06-17 16:23:16 +02:00
PipoCanaja
53ce0e016f LLDP - Extend discovery lldp code to support different subtypes (#12901)
* extend lldp code to support different subtypes

* style
2021-06-17 00:42:28 +02:00
Sean
bcedc0ed77 Improve Markdown syntax in Document (#12949)
* Use GitLab instead of Gitlab

Only change text part, the Alert.Transport.Gitlab class left as is.

* Fix href in document

* Move section in document

The agent list in this document is sorted by alphabetical order,
"SDFS info" is the only exception.

* Remove trailing spaces in document

* Align code in document

* Fix Markdown in document

- Escape underline
- Add syntax highlight
- Add two space in the end of line to make it a newline
- Add newline before list or code section

* Update LibreNMS/Alert/Transport/Gitlab.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-06-16 21:16:21 +02:00
Kevin Zink
7edc302f34 2 more Rittal variants (#12953)
* 2 rittal variants

* fix style

* fix problem with missing entry["cmcIIIVarValueStr"]

* fix typo
2021-06-16 21:15:47 +02:00
Misha Komarovskiy
e670097bf6 API: Add api call to list OSPF ports (#12955)
Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2021-06-16 20:31:05 +02:00
Justin Bronn
f8d9ab4d49 Improve TP-Link JetStream Discovery (#12946)
* Add the TPLINK-SYSINFO MIB, via TP-Link's 20210310 archive.

* Simplify discovery of TP-Link JetStream switches: the OID `.1.3.6.1.4.1.11863.5.` applies to them all.

* Support TP-Link JetStream switch hardware, serial, and version data using their sysInfo MIB.

* Use correct filename for the TP-Link sysInfo MIB.

* Add SNMP and test data for TP-Link JetStream switch models SG2210P and T2600G-28TS.
2021-06-16 18:18:58 +02:00
mathieu-artic
ae78d2b0b9 Add SDSL Support for OneAccess routers (#12948)
* add oneaccess

* add oneaccess mibs

* modify cpu description

* delete .mib

* add cpu name

* update tests files

* add text

* SDSL Oneaccess
2021-06-16 18:15:22 +02:00
Kevin Zink
0489382768 Fix "Sub-directory Support" in small steps (#12910)
* Fix "Sub-directory Support" in small steps

This fixes small parts from #12205 part 3
fixes #12205

Even someone knows a better way, for example to fix js with the url() function. In my case it works.

* Update oxidized.inc.php

* Update oxidized.inc.php

* Update oxidized.inc.php

* Update oxidized.inc.php

* Update oxidized.inc.php

* Update oxidized.inc.php

* Update oxidized.inc.php
2021-06-15 08:11:18 -05:00
Tony Murray
bd3da058d3 Human readable database inconsistent error (#12950)
* Human readable database inconsistent error
In case a db error causes an exception, check validate and show the db errors to the user in the webui.

* only failed validations

* fix style
2021-06-14 13:33:59 -05:00
paulierco
20c44b85c3 Alcatel-Lucent aos6 and aos7 fdb fix (#12945)
* first

* style
2021-06-12 09:32:34 +02:00
Kevin Zink
2a66d68c18 Janitza UMG96 (#12944) 2021-06-12 00:05:22 +02:00
geg347
672fe61b5e New module add juniper rpm support + reimplementation of cisco-sla module (#12799)
* Definition of a new SLA module to migrate from old cisco-sla and support other devices : Juniper RPM and Huawei

* Change wrong description name of module SLA

* Re implementing Juniper RPM support in a new module Slas (Cisco SLA to be added)

* Added Graphs for Juniper RPM types

* Tried to make discover and poller generic : to handle Cisco SLA and Juniper RPM and others

* Reimplementing Cisco SLA in the new Sla module and adding condition to manage both SLA and RPM

* Definition of a new SLA module to migrate from old cisco-sla and support other devices : Juniper RPM and Huawei

* Change wrong description name of module SLA

* Re implementing Juniper RPM support in a new module Slas (Cisco SLA to be added)

* Added Graphs for Juniper RPM types

* Tried to make discover and poller generic : to handle Cisco SLA and Juniper RPM and others

* Reimplementing Cisco SLA in the new Sla module and adding condition to manage both SLA and RPM

* Fix some error due to Elequent object replacing SQL request

* Fixing indentation

* Fixed continuous integrations errors

* Fixed continuous integrations errors part 2

* Fixed continuous integrations errors part 3 : missing last new lines

* Fixed PHP Static Analysis checks

* Fixed continuous integrations errors part 4

* Fixed PHP Static Analysis checks part 2

* Trying to convert existing cisco-sla to new slas one

* Trying to add slas to fix test failure (I am pretty sure this is not enough but I don't know how to do it)

* Switching old cisco-sla module declaration to new slas module in concerned OS files

* Fixing wrong sla module name instead of slas in concerned OS files

* Fixing wrong module name sla changed to slas (as is it in power-supplies reimplementation)

* Fixing some warnings shown in the Inspection CI but skipping some that are already present

* Adding tests files from virtual Juniper VMX and adding slas modules in /tests/module_tables

* Adding missing SNMP data files

* Module Slas modifications to use inheritance

* Fix CI errors

* Fix CI errors part 2

* Fix CI errors part 3

* Fixing no value on RTT graphs

* Fixing only last SLA to be polled : problem with loops

* Fix CI errors part 4

* Optimizing a little the Juniper RPM poller part

I wanted to query only the required values but it is complicated to query a specific OID
as Cisco-SLA does because the owner and tag are hardcoded in ASCII decimal with strange values.
So I use the function snmp_walk which gets the whole OID values in text.
And I index the Juniper MIB (because we want multiple values). But I changed the DISMAN MIB
requests to get only what we want.

* Fix CI errors

* Fix CI errors part 2

* Fix CI errors part 3

* Fixing PHP Static Analysis error 2/4

* Fix CI errors

* Implementing Interfaces to fix some errors that occurs with inheritance

* Adding missing Interfaces files

* Moving generic Sla discovery code into Junos Class

* Fix CI errors

* Fix CI errors part 2

* Fixing missing definition of SlaDiscovery in Cisco shared Class

* Fixing missing import for Illuminate\Database\Eloquent\Collection

* Fix CI errors part 3

* Fix PHP Static Analysis error

* change type strings to use translations instead of config

* IOSXR test data

* remove test data garbage

* simplify discovery

* Fix style

* Updating test files to adapt mock sla_nr ID starting from 0 and not 1 : CI tests should pass

* clean up polling
add rtt field in the db
cisco icmpjitter seems to have confused a lot of values

* rtt on discovery

* use crc32 for consistent sla_nr values

* revert snmprec

* Fix style

* correct schema

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-06-11 13:48:33 -05:00
Patrik Forsberg
3cf039764e add number sign to to special character handling in ActiveDirectoryAuthorizer $group_dn (#12943) 2021-06-11 14:58:34 +02:00
ottorei
69397ea70f ISIS-adjacency polling support (#12461)
* init

* Add adjacency polling support

* Format messages

* Fix prints

* Apply fixes from StyleCI

* Fix schema

* Schema fix

* Alert rule example

* Remove display format

* Change option order

* Add test data

* Add test data

* Test data

* Review fixes

* Remove duplicate MIB-file

* Add cleanup

* Fix

* Print fix

* Remove extra cleanup

* Revert "Remove duplicate MIB-file"

This reverts commit 4b3cf8127c.

* Remove unneeded MIB-files

* Add check for empty array

* Apply fixes from StyleCI

* Review fixes

* StyleCI

* StyleCI

* Apply fixes from StyleCI

* typo

* Update function calls on pages

* Linting fixes

* Apply fixes from StyleCI

* Discovery module

* Add discovery module

* Apply fixes from StyleCI

* Update example alert rule

Co-authored-by: ottorei <ottorei@users.noreply.github.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-06-10 19:42:34 -05:00
Kevin Zink
84c6d215cf Add Epson Projector as new OS (#12928)
* Add Epson Projector as new OS

* Remove poller definitions

* Remove poller definitions

* convert os to epson-projector

* fix delete doc/Alerting/Transports.md
2021-06-10 22:22:19 +02:00
Tony Murray
f7b95b92d8 Add info about lnms config:set at top of Configuration page (#12939)
* Update Configuration.md

* Update Configuration.md

* Update Configuration.md
2021-06-09 17:49:38 +02:00
Rafael Pardim
1e05cdc571 Gaia VPN IPSEC discovery (#12823)
* Add VPN IPSEC discovery and fix haState

Adding VPN IPSEC Discovery and fix haState at creating https://github.com/librenms/librenms/pull/12821
haState does not work from yaml file because needs to Convert string value to integer LibreNMS value

* Update gaia.yaml

* Update gaia.yaml

* Update gaia.yaml

* Gaia VPN IPSEC discovery

* Gaia VPN IPSEC discovery
2021-06-09 10:07:21 +02:00
PipoCanaja
31ac00f88c HWG WaterLeak sensor support (#12865)
* mib for WaterLeakDetectore

Add support for WaterLeak detection

rename OS

rename OS

rename OS

remove unnecessary module restrictions

space

* disable only some modules
2021-06-09 09:56:07 +02:00
Thom Seddon
1066ee404a Update device_component_down_junos macro (#12898)
Detect state changes in sensors in both jnxFruState and jnxFruTable
2021-06-09 09:47:59 +02:00
paulierco
4ee1abb1d4 Alcatel-Lucent Aos7 sensors nobulk (#12935)
* first commit

* fix style

* fix style

* fix style

* fix style

* fix style

* fix style

* fix style

* change local_port_id

* fix style

* fix style

* fix style

* first commit

* fid disc

* tests?

* fix "nobulk" test-check

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-06-09 00:39:21 +02:00
d-k-7
fcac1239fc Improved raritan pdu support (#12937)
* return "Outlet " + index in event outlet description is empty

* update tests to account for blank outlet description

* add hardware, serial, and version detection for Raritan PDUs
2021-06-09 00:38:23 +02:00
Patrik Forsberg
70023c0b59 Fix nokia(TiMOS) memory (#12925)
* fix nokia(TiMOS) memory to use kibibyte instead of bytes to fix issues with routers that has more memory then byte counter handle

* fix test cases

* fix mempools test case

* fix timos.snmprec
sync timos.snmprec and timos.json

* fixed timos.json

* fix timos_7705
2021-06-01 07:58:06 -05:00
PipoCanaja
2e8c336c8f add TopErrors widget based on error_rate (#12926)
style

style
2021-05-31 19:40:45 +02:00
Kevin Zink
3a0c164a5d Add Barco Clickshare (#12927)
* Add Barco Clickshare

* correct type

* and testdata
2021-05-31 00:15:24 +02:00
Tony Murray
143765ced8 Add 'nobulk' setting in sensors yaml (#12833)
* nobulk setting in sensors yaml
* silly python
2021-05-30 00:08:20 +02:00
mathieu-artic
15da7faef1 Add support for oneaccess router (#12850)
* add oneaccess

* add oneaccess mibs

* modify cpu description

* delete .mib

* add cpu name

* update tests files

* add text
2021-05-29 09:08:28 -05:00
dust241999
f338f41cb3 Fixing support for Vertiv-PDU - Issue 11608 (#12923)
* Trying to add basic support for Vertiv PDU power graphs

* Trying to add basic support for Vertiv PDUs and power graphs

* Update geist-watchdog.yaml

* Update geist-watchdog.yaml

* Update vertiv-pdu.yaml

* Add files via upload

* Add files via upload

* Add files via upload

* Update geist-watchdog.yaml

* Add files via upload

* Delete vertiv-pdu.yaml

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-05-27 14:58:13 +02:00
PipoCanaja
b55e44a2b4 xDP - ifAlias should be last checked in function find_port_id (#12904)
ifAlias should be last
2021-05-26 00:17:48 +02:00
dust241999
52f78b9ef7 Fixing Vertiv/Geist following 11608 (#12920)
* Trying to add basic support for Vertiv PDU power graphs

* Trying to add basic support for Vertiv PDUs and power graphs

* Update geist-watchdog.yaml

* Update geist-watchdog.yaml

* Update vertiv-pdu.yaml

* Add files via upload

* Add files via upload

* Add files via upload

* Update geist-watchdog.yaml

* Add files via upload

* Delete vertiv-pdu.yaml

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-05-26 00:16:20 +02:00
Paul Dee
fdde13af90 Documenting spelling (#12919)
setup / set up

Update Style-Guidelines.md

sp/gram

Update SNMP-Trap-Handler.md

Update RRDCached.md

setup = noun
set up = verb/idiom
2021-05-25 21:44:57 +02:00
PipoCanaja
96479ab9b9 Filter unwanted data in Routes Ajax reply (#12847)
* filter unwanted data in AJAX reply

filter unwanted data in AJAX reply

filter unwanted data in AJAX reply

filter unwanted data in AJAX reply

cleaner fix now

* add tooltips, except when text contains 'overlib' calls

* readability

DestType lost in the game

DestType lost in the game
2021-05-25 15:39:20 +02:00
Jellyfrog
556c265934 Initial HAProxy ALOHA support (#12889) 2021-05-25 15:33:18 +02:00
resq
8da002f47c newdevice: Added support for PowerWalker VFI (#12891)
* newdevice: Added support for PowerWalker VFI

* discard powerwalker 500r from being discovered as cyberpower

* add version_regex and correct num_oid: upsInputCurrent

* update version_regex, add hardvare_regex
2021-05-25 15:33:04 +02:00
Tony Murray
0c8d442091 Fix type error (#12899)
Possible float in convertToBytes.
Assuming the original number is a float and it isn't accurate, could end up with a float.
2021-05-25 15:30:50 +02:00