* 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
* 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.
* 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>
* 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
* 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>
* 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.
* 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
* 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
* 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>
* Add Epson Projector as new OS
* Remove poller definitions
* Remove poller definitions
* convert os to epson-projector
* fix delete doc/Alerting/Transports.md
* 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
* mib for WaterLeakDetectore
Add support for WaterLeak detection
rename OS
rename OS
rename OS
remove unnecessary module restrictions
space
* disable only some modules
* 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
* 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
* 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>
* 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>
* 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
* 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