Commit Graph

18538 Commits

Author SHA1 Message Date
mathieu-artic
e27403fc2c add lte/umts support (#13002) 2021-07-06 00:34:50 +02:00
martinberg
504fd0b248 Wrong statement used (#13001) 2021-07-05 18:38:52 +02:00
PipoCanaja
63b9896ac4 Leave it to generate_device_link for sysName/hostName/IP (#13000)
* avoid forcing displayed name, so generate_device_link decides according to LibreNMS config

* same fix for BGP display

* other generate_device_link occurences

* more

* more
2021-07-04 20:58:05 +02:00
Gregory Bers
141653cc01 Added support for the Rittal LCP DX Chiller (#12995)
* Added support for the Rittal LCP DX Chiller connected to a Carel pCOWeb card. A custom MIB is also provided.

* removed .mib extension from CAREL-RITTAL-LCP-3311-MIB

* Added snmp test data
2021-07-04 17:52:40 +02:00
Justin Bronn
d214ec4a28 TP-Link Jetstream DDM and PoE Support (#12990)
* Add TP-Link's DDM and PoE MIBs via their 20210310 archive.

* Add support for DDM sensors on TP-Link Jetstream switches.

* Add support for PoE on TP-Link switches.

* Fix linting issues.

* Fix group discrepancy in test data.

* Fix multiple discrepancies in DDM test data.

* Improve `num_oid` and `index` fields for Jetstream PoE sensors.

* Test data for PoE sensor `index` change.

* Convert Jetstream sensors to YAML and refine index names.
2021-07-04 17:51:57 +02:00
paulierco
bc5a62dcbd Alcatel-Lucent aos7 LLDP Neighbors (#12886)
* 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
2021-07-03 15:23:58 +02:00
PipoCanaja
7e2ce6179a Added VRP ICMP SLA (NQA in huawei naming) support (#12973)
* added VRP icmpAppl SLA (NQA in huawei naming) support

* style

* style

* remove unnecessary values in RRD

* enable SLA for VRP devices

* tests
2021-07-03 15:16:38 +02:00
Dag Bakke
e9c8a3c337 extended Eaton M2 EMP g2 (#12994)
* Added minimal support for Eaton EMP gen2 (Env. Monitorin Probe).
Probe is readable from both xups and eaton sensor mib. Many more details available in sensor mib.

* Added states for state sensors.
Added snmprec for an Eaton 9px with firmware 2.0.5 and a connected EMPg2 device.

* added an snmprec for a device with a connected emp g2, and renamed the existing snmprec so we can refer to it as a variant

* readded xupsEnvAmbientTemp sensor
2021-07-02 21:43:03 +02:00
Sean
6f7d0b2027 Fix typo in filename (#12996)
Was introduced 10 years ago by commit 63b25bb2f.
This page seems not used in any code but accessible by the URL:
https://libre.nms/device/device=1/tab=graphs/group=ipSytemStats/
2021-07-01 16:21:56 +02:00
martinberg
131f5c7e87 Option to filter Oxidized groups (#12966)
* Add support for Liebert humidity setpoint and UPS powerfactor

* Option to ignore groups so they are not sent to Oxidized

* Revert "Add support for Liebert humidity setpoint and UPS powerfactor"

This reverts commit c338528aba.

* Updated docs

* Added ignore_groups option

* Added descriptions and updated translations

* Update settings.php

* Fixed typo

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-06-28 12:53:16 +02:00
paulierco
c505040289 Alcatel-Lucent AOS6 to yaml (#12982)
* first

* add missing ifName

* oid for stacking and style

* add missing ifName

* revert stacking

* remove stacking mib

* remove PS-1
2021-06-28 12:42:34 +02:00
Adam
824a4e4d42 Squid can return OIDs out of order (#12987)
Squid can return OIDs out of order, without -Cc the proxy doesn't pass through correctly.

Solution found via this link - http://www.squid-cache.org/mail-archive/squid-users/200411/0622.html
Currently testing with CERN Frontier Squid Fork.
2021-06-26 10:41:56 +02:00
rhinoau
450463f7b1 filter out NULL lat/lng values from Geographical Map display queries (#12985)
* filter out null lat/long values from map display queries

* removed space

* and the 2nd one

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-06-25 01:33:20 +02:00
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