Commit Graph

1841 Commits

Author SHA1 Message Date
Tony Murray
014213680f
Move Config loading to a service provider (#13927)
* Move Config loading to a service provider
That way other service providers can depend on it
Move various random listener registrations into the EventServiceProvider
Various startup cleanup

* Config::persist Set live variable before persisting incase db update fail

* Disable strict mode for legacy code (init.php)

* Disable debug after os test data is gathered

* remove Eloquent::boot it is never used

* remove Eloquent::version

* lint fixes

* style fixes

* there is no c_echo here
2022-04-22 19:12:07 -05:00
mzacchi
4aaf6f2905
netscaler new counter metrics (#13323)
* Update netscaler.yaml

* Create netscaler.snmprec_sensors.snmprec

* Rename netscaler.snmprec_sensors.snmprec to netscaler_sensors.snmprec

* Create netscaler_sensors.json

* Update netscaler.json

* Update netscaler.yaml

* Update netscaler.json

* Delete netscaler_sensors.json

* Delete netscaler_sensors.snmprec

* Update netscaler.yaml

* Update netscaler.json

* Update netscaler.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-04-22 01:57:36 -05:00
Tony Murray
d026e9f0cc
Allow unordered OIDs (global and per-os) (#13923)
* Allow unordered OIDs (global and per-os)
Fix global no_bulk setting, was ignored before
(to fix global needed to rework Config::getCombined() a bit to allow a global prefix to be specified)
Removed invalid use of getCombined and updated tests

* fix whitespace

* update os schema
2022-04-21 21:49:26 -05:00
Tony Murray
9c126572a2
Fix validation page (#13929)
* Validation web page fixes

* Validation web page fixes

* update baseline
2022-04-17 08:38:16 -05:00
Tony Murray
849fa21ea0
Revert "Fiberstore Network Management Unit (#13813)" (#13925)
This reverts commit c5502789b9.
2022-04-15 12:22:36 -05:00
Jonathan J Davis
c5502789b9
Fiberstore Network Management Unit (#13813)
* FS OAP OEO and EDFA mibs

* definitions and discovery yaml

* current dbm state temperature and voltage updates

* update on poller and discovery modules

* test data

* removing unneeded pollers and discovery modules as requested

* update to os test data

test data now reflects fs-nmu details instead of module details as module may not be present at previous oid or module may not be present at all in the device

* OS update and Test Date Updates

* channels numbers

* removal of default true poller and discovery modules

* reintroduced previous OEO module data

* StyleCI fixes

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-04-15 10:30:41 -05:00
Simon Smith
68b49a0df1
support tplink routers (#13922)
* support tplink TD-W routers

* use sysDescr_regex instead

* Create tplink_dsl

* Rename tplink_dsl to tplink_dsl.snmprec

* add test tplink td-w9970

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-15 08:08:00 -05:00
Tony Murray
0a84098211
Port Validation Page to Laravel (#13921)
* Revamp validate web page
 to load page then validate, instead of validate then load page

* style fixes

* lint cleanups

* fixes

* translations and a couple fixes

* style fixes

* move result serialization into the class.
2022-04-14 11:22:40 -05:00
Neil Lathwood
36ba278d1c
Added missing test files for Dell PowerVault ME4024 (#13884)
* Added missing test files for Dell PowerVault ME4024

* Updated files

* reverted yaml file

* Updated yaml file

* reverted yaml file

* Updated json test file

* Update dell-powervault_me4024.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-11 22:34:10 +01:00
Dan Kerse
128286a40b
PrimeKey Improvements (#13901)
* Use OID names for indexing

* Fewer, (mostly) longer walks

* Use bulkwalk
2022-04-11 22:25:20 +01:00
William Irvine
5672d10a79
Add ISIS discovery and polling for iosxe devices (#13880)
* Add ISIS discovery and polling for iosxe devices

* remove ModuleModelObserver

* add php stan exclusions as they are already present for the base module

* change port_id to cached lookup

* Create model object instead of using arrays and set properties directly

* remove unneeded space...

* remove null from non nullable field

* revert to extending from ciscowlc rather than os

* remove OS module

* remove phpstan exclusions and fix errors

* add spacing...

* add spacing....

* add spacing

* again...

* Add tests

* Update Iosxe.php

* Update IsisAdjacency.php

* Create 2022_04_08_085504_isis_adjacencies_table_add_index.php

* Update db_schema.yaml

* Update iosxe_asr920.json

* Update Iosxe.php

* Update Iosxe.php

* Update junos_mx5t_isis.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-08 16:33:41 -05:00
Dan Kerse
b33bbd472e
Add support for PrimeKey Hardware Appliance (#13806)
* Add support for PrimeKey Hardware Appliance

https://doc.primekey.com/ejbca-appliance
https://doc.primekey.com/signserver-appliance

https://doc.primekey.com/ejbca-appliance/operations/webconf-configurator-of-hardware-appliance/monitoring

* Correct off-by-one error for Galera states

* Add load multiplier

* Don't poll transaction ID, it's too messy

* Tabs -> spaces

* Don't modify system load. (Is this a %age or not?)

* CUP moves Load -> Count

* CPU moves Load -> Count

* Now I have MiBs. Attempts to use them are to date unsuccessful

* Removed numeric oids entirely

I'm not sure how easy it will be to conver this to YAML.

* Formatting

* More formatting

* Numeric it is

* Fix States

* Numeric oids

* Shorten Descriptions

* Add DB threshold

* Percent -> Yaml

* Temperature -> Yaml. Relaxed num_oid validation

* Fanspeed -> Yaml

* Volgate -> Yaml

* Count -> Yaml

* State -> Yaml

* Tweak snmp_flags

* minimize icon

* Check if first_word function is required

* Incorporate feedback

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-08 06:23:00 -05:00
James
b3019f7944
Enhancements for Zyxel OS (#13897)
* Add DBm and State Sensors

Added extra MIB files
Added Dbm levels on ports
Added Stacking State Sensors

* Added include for zynos.inc.php

File patch - includes/discovery/ports/zynos.inc.php

* Create ZYXEL-STACKING-MIB

Official Zyxel MIB

* Create ZYXEL-TRANSCEIVER-MIB

Official Zyxel MIB

* Added test file zynos_xgs4600.json

* Create zynos snmprec test file

* CENSORED zynos_xgs4600.json

* Created new polling file for Zynos ports

Converts zynos SWP port style to be 1/1 style

* Created new discovery for Zynos ports

Changes zynos SWP ports to be 1/1 style during discovery

* Fixing ci complaints in discovery/ports/zynos.inc.php

* Fixing ci complaints in polling/ports/os/zynos.inc.php

* fixing more ci complaints in discovery

* Updated Zynos.snmprec

* Updated zynos.json

* Updated zynos.json

* Removed ifDescr pre-cache

* Removed pre-cache from zynos.yaml

* Reverted zynos.snmprec

* Restored zynos.json

* Updated zynos polling to use zeropad

* Updated zynos discovery to use zeropad

* Updated zynos.yaml

Updated zynos.yaml to include ifname: true to change port names and added '/^ZyXEL/' to sysDescr_regex

* Update zynos.inc.php

* Update zynos.inc.php

* Update zynos_xgs4600.json

* Update zynos_xgs4600.snmprec

* Re-Generated Zynos.json

* Fixed ifOperStatus in Zynos.json

* Delete zynos.inc.php

* Update ports.inc.php

* Added new test data

* Updated zyxel test data and discovery

* Update ports.inc.php

* Update zynos.snmprec

* Updated zynos.json

* Update Zynos.json

* Fix StyleCI issues

* Update zynos.json

* Update zynos.json

* Update zynos.json

* Updated zynos mgs3712.json

* Update zynos_mgs3712.json

* Added back old SFP discovery

-SFP Temperature
-SFP Voltage
2022-04-07 20:49:03 -05:00
Tony Murray
75ba74fe5b
Migrate addhost.php to lnms device:add (#13870)
* Migrate addhost.php to lnms device:add
Have snmp-scan.py call lnms device:add (make exit codes line up so this works)
Fix issue with ping only devices trying to detect os via snmp
Reorder options in device:add help and improve formatting
Update docs to remove references to addhost.php
Fix a bit of code that was in functional code

* fixes

* fix snmp version message
2022-04-04 10:41:18 -05:00
Andy Norwood
5c53f2984f
Added Cisco Err-Disable interface event trap handler (#13855)
* Add Cisco Err Disable Mib

* Add new trap handler class

* Add ErrDisabled event handler

* Add ErrDisalbed event test

* remove unused line

* no ifindex message change

* Update unknown ifIndex message

* Add bad IfIndex test

* update description text

* style fixes

* change param to True for toString

* Add return type to test function

* style fix

* remove toString() and explode()

* remove unused line
2022-04-01 21:02:51 +01:00
Fehler12
cc7345d54a
Fix usw flex switch hardware detection (#13877)
* Fixeed Hardware and Versiondetection for US-8 and USW-Switches with Version 5

It seems that the same model and same firmware version respond with different SNMP-records, depending on Hardware revision. This should be more general

* removed "linux" from version string in some cases

Changed regex for better version isolation and updated test data

* Update edgeswitch.yaml

Corrected the edgeswitch Test-Version detection. It seems that there are 4 cases :(:

USW GigaBit Ethernet Switch, firmware 5.76.7.13442
US-8, 5.76.7.13442, Linux 3.6.5
USW-Flex 5.76.7.13442
EdgeSwitch 24-Port 250W, 1.0.1.4720839, Linux 3.6.5-f4a26ed5

* Removed false change. Changed 8XP test data

Removed false change. Changed 8XP test data

* ' -> "

' -> "
2022-03-27 22:50:20 +02:00
Fehler12
9785522d13
Added Polycom Lens SNMP support. (#13876)
Added Polycom Lens SNMP support.
2022-03-25 23:54:06 +01:00
PipoCanaja
69c1fde4c9
McAfee Proxy Sensor name update (#13853)
* fix RRD descriptions

* more

* FixTests
2022-03-18 14:19:48 +01:00
PipoCanaja
c28cb759aa
Added WLD version 2 device support (#13849) 2022-03-14 21:33:10 +00:00
eskyuu
c13975524c
Fix an issue with the APC current discovery (#13837)
* Fix an issue with the APC current discovery

* Formatting fixes

* Formatting fixes

* Added test data for APC PDU sensors
2022-03-13 22:55:08 +01:00
Tony Murray
1bfd411995
New device:add code (#13842)
* New device:add code
pre-requisite for updating other code paths
includes option to set display name
separate validation code from device creation

* remove duplicate community and v3 creds

* style fixes

* some lint fixes

* fix phpstan

* Exception cleanup
improved messages and translations

* port association mode to enum
well, pseudo enum

* defaults and cleanups

* fixed/improved validation messages

* fix tests

* fix stupid ide refactor mistake

* lint fixes
2022-03-12 16:14:32 -06:00
Charly Forot
e280ea1c8d
[new OS] Alpine OptoElectronics TDCM-EDFA support (#13825)
* add alpine optoelectronics mibs for tcdm-edfa

* add alpine optoelectronics logo

* add alpine optoelectronics icon

* add inital detection

* add yaml discovery file

* improve yaml discovery for webUI

* rename os to alpineoe

* rename files

* replace svg logos by png

* add success tests

* Revert "replace svg logos by png"

This reverts commit 71f3dacef6.

* Revert "Revert "replace svg logos by png""

This reverts commit cd4f4cf5e0.

* Revert "add success tests"

This reverts commit 27bb3a96e4.

* add success tests with right icon

* Remove sysDecr not necessary for discovery
2022-03-11 09:48:30 +01:00
Andy Norwood
061c2e94f4
Add APC upsOnBattery & powerRestored trap handler (#13836)
* Add new apc classes to snmptraps config

* Added new classsed

* Added onbattery handler

* Added Power Restored handler

* Add onbattery test

* Added powerRestored test

* style fixes

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2022-03-10 22:28:32 +01:00
Andy Norwood
f7ca687ceb
Add OspfTxRetransmit Trap Handler (#13824)
* OspfTxRetransmit class

* Message tidyup

* Initial test class

* add ospftxretransmit class

* add empty line

* chnage int to string in traptext

* new block to catch non lsupdates trap

* Add second test

* lint fail changes

* extra space removed
2022-03-10 21:29:23 +01:00
martinberg
24857b98ce
Add VS state for Gaia (#13831)
* Added VS state

* Better naming

* Updated test data
2022-03-10 21:24:56 +01:00
Andy Norwood
20e64d792c
Add APC SmartAvrReducing trap handlers (#13839)
* add new classes

* add AvrReducing handler

* Add AvrReducing Test

* add AvrReducingOff handler

* add AvrReducingOff Test
2022-03-10 21:13:09 +01:00
Jellyfrog
42c16de54c
Fix tests for MariaDB > 10.5.15 (#13829) 2022-03-06 19:52:50 +01:00
bonzo81
d07e3d6148
Cisco Mac address violation trap handler (#13811)
* Secure MAC Violation event

* Add Cisco Port Sec Mib

* Add CiscoMacViolation class

* removed $ifIndex and $port reference

* change ifDescr for ifName

* New test

* style fix
2022-02-26 20:39:03 +01:00
Wolfgang Steudel
249e5e69b0
Correct divisor in discovery definition for Verity PDUs (#13768)
* Update vertiv-pdu.yaml

VERTIV-V5-MIB states UNITS "decivolts (rms)" for pduPhaseVoltage

* Update vertiv-pdu_mn03edr1.json

Updated test data

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-02-18 16:58:04 +00:00
Guilherme Poletto
18ca4566eb
New sensors for huawei vrp <tested on NE8000 platform> (#13352)
* Add EntityVoltage Sensors

* Add BoardPower Sensors

* Add Fanspeed Percent sensor

* Add Voltage_Status and Temperature_Status Normal|Minor|Major|Critical indicators, and internal Voltage and Temperature sensors

* set Minor alarm violations to warning status

* remove inconsistently applied empty lines between sections, and trailing newline that caused errors

* fetch thresholds for temperature.sensors and optical.RxPower from SNMP

* Added snmp testfiles for ne8000-m8 variant of VRP platform

* group sensors by card-identifier

* Regenerate testfiles for 5720-32x-ei

* Regenerate testfiles for the whole VRP family

* Optical Bias is reported as miliamps-mA, and not microamps-uA

* Implement divisor detection, VRP or NE8 prepended on sensor for debug-testing

* remove VRP or NE8 prependeds on sensors(put there for debug/testing only)

* use parent OIDs for walking and naming

* ignore per-slot power if unsupported

* regenerated snmp json testfiles

* sanitize bgp-peers value

* restore vrp.json test

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2022-02-14 10:05:18 +01:00
Heath Barnhart
978cd75a32
SNMP Traps: Brocade login traps (#13770)
* initial push

* Some modifications for unit tests
2022-02-12 16:42:28 +01:00
Jellyfrog
8f474dd4d4
Rework documentation (#13709)
* Rework documentation

* Slightly adjust theme

* wip

* fixes

* Remove unneeded header

* Re-added Acknowledgement.md file

* Added Acknowledgement.md to mkdocs.yml

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-02-08 23:02:28 +00:00
Peca Nesovanovic
ee00f59ce6
[terra] support for sdi410c / sdi480 (#13759)
* [terra] support for sdi410c / sdi480

* remove debug
2022-02-08 23:27:40 +01:00
Martin22
e88e53d1b0
Racom Ray: Added BER (#13758) 2022-02-08 11:32:49 +01:00
Heath Barnhart
a71feb1636
SNMP Traps: APC Overload Traps (#13726)
* push apc trap handlers

* added unit test

* removed CR and fixed test

* switch cr for lf

* fixing ci complaints

* fixing another ci error

* fixed unit test

* annotating test
2022-02-08 11:37:11 +02:00
Neil Lathwood
e3bba1e53d
Added system temperature support including state (#13743) 2022-02-03 11:29:34 +01:00
Fehler12
6263a15315
Lenovo think station Support (#13617)
* Add initial support for Lenovo ThinkStation server

* Initial Support for Lenovo ThinkStation Server - detection rules

* Lenovo ThinkStation MMIB Files

* Added test data for Lenovo ThinkStation

Model SR250

* trying unit test fix

trying to correct unit test failures

* Revert "trying unit test fix"

This reverts commit 7f44689e8a.

* Create lenovoXClarityIMPI_lenovoxcc.snmprec

Added snmprec

* Update lenovoXClarityIMPI.yaml

Removed Null-Value (over) in yaml

* Update lenovoXClarityIMPI.yaml

Fixed typo

* Update lenovoXClarityIMPI.yaml

Fixed another typo in os yaml

* Update lenovoXClarityIMPI.yaml

Added {{ $index }} and removed skip_values

* Update lenovoXClarityIMPI.yaml

Added index in yaml

* Update lenovoXClarityIMPI.yaml

* Update lenovoXClarityIMPI_lenovoxcc.json

* Update lenovoXClarityIMPI_lenovoxcc.json

* Updated detection rule

Removed N/A skip, removed unecessary state_name.

Removed $index in oid, because otherwise the detection fails for some reason
Excluded num_oid because otherwise the poller fails to detect the values.

* Code improvements and test data

I've implemented what I've learned from my Fujitsu pull:
- added test data
- corrected MIB file names and folder

* Code improvements

Removed an empty array and two empty lines.

* Code improvements

* Delete LENOVO-SMI-MIB DEFINITIONS

This file is named wrong and we already have `LENOVO-SMI-MIB` so looks to be duplicated

* Changed OS name

Changed OS name

* Fixed test data for os name change

* Update LENOVO-PRODUCTS-MIB

Reupdated Lenovo-Products-MIB to 2017er Version

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-02-02 07:53:32 -06:00
Peca Nesovanovic
a3bd1b9a69
[mikrotik] added ipv6 route discovery (#13737)
* [mikrotik] added ipv6 route discovery

* ci
2022-01-31 18:00:30 +01:00
Tony Murray
29bd6789cb
Stp module rewrite (#13570)
* STP module rewrite WIP

* Finish rewrite

* Ignore disabled and log root/topology changes

* Remove interfaces for now

* fix style

* Lint fixes

* Document ResolvesPortIds and hide map functions

* whitespace fixes

* Revert to stpInstances in case someone writes mstp support

* missed one

* phpstan fixes

* Handle table and oids separately

* forgot to register observer

* Test data and correct non-table handling in SnmpResponse->table()

* update test

* test data

* revert aos7 silly things

* minimal polling

* Update test data

* order ports_ntp and rename new field to port_index

* forgot the db_schema

* revert ciena-sds port things

* MSTP support, maybe

* Adding test data

* Filter bad lines instead of discarding the entire snmp response
and capture fixes and test data

* fresh data

* add os data

* update data, ignore unfound ports, obviously bad device implementation.

* fixes

* Ignore context files in os detection test

* Remove empty table data

* add ciena-sds vlan

* designatedCost column is too small

* Update stp webui

* Refactor code to interfaces, to allow vendor mibs

* update schema

* fix issues added by abstraction

* STP fixes

* Default to no context for vlan 1

* never store vlan 1

* Update test data

* remove eltex brokenness

* fix style

* fix stan

* Fix Rewrite MAC to Hex padding with floats

* fix sqlite migration
2022-01-30 16:28:18 -06:00
Wheel
2dbfdda717
Ubiquiti Airfiber60 (#13680)
* Add ubiquiti Airfiber 60

* New AF60 data and MIB

* Stylci fix and small additions

* Update test data

* Stylefix

* Remove the weird ubiquity oids containing encoded mac addresses

* Updated test data

* Remove more complex sensors for now to be added after the conflict airos airos-af60 is solved

* Fix hardware and OS

* To be verified is this is the most practical / clean way of doing it

* Advanced wireless and MCS state sensor

* Fix link capacity multiplier and active link

* Test data update fix lint

* Maybe better
2022-01-29 21:10:45 -06:00
Konstantin
e628bf5237
Added Volius (#13723) 2022-01-29 14:52:05 +01:00
Konstantin
f3398780fe
Added sensors ZXA OS (ZTE GPON) (#13724) 2022-01-29 14:51:21 +01:00
Tony Murray
6bd0bb1f66
Speed up tests by reducing snmp timeout (#13725) 2022-01-28 12:07:05 -06:00
Josh Jameson
0b85bceb34
Fix Temperature Sensor for AirOS 8.7.4+ (#13655)
* Fix Temperature Sensor for AirOS 8

* Update airos_airos8.json

* Update airos.json

* Add new skip_values feature to deal with Ubiquiti nonsense.
Tweak test data to test the change
fix not_regex

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-26 16:02:57 -06:00
Tony Murray
f195478444
lnms dev:check add --os-modules-only option (#13700)
* lnms dev:check add --os-modules-only option
And improve debug output

* Style fixes

* Add false flag
2022-01-26 08:31:51 -06:00
Tony Murray
4b4e7ce6fb
Fix docs test failure (#13710) 2022-01-26 08:30:00 -06:00
Jellyfrog
8b67feabd7
Improve Proxy::shouldBeUsed (#13702)
* Improve Proxy::shouldBeUsed

* Update Proxy.php

* Create ProxyTest.php

* Update ProxyTest.php

* Update Proxy.php
2022-01-24 14:55:52 -06:00
Peca Nesovanovic
2d24b2cf9d
merge enviromux-micro in existing NTI (#13696)
* initial support for enviromux-micro

* merge MICRO to existing NTI
2022-01-21 15:33:42 +01:00
Peca Nesovanovic
fb90b1813f
added new sensors to mes23xx (#13671)
* added new sensors to mes23xx

* ci

* copy/paste error

* ci

* cleanup + testdata

* yaml

* yamlnew

* added [no_bulk] for PoE discovery

* fully qualified OID name
2022-01-20 08:41:47 -06:00
Heath Barnhart
2f2d43bab3
New OS: Adva XG 304 (#13668)
* initial commit

* adding snmpsim data

* update yaml and snmpsim

* fixed os tests

* Applied style changes

* Additional style change

* changed os discovery from php to yaml

* relaxing sysDescr regex
2022-01-16 18:27:27 +01:00
Peca Nesovanovic
592a0efa51
added oids.no_bulk os setting (#13666)
* forcewalk param

* [snmp][no_bulk]

* var names, test, schema

* Key off OIDs, not mibs

luminato is POC and needs to be reverted before merge.

* fix up os schema

* docs

* remove luminato arbitrary changes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-15 09:59:23 -06:00
Konstantin
3e0d8b8a24
Added initial detection MES2324F or MES2324FB (#13669)
* Delta Icon

* CET Power Firts Commit

* Fix objectID Eltex MES23XX

* cetpower.yaml update

* delete UPS.mib and update cetpower.yaml

* cetpower snmprec add

* Update delta.svg

* Rename CET-TSI-MIB.mib to CET-TSI-MIB

* Rename CET-TSI-SMI.mib to CET-TSI-SMI

* Create cetpower.json

* Update cetpower.json

* Update eltex-mes23xx.yaml

* Eltex first commit

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-14 09:29:36 -06:00
Henne Van Och
8f8872520a
Add supervisord application (#13673) 2022-01-13 18:19:27 +01:00
Tony Murray
303b005faf
Fix delta icon wrong (#13667) 2022-01-11 08:09:18 -06:00
Konstantin
759dcb1bab
Added CET Power T2S TSI (#13645)
* Delta Icon

* CET Power Firts Commit

* Fix objectID Eltex MES23XX

* cetpower.yaml update

* delete UPS.mib and update cetpower.yaml

* cetpower snmprec add

* Update delta.svg

* Rename CET-TSI-MIB.mib to CET-TSI-MIB

* Rename CET-TSI-SMI.mib to CET-TSI-SMI

* Create cetpower.json

* Update cetpower.json

* Update eltex-mes23xx.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-10 08:30:18 -06:00
Fehler12
5395961b65
Initial Support for Fujitsu RX300 with iRMC4 (#13631)
* Initial Support for Fujitsu RX300 with iRMC4

Initial Support for Fujitsu RX300 with iRMC4 (might work for other servers, too)

* Fixed Typo in power consumption

* Changed MIB-Name and added sysDescr for more granular detection

* Update fujitsuiRMC_rx300.snmprec

changed serial to a generic one

* Update fujitsuiRMC_rx300.json

Updated to use correct serial number

* Update fujitsuiRMC_rx300.snmprec

* Update fujitsuiRMC_rx300.json

* Tried to create a discovery yaml with valid num_oid and valid test data

* Update fujitsuiRMC.yaml

removed remaining index parameter (forgot them from previous testing)

* Update fujitsuiRMC_rx300.json

Updated test data to reflect recent changes

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-01-09 18:58:53 -06:00
Arnoud Vermeer
e2b32c0ca2
Smartoptics dcp m 40 zr (#13634)
* Initial commit of DCP-M

* Match on system name DCP

* Fix matching regex

* Add pre-cache and dbm discovery

* Show dbm graph

* Adding snmpsim data

* Fix styleCI issue

* Detect dcp-m mib

* DCP-M Progress

* Fix CI issue

* Removing pre-cache and dbm files
2022-01-09 18:55:02 -06:00
Tony Murray
6dc3e42179
Basic ZTE ZXA10 detection (#13658)
and mark snmpEngineTime as bad
fixes: #13576
2022-01-09 11:36:59 -06:00
Peca Nesovanovic
2d57e49caf
Teleste Luminato ports & qam/asi output sensors & yaml (#13616)
* Luminato: bitrate sensor

* bitrate sensor Eloquent

* luminato ports

* luminato ports styleci

* luminato QAM/ASI sensor

* luminato QAM/ASI sensor styleci

* YAML & test

* drop debug $ver from sensor type

* mess with Teleste ifExtPhysInterface/ifExtLogiInterface

* styleci

* test data

* mistake in port discovery

* left out Graphs->Health->Overview->Bitrate label

* fixed Bitrate graph, copy/paste errors
2022-01-08 18:17:08 +01:00
Neil Lathwood
6d95be5a67
Updated XOS (Extreme) processor data to use correct OID (#13633)
* Updated XOS (Extreme) processor data to use correct OID

* Updated test data
2022-01-06 12:12:04 +01:00
Tony Murray
785b0bae53
Disable VRP VLANs, seems to be a bug in snmpsim snmpbulkwalk (#13649) 2022-01-04 07:30:27 -06:00
johnstruse
b84e471587
Fix EdgeOS hardware detection (#13629)
* Fix EdgeOS hardware detection

* Add EdgeRouter Lite test data
2021-12-20 09:19:07 +01:00
Tony Murray
d5656d826e
Tests dont include empty tables (#13619)
* Do not include empty tables in test data

* empty data is simpler to check now

* Update test data

* revert comment options that block update all test data

* clean existing data

* fixes

* another fix

* remov extra sensors???

* why is that using that ip...

* missed an empty table

* missed one

* restore ftos

* revert another ftos

* revert ird

* restore timos

* restore timos_7705

* oops

* double oops

* timos mpls

* timos_hc

* another timos_hc fix
2021-12-15 19:48:44 -06:00
Tony Murray
478f3d80d9
Fix axiscam serial format (#13620) 2021-12-14 23:45:57 -06:00
Peca Nesovanovic
fefeceb0d0
Luminato: CPU, HW type, HW ver, Fan state discovery (#13608)
* Luminato: CPU, HW type, HW ver, Fan state discovery

* CPU / yaml

* test data
2021-12-12 23:22:03 -06:00
Nocturr
e0774fc677
Add Initial Support for VMware SD-WAN / Velocloud (#13536)
* Add Initial Support for VMware SD-WAN / Velocloud

* change os name to velocloud

* update test data

* rename os definition file

* missed one
2021-12-02 15:27:41 -06:00
carranzamarioagustin
1675cd8c17
SmartAX supports IF-MIB, skip custom polling and fix polling GPON ports (#13579)
* Smartax supports IF-MIB, skip custom discovery and fix polling GPON ports in and out traffic

* This file seems to break GPON port polling on SmartAXes firmware versions R017 and R018, deleting the file fixes GPON polling

* Added necessary test files so that polling tests do not fail
2021-12-01 22:54:12 -06:00
Peca Nesovanovic
e23ad7947d
q-bridge-mib, discover missing VLANs, v2 (#13569)
* q-bridge-mib, discover missing VLANs v2

* copy/paste typo fix

* Use SnmpQuery

* Switch from Vlan_x to VLAN x

* Cleanup
Revert accidental change
Incorrect table depth (even though the outcome is the same)
And test data that was explicitly Vlan_

* fix test data

* update routeros_vlans

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-12-01 07:24:35 -06:00
Tony Murray
5ce7a5ad0e
snmp.unescape setting (#13590)
* snmp.unescape setting
Works around issue with (I think net-snmp < 5.8.0) where it adds backslashes.

* Updated test data
2021-11-30 21:33:18 -06:00
mathieu-artic
49587cccf1
Add better support for Eaton UPS (#13588)
* fix eaton ups

* add serial number

* regex
2021-11-30 22:59:32 +01:00
Jellyfrog
29bdfe40a3
Use phpstan-deprecation-rules instead (#13582)
* Replace deprecated functions

* Use phpstan-deprecation-rules instead
2021-11-30 09:33:14 +01:00
Tony Murray
9d2633bf09
Escape net-snmp unformatted strings, try 2 (#13584)
* Escape net-snmp unformatted strings, try 2

* Add some tests
2021-11-30 00:12:42 -06:00
Martin22
5c62115486
Ray3 - Added memory chart (#13557)
* Memory graph added

* Added test data

* New test data
2021-11-30 02:34:39 +01:00
TheGreatDoc
82d008ca95
Added support for Himoinsa gensets status state sensors (#13456)
* Fix missing mib_dir in definition

* Added state sensors

* snmprec data

* json data

* delete unused snmprec

* License and Author

* remove unused json data

* Fix style issues

* Fix more style issues coz im blind

* Fix more style issues coz im blind last

* Refactored

* Why do we loop?

* Fix style issues

* Update polling

* Refactor to use methods

* Fix a pair of style issues

* Updated test files

* Convert to yaml

* Wrong description on Mode

* Added another state + fixed some indexes

* Dunno what happened

* Fix for phpstan level 6

* Fix forstyleci

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-11-26 01:18:49 -06:00
David Girón
364fa540cc
Add discovery for APC EPDU1132M (#13545)
* Initial discovery for APC EPDU1132M

* Rename current APC ePDU model to specific

* Add more conditions to test

* Ignore APC ePDU

* Add version field

* Update version in test file

* Add JSON test data

Also remove hostname (was literal question mark), was causing issues
2021-11-25 22:40:33 +01:00
Peca Nesovanovic
21edc086ca
split Eltex-mes OS to mes21xx / mes23xx. + few improvements (#13544)
* split Eltex OS to 21xx and 23xx

* styleci & typo

* yaml cleanup

* removed MIBs from first release

* tidy up yaml

* test data
2021-11-24 21:34:48 +01:00
Tony Murray
61eae8fb6a
Mark OID not increasing as invalid (#13548)
* Mark OID not increasing as invalid

* Provisional test data

* verified return code is 1
2021-11-24 18:22:15 +01:00
Wheel
42fdbea126
Veeam SNMP traps fix and extend (#13549)
* Veeam fix and extend part 1

* Veeam SNMP traps

* StyleCI

* StyleCI

* Fix typo

* Lint

* Fix tests

* Fix tests :fingerscrossed:

* Think i get it now

* This is it?

* gotta be it

* Final

* Again
2021-11-24 18:20:56 +01:00
Martin22
382ef6219b
Fix discovery and pooling Racom Ray2 (#13553)
* Fix discovery and pooling

* Added test data

* Removed author

* Fix

* Discovery transcribed into json

* Fix

* Fix2

* Fix3
2021-11-24 18:18:12 +01:00
Tony Murray
790c4b3402
Configurable device display name (#13528)
* Configurable device display name
You can just set the display name in device settings.

It also accepts simple template format with  the variables: hostname, sysName, sysName_fallback, ip

Default controlled by device_display_default, (set from old force_hostname_to_sysname and force_ip_to_sysname settings

* remove second argument to format_hostname()

* Style fixes

* Update schema

* update phpstan baseline

* Improved settings strings (and add for translation)
2021-11-18 15:46:22 -06:00
Tony Murray
c79b187d72
Poller rewrite (Try 2) (#13525)
* core WIP

* try to finish up

* trim space too
and a couple of cleanups

* update test data

* put escapes back

* another net-snmp difference

* correct copy paste error

* WIP

* Use new code YAY

* a tiny bit more

* Kind of working

* Handle manual modules correctly

* convert core to modern module

* Only save metrics if modules is not overridden

* correct module exists check

* database error handling

* debug handling

* restore bad changes

* Introduce Actions
 RunAlertRulesAction
 UpdateDeviceGroupsAction

* tweaks to output

* Fix some issues in outside code

* Style fixes

* fixes to module status checks

* typehints!

* Use logger only and DI

* OS module not named correctly

* Work on quiet output a bit more

* generically don't change output when disabling debug if the driver is already stack

* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction

* restore legacy os module shim

* use the new poller code for tests

* PollingDevice event

* Fix some issues and enable/disable error reporting around legacy modules

* typehints

* fully update baseline

* Use Process for version commands so we don't leak debug output.

* don't detect rrdtool version in ci every time

* style fixes

* Warning fixes

* more fixes

* re-update baseline

* remove diff noise

* fix up alerts

* Catch exceptions in device ip lookup

* Revert accidental snmp.inc.php poller target change
(should have been ?: not ??)
2021-11-17 19:23:55 -06:00
hjcday
6d3382b1c4
RUTX fix sensor limits (#13526)
* fix sensor limits

* test data

* test data fixes

* try fix rut360 json
2021-11-17 15:30:54 +01:00
Tony Murray
f8764ddcb5
Revert "Poller command rewrite (#13414)" (#13524)
This reverts commit 1752d1efd4.
2021-11-16 21:40:29 -06:00
Tony Murray
1752d1efd4
Poller command rewrite (#13414)
* core WIP

* try to finish up

* trim space too
and a couple of cleanups

* update test data

* put escapes back

* another net-snmp difference

* correct copy paste error

* WIP

* Use new code YAY

* a tiny bit more

* Kind of working

* Handle manual modules correctly

* convert core to modern module

* Only save metrics if modules is not overridden

* correct module exists check

* database error handling

* debug handling

* restore bad changes

* Introduce Actions
 RunAlertRulesAction
 UpdateDeviceGroupsAction

* tweaks to output

* Fix some issues in outside code

* Style fixes

* fixes to module status checks

* typehints!

* Use logger only and DI

* OS module not named correctly

* Work on quiet output a bit more

* generically don't change output when disabling debug if the driver is already stack

* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction

* restore legacy os module shim

* use the new poller code for tests

* PollingDevice event

* Fix some issues and enable/disable error reporting around legacy modules

* typehints

* fully update baseline

* Use Process for version commands so we don't leak debug output.

* don't detect rrdtool version in ci every time

* style fixes

* Warning fixes

* more fixes

* re-update baseline

* remove diff noise

* fix up alerts
2021-11-16 16:59:46 -06:00
Tony Murray
7e98e03338
Polling cleanup, fix PHP warnings (#13460)
* Fix warnings up to Arbos

* fixes a-c

* a-r

* a-vrp

* There and back again

* Update test data, couple fixes

* PHPSStan fixes

* style fixes, and fix Asyncos, whoops

* flip serial back.......

* less bogus data

* Poweralert sysName during polling too

* make sure things are calculated in the correct order

* fix style and bad nullables

* update test data

* A comple more conversions

* cambium ptp, misc, and hardware_mib

* remaining except vmware-esxi

* Fixes

* Update baseline

* fixes and fix up baseline

* adjust SnmpQueryMock to upstream options change

* data corrections

* restore slashes

* correctly handle all options input in SnmpQueryMock

* undo ftos changes

* restore vccodec sysDescr
2021-11-14 14:58:13 -06:00
Tony Murray
0adf37b4e1
OSPF port module (#13498)
* OSPF to module

* Update mock

* lint and style fixes

* enums as strings
2021-11-12 13:49:09 -06:00
Tony Murray
666638eeaa
Fix bad snmp context option (#13497)
* Fix bad snmp context option
Just port queries to SnmpQuery and remove bad code to prevent new usages

* Allow unordered

* add stub on Mock
2021-11-12 12:40:37 -06:00
martinberg
20da6eedd9
Add support for Teltonika RUT360 (#13375)
* Init work on rutos-3xx

* Add RUT360 support in rutos-rutx

* Testdata

* Removed old files

* Removed unused pre-caching

* Undo changes to mib

* Modified rutx11 test data

* Changed state_name

* Revert "Changed state_name"

This reverts commit fb61f8df67.

* Changed state_name

* Changed state_name

* Changed state_name and hopefully fixes tests

* Changed rutx11 test data

* Changed state_name back

* Revert

* Fixed state_name to avoid collision

* Updated rut360 test data

* Modified rutx11 test data

* Fixed typo

* Updated test data for rutx11
2021-11-12 10:43:06 -06:00
Maikel de Boer
f1e768a4ae
Nokia SAR HMC (#13503)
* Added wireless MSE

* Add SAR HMC support

* add test data

* cleanup

* fixed style
2021-11-12 07:18:56 -06:00
Daniel Romero
ef4654d304
Support for PDUMNV30HVLX with PADM 20 (#13473)
* Test 4 for PowerAlert - TRIPPLITE PDUMNV30HVLX

* Modifying poweralert_3

* Remove test 4

* Delete duplicate sensors
2021-11-11 23:26:07 +01:00
TheGreatDoc
63b174595f
SNMP Trap handler: UpsTrapOnBattery (#13482)
* SNMP Trap handler: upsTrapOnBattery

* Forgot to add the config

* Fixed handler name

* Fix test
2021-11-11 10:08:36 -06:00
Tony Murray
06701870cd
Change how options are handled for SnmpQuery (#13488)
* Change how options are handled for SnmpQuery
Fix added backslashes when collecting snmp data.

* fix lint
2021-11-10 20:49:06 -06:00
Tony Murray
15632bb875
Fix net-snmp unformatted strings (#13486)
* Fix net-snmp unformatted strings
When net-snmp returns an unformatted string (with quotes around it), it also has backslashes to escape certain characters.  Remove those.

* Clean up sysDescr and sysName when setting to Device model.

* Lint fixes

* Hmm, additional formatting spots
2021-11-10 20:48:22 -06:00
Maikel de Boer
c37a5ad61e
Ciena 2 (#13491)
* Added wireless MSE

* new test data + small tweak in the Ciena support

* removed files

* removed files

* bit more tweaking

* test data
2021-11-10 15:23:53 +01:00
Peca Nesovanovic
9f2de7d605
Added initial IPv6 Address discovery for TP-LINK Jetstream (#13484)
* Added initial IPv6 Address discovery for TP-LINK Jetstream

* styleci cleanup

* styleci cleanup

* styleci cleanup

* split OS specific code in separate file

* styleci cleanup
2021-11-09 20:40:48 +01:00
Denny Friebe
f23c5c0e7b
Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header (#12749)
* Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header

* Raspberry Pi: Add new test data

* Raspberry Pi: Make styleci happy

* Raspberry Pi: Fix some more style issues

* Raspberry Pi: Use d_echo for array debug

* Raspberry Pi: Prevent processing if the extension is not present

* Raspberry Pi: Make styleci happy

* Raspberry Pi: Update test data

* Raspberry Pi: Remove debugging
2021-11-04 21:38:15 -05:00
Tony Murray
0862496e26
Fix api transport mult-line parsing (#13469)
* API transport fix parsing
parse templates after parsing user options, not before

* API transport tests

* fix style and lint

* remove accidental item

* fix more type issues
2021-11-03 13:37:57 -05:00
Jellyfrog
adbe435de4
Fix IPV6 test (#13468)
The test checks if 2001:db8... is a valid ipv6 *not* in reserved ranges.
A bug in PHP (https://bugs.php.net/bug.php?id=61700) made it wrongly pass.
2021-11-03 14:06:34 +01:00
Tony Murray
f4ee508f31
Run phpstan locally with lnms dev:check lint (#13458)
* Run phpstan locally with `lnms dev:check lint`
Separate result cache for deprecated functions so we don't break the cache every time.

* Skip phpstan flag
Skip all lints on ci except php lint (so we can check on multiple php versions)

* forgot default value

* fix up test cases

* Update LibreNMS/Util/CiHelper.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-11-03 00:17:35 +01:00
Garcia MICHEL
e0443293a0
Add iDrac physical disk state (#13264)
* Add physical disk for iDrac

* Add alert rule for iDrac Physical Disk

* Add test data
2021-11-02 23:26:59 +01:00
Tony Murray
3c37020f36
Ability to save cipsec-tunnels test data (#13463) 2021-11-01 22:46:55 -05:00
Tony Murray
2c77edf4d2
Better handling of some alerting errors (#13446)
* Better handling of some alerting errors

* Better error output

* Consolidate simple template parsing

* Fixes reported by phpstan (one was a bug, yay!)

* add back forgotten trim

* don't remove the template if there is no match

* Match previous behavior, which was inconsistent.

* use anonymous class for tests instead

* Oopsie, Stringable is PHP8+

* fix style
2021-10-29 22:12:20 -05:00
David Girón
9f8bb8caae
Add more discovery components for Dell PowerConnect 28xx (#13420)
* Add Processor discovery for Dell PowerConnect 28xx

* Add Temperature discovery and cleanup code

* Add test data for PowerConnect 2824

* Add Serial Number

* Don't add VLANs as Ports

* Revert "Don't add VLANs as Ports"

* Remove invalid mempool from tests
2021-10-29 10:09:05 +02:00
Tony Murray
0a1cc120de
DNOS BGP test data (#13449) 2021-10-29 00:37:36 -05:00
Julian Lehrhuber
a3ec263f78
Bintec be.IP plus support (#12993)
* Introduce OS flag to support devices that deliver OIDs out of order

* Add MIB for Bintec Be.IP Plus

* Add YAML definitions for Bintec Be.IP Plus

* Add Bintec be.IP plus test files

* Rename bintec mib files

mib-standards.mib was deleted, because it included definitions that also
existed in separate files

* Add test data

* Remove standard mib files from bintec dir

* Add regex to parse Bintec Be.IP Plus OS version

* Update test data for Bintec Be.IP Plus

* Calculate Bintec Be.IP Plus CPU load from inverse of idle time

* Improve Bintec Be.IP Plus discovery and tests

* Use MIB instead of numerical OIDs where possible

* Update tests to comply with updated discovery

* Remove unused MIBs

* Remove json props that let tests fail

* Update Settings.md

* Remove `snmp_out_of_order_oids` definition from bintec-beip-plus

* Add `-Cc` snmp param for prots module

* Add `-Cc` snmp param for arp-table module

* remove snmp_out_of_order_oids

* Remove snmp_out_of_order_oids

* Update snmp.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-28 13:05:43 -05:00
Arjit Chaudhary
f6d5cd525f
Improve Poweralert based devices support (#13340)
* Improve Poweralert based devices support

- Add graphs / data for Input Voltage
- Add graphs / data for Total/Output Current

* fix version formatting

* Create poweralert_3.snmprec

* Create poweralert_3.json

* Update poweralert.yaml

* Update poweralert_3.snmprec

* Update poweralert_3.json

* Missed one

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-28 11:08:17 -05:00
cenjui
ba45d5eba5
Add APC PowerChute sysObjectID (#13406)
* Update apc.yaml

Added sysObjectID: .1.3.6.1.4.1.318.1 to apc.yaml definition rules to allow the discovery of UPS' that are connected to Power Chute Business edition hosts.
(Tony Murray you were right & YAML hates me!).

* Create apc_powerchute.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-28 10:15:59 -05:00
Dan Baker
3e4209d35f
Added support for Extreme SLX-OS switches (#13431) 2021-10-28 08:12:35 -05:00
Nocturr
5f8b41d4ba
UniFi/EdgeSwitch OS support for fw 5.x (#13434)
* Fix support for fw 5.x

* Add test data
2021-10-28 01:52:58 +02:00
Jellyfrog
f31e89569e
Fix 2021-10-28 01:38:59 +02:00
Nocturr
bba7a9e3a1
Fix Sophos-XG OID for number of active tunnels (#13444)
* Fix for number of active tunnels

* add test data
2021-10-27 22:42:55 +02:00
Nocturr
4912c8c334
Add Sophos-XG OID for monitoring HA, IPSec and license state (#13423)
* Add Sophos-XG OID for monitoring HA and license state

* add generic property

* Update MIB to newest version

* Add Test-data for sfosCentralOrchestrationLicRegStatus

* Add IPSec monitoring

* regenerate test-data
2021-10-27 12:52:07 +02:00
TheGreatDoc
56b78da254
Fix hwg poseidon state sensors (#13438)
* Fix state sensors oids

* Test data
2021-10-27 12:38:11 +02:00
Peca Nesovanovic
08dd8a07db
Mikrotik vlans discovery, v2 (#13427)
* Mikrotik vlans discovery, v2

* styleci cleanup

* added Routeros entry in mkdocs.yml

* fixed typo in mkdocs.yml

* Better Vlan Eloquent Model

* Missed one

* Use new SnmpQuery code

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-26 18:31:44 -05:00
Dan Baker
d23e75f967
Added sensor discovery for APC NetworkAIR FM and InfraStruXure ATS (#13426) 2021-10-25 21:29:50 +02:00
hjcday
5536c8bdcb
Added Wireless Sensors for Teltonika RUTX Routers (#13419)
* Correctly implement Wireless Sensors for Teltonila RUTX series routers allowing for hardware with multiple modems
Fix sensor warning limits based on hardware specs.

* Re-capture test data for new sensors

* Tidy style

* no message

* no message

* Update RutosRutx.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-10-24 14:12:22 +02:00
Tony Murray
47cb5736dd
Fix application and storage query errors (#13417)
* Fix query errors

* Fixed test data
(one has crlf instead of lf)

* oops
2021-10-23 18:26:41 +02:00
Tony Murray
5fafb11c8f
Rename concrete SnmpQuery class to avoid confusion (#13412) 2021-10-23 01:43:55 -05:00
Tony Murray
50cf1a49f1
Kick other sessions when changing password (#13194)
* Kick other session when changing password
Invalidate other sessions when a user password gets changed

* Don't logout admin users when they change passwords.
Cleanup phpstan exceptions

* only restore user if needed

* comment odd behavior

* $current_user typehint
2021-10-21 17:25:38 -05:00
Dag Bakke
46c26e3027
Eaton Network MS xups sensors (#12992)
* Added ambient temp sensor and XUPS alarm OIDs

* I dumbed this down a bit, as I do not fully trust that I actually understand the xups mib.
Now we raise an alert if XUPS-MIB::xupsAlarms.0 is anywhere in the range 1-4

* Changed the index:-value for consistency

* added snmprec and json for my hardware/firwmare version

* reran save-test-data against all variants and renamed my latest snmprec properly

* Update eaton-mgeups_9pxle.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-20 21:15:42 -05:00
Stuart Henderson
48a12be4be
Don't hardcode index for Mikrotik LTE wireless statistics (#12976)
* don't hardcode index for Mikrotik LTE wireless statistics

* sync test data now that Mikrotik LTE index is no longer hardcoded

* sync tests data now that Mikrotik LTE index is no longer hardcoded

* fix whitespace

* sync test data now that Mikrotik LTE index is no longer hardcoded

* add test data for Mikrotik LtAP mini (aka RB912R-2nD)

* Re-write Routeros wireless code
It now works like most other devices

* fix style

* update baseline

* Remove station 60G rate

* use base unit of m, not km

* move interface stats name inside loop to avoid a walk when it does exist

* notification

* fix typo

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-20 20:50:59 -05:00
Matt Peterson
3d4ad683ad
OS support for West Mountain 4005i DC PDU (#12885)
* remove ^M from DOS style file

* Support for West Mountain 4005i DC PDU

* update SVG to include width attributes

* try adding reserveAspectRatio="xMinYMin meet"

* remove width attribute

* removed disabled modules per @Jellyfrog comment

* rename per PR

* add missing test JSON data

* don't attempt to graph or detect uptime, as neither OID is supported

* remove file extension

* remove specific modules for discovery & polling, as this device isnt buggy enough for justify

* Update westmountainradio.yaml

* Update westmountainradio.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-20 20:48:51 -05:00
Erik
27c124f19f
FabOS remove disabled dbm sensors (#12877)
* add check if adminstatus is up

* added testdata

* Changed ifAdminStatus state detection

* updated testdata

* updated testdata2

* Update fabos_6520.json

* Update fabos.json

* Update fabos_6520.json

* Update fabos.json

* fix fabos.json

* fix bug in discovery include

Co-authored-by: Erik <johndoe@example.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-20 18:51:49 -05:00
Tony Murray
f94f7f23b8
Fully convert core to a modern module (#13347)
* Core module WIP

* update OS::make()

* core WIP

* try to finish up

* switch all core do os Model

* Mock WIP

* Working tests

* cleanup

* phpstan fixes

* style fixes

* fix agent

* trim space too
and a couple of cleanups

* corrected ios test data

* missed space

* update test data

* put escapes back

* another net-snmp difference

* Fix class description

* revert snmp.inc.php change, that can be a different PR

* revert snmp.inc.php change, that can be a different PR
2021-10-19 15:43:43 -05:00
Shawn Kwang
0537f1d736
Add opengear humidity to sensors (#13226)
* Add new OID for humidity sensor for opengear devices.

* Typo fix

* Fixed typo: wrong OID

* Added opengear humidity test data JSON

* Removed ogEmdHumidityTable from cache.

* Added SNMP sim data for testing

* Update opengear_humidity.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-19 06:54:01 -05:00
Hans Erasmus
51e6701c4a
Extend support for Endrun Sonoma Meridian II devices. (#13069)
* endrun_updated_support

* Added requested changes

* Converted to yaml

* Fixed Tempus Features

* fixed test data (again)

* Update endrun_sonoma.json

* fix gitignore

* fix last gitignore

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-18 20:42:28 -05:00
TheGreatDoc
fdea39fc0f
Update Himoinsa Genset discovery (#13356)
* Update Himoinsa Genset discovery

* Added snmprec

* Added json test data
2021-10-18 19:42:40 -05:00
martinberg
3856c33f9d
IOS/IOSXE PoE stats (#13213)
* Updated mib

* Add support for IOS/IOSXE PoE stats

* Added testdata

* Better titles for Power-tab in Health

* Added low_limit for iosxe

* Update ios_2960x.json

* Added high_limit for ios

* update ios_2960x

* update ios_2900l

* pre-cache is not needed

will only slow polling down in some cases

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-18 19:42:13 -05:00
Cirno the Strongest
ece914a06d
Use high precision OIDs for APC UPS sensors (#12594)
* Use high precision OIDs for APC UPS sensors

* Force test re-run

* Remove ifHighSpeed

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-18 19:41:37 -05:00
martinberg
d69810b3c3
Add support for NTI Enviromux (#13373)
* Updated mib

* Add support for IOS/IOSXE PoE stats

* Added testdata

* Better titles for Power-tab in Health

* Added low_limit for iosxe

* Basic support for Enviromux devices

* Fixes

* Revert "Added low_limit for iosxe"

This reverts commit 645e3b423a.

* Removed commits from wrong branch

* Removed limits due to not working, need php

* Added testdata

* Update nti.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-10-18 10:35:30 +02:00
Tony Murray
66d0a34f40
Dusk: improve speed and safety (#13370)
* Dusk: improve speed
Instead of refreshing the database between tests, just cleanup all side effects.
Update UserFactory to upstream so hash never has to be generated for default

* Actually, migrate, but not fresh
2021-10-18 10:01:07 +02:00
Dan Kerse
60f056c691
Poll SPU memory from Juniper SRX devices (#13191)
* Poll SPU memory from Juniper SRX devices

* Add test data

* Update junos_rpm.json

* Update junos_rpm.json

* Update junos.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-16 20:44:18 -05:00
hjcday
d8e831d772
newdevice: Added support for Teltonika RUTX series routers (#13350)
* Added support for Teltonika RUTX series routers

* Added snmprec file for testing

* Update and rename rutos-RUTX.yaml to rutos-rutx.yaml

Fix OS name

* Rename rutos-RUTX.yaml to rutos-rutx.yaml

* Rename rutos-RUTX_rutx11.snmprec to rutos-rutx_rutx11.snmprec

* Create rutos-rutx_rutx11.json

* Fix: Device discovery OID removed tab

* Remove whitespace

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: hjcday <hugh.day@lsv.com.au>
2021-10-14 12:35:28 -05:00
Tony Murray
526afd437f
SnmpQuery updates and more tests (#13359)
* SnmpQuery updates and more tests
improvements to translate handling

* fix method description

* fix whitespace
2021-10-13 08:49:19 -05:00
Tony Murray
4e94c1e0a1
Rename NetSnmp to SnmpQuery (#13344)
* Rename NetSnmp to SnmpQuery
Always resolve a new instance.  It was not expected to be a singleton, set options persisted.
This means numeric() works properly now

* fix snmpfetch call and style

* Ability to set device from device array
2021-10-07 17:03:53 -05:00
Maikel de Boer
f28802bb2b
Ericsson TN - Wireless MSE (#13328)
* Initial commit

* Removed unused function

* fixed style

* fixed style

* fixed test data

* Initial commit

* end of the day commit

* finish + test data

* Delete ericsson-tn_ericsson-tn.snmprec

* Added wireless MSE

* Delete ciena-saos.yaml

* Delete NORTEL-MIB

* Delete ciena-saos.yaml

* Delete NORTEL-OPTICAL-GENERIC-MIB

* Delete ciena-saos_saos.snmprec

* Delete ciena-saos_saos.json

* Delete NORTEL-OPTICAL-PM-MIB

* fixed style

* fixe
2021-10-06 23:37:10 +02:00
Maikel de Boer
7883218cff
Ciena 6500 (#13324)
* Initial commit

* Removed unused function

* fixed style

* fixed style

* fixed test data

* Initial commit

* end of the day commit

* finish + test data

* Delete ericsson-tn_ericsson-tn.snmprec
2021-10-06 07:50:16 -05:00
Tony Murray
0b8b97bb68
Push Notifications (Mobile and PC) (#13277)
* Update manifest and add service worker
cleanup icons a bit

* Push notifications WIP

* navigate working

* cleanup

* acknowledge wired up

* Set VAPID keys on composer install

* Component to control notification permissions.

* Allow all user option to validate

* Enable on browser load if transport exists.

* Check for transport before showing user permissions
translations

* Documentation

* style fixes

* access via the attribute model

* fix alerting test

* update schema

* cleanup subscription on disable

* non-configurable db and table for webpush subscriptions (respect system connection)

* revert AlertTransport change
hopefully phpstan can figure it out

* phpstan fixes

* Support custom details display

* Match transport names to brand's preferred display

* less duplicate id errors

* Tests are done in Laravel code now so
remove legacy function usage... could be better, but ok

* Style fixes

* Style fixes 2

* Fix alert test

* Doc updates requires HTTPS and GMP

* unregister subscription when permission is set to denied

* cleanup after user deletion

* delete the right thing

* fix whitespace

* update install docs to include php-gmp

* suggest ext-gmp

* update javascript

* Update functions.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-10-06 07:29:47 -05:00
Tony Murray
aa35d2f0c0
Connectivity Helper to check and record device reachability (#13315)
* Fping WIP

* Update availability, move ping rrd update in the same place as db update.

* move classes around

* make device:ping command work

* use new code, remove legacy code

* save metrics boolean prevents all saves
style fixes

* update device array

* style fixes

* Update unit test

* fix whitespace

* Fix Fping stub

* fix backwards if

* fix phpstan complaining

* Fix return type

* add fillable to DeviceOutage model.

* device_outage migration to add id...

* missed line in db_schema.yaml

* 1 billion more comments on the brain damage up/down code

* tests for status and status_reason fields

* fix style again :D

* Duplicate legacy isSNMPable() functionality
but with only one snmp call ever 😎

* Remove unused variable

* fix migrations for sqlite
2021-10-03 22:45:10 -05:00
Nash Kaminski
cb56ae5f46
Improvements to SSO Authorization and logout handling (#13311)
* Improvements to SSO Authorization and logout handling

Changes:
* Adds support for a default access level in the SSO authorization
  plugin when group mapping is enabled.
* Restore functionality of the auth_logout_handler configuration option,
  allowing the user to be redirected to a configured URL to complete
  logout from an external IdP.
* Documentation and test coverage updates

* Set sso.static_level to 0 in AuthSSOTest:testGroupParsing()

* Simplify implementation to use default values in Config::get()
2021-10-02 08:02:42 -05:00
Tony Murray
a828bb00c3
lnms snmp:fetch command and new SNMP code (#13303)
* SNMP WIP

* cleanup, more types

* Include my snmp:fetch command

* Fix Facade name conflict

* Command WIP
remove mib

* Ignore exit code
cleanups

* Doc blocks and style fixes

* forgot to use parseOid

* Hopefully final fixes

* missed on (:

* small changes
deviates from existing code, hopefully doesn't re-add too many corner cases.

* add some simple tests, will make it easier to add more in the future when we find corner cases.

* test numeric

* API refinements, try to avoid setting textual net-snmp options directly

* change numeric to a toggle makes for nicer usage

* make ci happy

* Some errors happen only in stderr, pass that to SnmpResponse for parsing.
Add error message access

* More consistent naming
2021-10-01 18:58:12 -05:00
Maikel de Boer
b3c1d036b4
Ericsson Traffic Node support (#13299)
* Initial commit

* Removed unused function

* fixed style

* fixed style

* fixed test data

* Delete ericsson-tn_ericsson-tn.snmprec

* Update ericsson-tn.yaml
2021-09-30 08:29:31 -05:00
Muhammad Lutfi Santoso
7857dab98e
Add Ericsson IPOS router support (#12625)
* Add Ericsson IPOS router support

* Create ipos.snmprec

* Update ericsson-ipos.yaml

* Rename ipos.snmprec to ericsson-ipos.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-24 16:17:07 -05:00
Cupid@zul
9eecca51c7
Teldat: Wireless and GSM Basic Monitoring (#13255)
* Teldat: Wireless and GSM Basic Monitoring

* Teldat: Wireless IfIndex fix

* Teldat: Wireless and GSM tests

* minor comment correction

* Teldat: Wireless and GSM add json test data

* linter.warn: bugfix access_point_id = null, generally used for controllers, TELDATs are never controllers

* Teldat: Wireless and GSM tests replay results.

* linter.warn: fix #17 $entPhysicalMeasured expects float|int|null set to: null

* Teldat: Wireless and GSM some updates, bugfixes and lint updates as requested.

* linter : some more fixes...

* Teldat: Wireless and GSM, apply recommendations.

* minor styleCI fix.

* linter: fix

* linter: fix.

* Delete WirelessLteCellPolling.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-23 11:55:14 -05:00
Kevin Zink
f796396e0b
HP Fault Traps (#13254)
* HP Fault Trap

* Add typehints

* Fix style

* Fix style

* Try to fix wrong test

* Next try
2021-09-21 16:20:49 -05:00
Max Narvaez
296edba28a
Support HP Procurve models that have an E at the beginning of the model number (e.g. E2910) (#13261) 2021-09-21 15:13:41 -05:00
Max Narvaez
a3c9e32cc3
Fix axis cam discovery (#13258)
* Fix axis cam discovery

* Remove sensor data from test data

* Include all data again

* Remove sensor data again, this time also from json file
2021-09-21 14:18:15 -05:00
Tony Murray
8a883140cb
Infer character encoding for ifAlias and sysLocation (#13248)
* Infer character encoding for ifAlias and sysLocation
Tries to convert character encoding for non-UTF-8 encoded strings.
This will only work for snmp strings that are type-hinted, not ones forced to ASCII with -Oa or similar
Only works for your default charset or Windows-1251 or LATIN1.
You can set your character encoding in .env with CHARSET

Please save us all and just use UTF-8

* style fixes

* less Yoda

* ensure return type

* fall back to passed string

* don't convert strings with any unprintable characters (such as line return)

* Update LibreNMS/Util/StringHelpers.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Fix CP850

* fix space

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-09-21 08:47:44 -05:00
Kevin Zink
c984cdbebc
MegaRaid controller in Linux (Broadcom/LSI) (#12999)
* Add power consumed

* Revert "Add power consumed"

This reverts commit 424554ac04bd340de2fd962cb6808045024ef783.

* Start with tempsensorts aus some states

* Inventory data

* Convert plugins to Blade

* Revert "Convert plugins to Blade"

This reverts commit 8d1d3ff5b1.

* fix style

* Add FANs and Powersupplies

* fix style

* add test data

* add a short description for the doc

* refresh Testfile
2021-09-19 18:31:23 -05:00
Kevin Zink
59859c2ea3
Veeam backup SNMP Traps (#13170)
* SNMP Trap Veeam backupjob status

* Add  onVmBackupJobCompleted

* add mib

* fix style

* fix style

* Split backupjob and vm backup

* Add Traptest

* Fix style

* Fit style

* typehint on tests

* Fix handling empty string

* Fix wrong check

* Fix styl

* Fix style

* Update VeeamBackupJobCompleted.php

* Update VeeamVmBackupJobCompleted.php

* Update VeeamTrapTest.php

* Update VeeamTrapTest.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-19 08:21:31 -05:00
Max Narvaez
c1dce44947
Arubaos cx hardware (#13045)
* Add hardware, OS version and serial to arubaos-cx discovery

* Add support for ArubaOS-CX versions 10.04 and 10.06

* Fix bug where first arubaos-cx regex would be ignored

* Add test data for 10.07, data for 10.06 coming soon

* Add data for 10.06

* Update 10.04 test data

* Update arubaos-cx.json

* Update arubaos-cx_10.06.json

* Update arubaos-cx_10.07.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-18 15:39:34 -05:00
Noah Roufus
eff9c134cd
Added SAF Integra-X OS Support (#13236)
* Added SAF Integra-X support.

* Fixed discovery confusion between Integra-B and Integra-X.

* Removed a missed unusued use statement.

* Fixed CPU sensor issues related to MIB display hints throwing off math.

* Fix to Integra-X snmprec and test data.
2021-09-17 09:13:10 -05:00
paulierco
2e8f629758
osag: add ifName (#13243) 2021-09-15 17:44:36 +02:00
paulierco
8fcd13f821
mcafeewebgateway: add ifName (#13242) 2021-09-15 17:44:16 +02:00
Jellyfrog
258505ed44
Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Tony Murray
0a76ca444b
name zxr10 files correctly (#13210) 2021-09-08 19:45:58 -05:00
Jellyfrog
26b95c0ccc
Apply fixes from StyleCI (#13208) 2021-09-08 23:35:56 +02:00
Valery Kartel
c6d2385c3a
ZTE ZXR10 define discovery for mempool and processor (#13192)
* Add mibs/zte/ZXR10-MIB

ZTE ZXR10 vendor-specific mibs

* Update zxr10.yaml

add mib_dir
change top-line view like in cisco

* Create zxr10.yaml

define mempool and processor discovery for zxr10

* Update zxr10.yaml

fix discovery.php "error in mempools module. Unable to translate oid ZXR10-MIB::zxr10SystemMemSize"

* Update zxr10.yaml

ZXR10-MIB::zxr10SystemMemUsed is in percent not in bytes.

* zxr10.yaml :: fixed mempools data

fixed mempools data

* TESTS :: Add snmprec

* TEST :: Add data/json

* Change group from zxr10 to zte

* Remove mib_dir

With group: zte it works without mib_dir: zte

* Rename zxr10_zxr10.json to zte_zxr10.json

* Rename zxr10_zxr10.snmprec to zte_zxr10.snmprec
2021-09-08 11:19:19 -05:00
Noah Roufus
ebb582f0f2
Updated OS Support: Dragonwave Horizon (#13193)
* Removed older Horizon definitions

* Added Horizon Compact definitions via YAML.

* Added Horizon Duo definitions via YAML.

* Added Horizon Compact Plus definitions via YAML.

* Fixed issue with OID name casing for Horizon Duo EnetPort2CRC sensor

* Moved SNR/RSL/Tx Power to wireless sensor definitions.

* Reordered use statements to make StyleCI happy.
2021-09-08 08:40:23 -05:00
Kevin Zink
eacca2ff91
Procurve add SysDescr Regex (#13196)
* Add sysDescrRegex

* Add testdata

* fix graph
2021-09-06 15:29:41 -05:00
Tony Murray
9b8b1b814a
Validate APP_KEY (#13171)
* Validate APP_KEY
key:rotate command to rotate keys, only rotates validation data for now

* fixes, swapped encrypters, not saving new value to db, check that key exists first

* add confirmation

* Option to generate new key, re-encrypt data and then save it to .env
A lot more text to try to prevent disaster.  Print out both keys 1-2 times.
Fix bug in EnvHelper (when key is commented but not empty)

* fix style

* oops, good phpstan
2021-08-27 22:48:21 -05:00
Tony Murray
8e409ba051
Rewrite ISIS Adjacency discovery/polling (#13155)
* Rewrite ISIS Adjacency discovery/polling
hopefully much faster now, do most work in discovery and just check up/down in poller.

* unused variable

* Implement option for OS override

* fix an incorrect typehint

* test data

* work around stupid migration name

* update schema

* better handling for the on-demand discovery

* more detailed phpdoc

* fix when adjacency is not found

* don't clear out data when adjacency goes away

* Adjust nullable fields

* fixes

* fix class name

* correct migration

* fix bug causing adjacency data to always be blank

* port popups for port links

* isisISAdjState does not need to be nullable

* remove extra space

* default off

* If port is missing return $text

* update schema

* Cleanup old components

* correc copy paste error
2021-08-23 21:19:55 -05:00
Kevin Zink
456c5d2fae
Dell Network Virtual Link Trunk Status (#13162)
* DELL ForceTen add VLT States

* DELL Network (dnos) VIRTUAL-LINK-TRUNK

* add testfiles

* Update dnos_z9100-on.json

Fix merge comments

* Refresh Testdata

* add num_oids

* Remove unused skip_values
2021-08-23 19:11:49 -05:00
Tony Murray
dc1b5bd2d7
Update configuration docs to use lnms config:set (#13157)
* Update configuration docs to use lnms config:set
don't show slashes input
still need to test them all

* fixup broken commands
os array type a little broken

* bash

* fix lnms config:set os append

* enable os append test
(and small correction)

* fix whitespace
2021-08-23 19:07:26 -05:00
Tony Murray
d74bb37971
Show port speed on port graphs, optionally set scale (#11858)
* Show ifSpeed on Graph
Drop ifHighSpeed, we really don't want to store that value.

* safer truth check

* Allow global setting and per-graph variable

* match surrounding case

* Style fixes

* Remove old function usage

* update schema

* remove some old usages

* cleanup more ifHighSpeed references

* update test data to remove ifHighSpeed

* fix down migration

* Add button on graph page
Change default
tweak wording
2021-08-23 06:47:44 -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
paulierco
d6fee82e1a
Add OSAG OS (#13156) 2021-08-20 19:25:07 +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
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
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
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
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
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
Peca Nesovanovic
9557cccb6a
Jetsream: added/fixed LLDP discovery (#13082) 2021-07-31 18:26:57 +02: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
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
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
Emmanuel Caillé
578602f8f9
Use non numeric snmpwalk for nxos fan trays (#13048)
* Use non numeric snmpwalk for nxos fan trays

* Update test data with now discovered fan data
2021-07-21 19:19:41 +02:00
Maikel de Boer
e8b11635a6
Ericsson 6600 series (#12931)
* start

* added test data + mibs

* fxied minor

* Update CIENA-6500-AMPS-MIB

* Update CIENA-6500-ENUMS-MIB

* removed unused mibs

* added test data

* Delete ciena-saos_saos.snmprec

* Rename ciena_saos.json to ciena-saos.json

* Rename ciena_saos.snmprec to ciena-saos.snmprec

* Rename ciena-saos.snmprec to ciena-saos_ 6500.snmprec

* Delete ciena-saos.json

* Delete ciena-saos_ 6500.snmprec

* new attempt for the test data

* test data again

* small start

* Start

* added values

* added counters

* small style

* add test data

* Delete ciena-saos.yaml

* Delete ericsson-ml.yaml

* Delete ciena-saos_6500.json

* Delete ciena-saos_saos.json

* Delete ciena-saos_saos.snmprec

* Delete ericsson-6600_6600.json

* Update Ericsson6600.php

* added test data

* re-adding removed files

* Update Ericsson6600.php

* Update ericsson-6600.yaml

* Update XF-RADIOLINK-PTP-TERMINAL-MIB

* Update XF-TOP-MIB

* Restored renamed file

* Update ericsson-6600.yaml

* optized wireless discovery

* Update Ericsson6600.php

* Update Ericsson6600.php

* Update Ericsson6600.php

* Update Ericsson6600.php

* Update Ericsson6600.php

* feedback

* Update Ericsson6600.php

* Update Ericsson6600.php

* fixed discovery problem for future 6300 series

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-21 08:07:56 -05:00
paulierco
c07fcc8029
Alcatel-Lucent AOS7 bgp fix2 (#13059)
* first

* style

* fix erorr

* fix style again

* fix style again
2021-07-21 08:03:21 -05:00
O Palivan
0edf5dafd2
Fixed Packetlight EDFA sensors and added test-data (#13060) 2021-07-19 23:29:59 +02:00
paulierco
a45020c8d3
Alcatel-Lucent Aos7 increase fan threshold (#13053)
* first

* new tests

* tests again
2021-07-19 11:35:31 +02:00
paulierco
7e35bac7ee
Alcatel-Lucent Aos7 bgp fix (#13047)
* first

* fix style

* fix style

* tests

* tests

* tests

* tests

* tests

* tests
2021-07-18 13:32:59 +02:00
paulierco
bcb4ef5c1c
Alcatel-Lucent Aos6 ignore second power supply (#13054) 2021-07-18 13:23:43 +02:00
Keryazmi
3d0c1e63b7
Update Sensors for ADVA FSP150CC + discovery fix (#13020)
* Update YAML file for ADVA FSP150CC

Update for Adva FSP150CC
1. ERP State
2. Condition State

* Update Pre-Cache for ADVA FSP150CC

Update multiple devices and cache ERP objects.
1. XG116Pro (H)
2. XG120Pro
3. XG210
4. EG-X

* Update on Temperature Sensors for ADVA FSP150CC

Update multiple modules to support Adva FSP150CC Series.

* Update Voltage Sensors for ADVA FSP150CC

Update multiple modules for Adva FSP150CC Series.

* Create adva_fsp150_xg116proh.snmprec
* Create adva_fsp150_xg116proh.json
* Update adva_fsp150_xg116pro.snmprec
* Update adva_fsp150_xg116pro.json

Fix legacy ADVA discovery code

* Fix snmp-get and DB access
* style

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-17 01:01:45 +02:00
Peca Nesovanovic
a6a00419e4
Inital support for Eltex-MES switches (#13036)
* Inital support for Eltex-MES switches

* Eltex-MES code cleanup & added mib files

* Eltex-MES mib files renamed

* Eltex-MES mib files renamed(v2)

* Eltex-MES added json test data

* Eltex-MES added bad_iftype in YAML

* Eltex-MES test data after adding bad_iftype in YAML

* Eltex-MES fixed YAML & new test data

* Undo module disabling

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-16 16:14:09 +02:00
edgetho007
204ba3989d
Extend Sonicwall OS 7 (#12997)
* Update sonicwall.yaml

Add support for Sonicwall OS 7.

* Add files via upload

* Create sonicwall_sonicos7.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-07-16 11:12:50 +02:00
Krasimir Danev
fd9328af55
Added support to new device Controlbox TH-332B (#12940)
* Addet support to new device Controlbox TH-332B

* Rename CONTROLBOX-TH-332-MIB to CONTROLBOX-TH332-MIB

* Create controlbox_controlbox.snmprec

* Update controlbox_controlbox.snmprec

* Merge branch 'master' into community-16076

* Update controlbox.yaml
2021-07-14 22:30:19 +02:00
rhinoau
2e9377dfd6
Add OS Support for Siemens Scalance X Switching (#12938)
* Initial Siemens Scalance X switch support

* updated mempool definitions to pass unit tests

* sysDescr parsing changes and MIB rename

* further sysDescr parsing cleanup

* test data updated after sysDescr parsing changes

* discovery yaml formatting

* processor and mempool discovery yaml redone in PHP to overcome snmptable issues

* StyleCI fixes to PHP

* StyleCI fixes to PHP

* StyleCI fixes to PHP

* incorrect file location after StyleCI fixes

* removed redundant processor discovery code
2021-07-14 22:29:52 +02:00
Tony Murray
58ca5994a1
PHPStan fixes (#13038)
* PHPStan fixes
mostly type fixes
semi-risky changes in availability map widget, tested a bit

* fix style

* Style fix

* restore spaces stupid editor removed

* fix the rest

* device model back

* remove ignores

* introduce variable
2021-07-13 16:35:43 -05:00
Gregory Bers
7e6abdedb3
Rittal lcp parameters (#13035)
* fixed general alarm codes

* fixed Cooling envelope zone. Warnings were shown instead of normal ok messages

* added current error code with description
updated mib with current error code

* Set correct OID for inverter alarms

* added up to date snmprec data
sorted state groups for rittal chiller

* added warning limits according to documentation and standards

* spaces

* Create pcoweb-rittal-lcp-3311_lcp-dx-3311.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-13 00:55:56 +02:00
mathieu-artic
fc85424fe9
Correction Ucopia #13031 (#13033)
* correction index ucopia

* correction index ucopia 2

* correction index ucopia 3

* Merci PipoCanaja
2021-07-12 20:17:43 +02:00
mathieu-artic
784c19587a
add support for ucopia appliances (#13031) 2021-07-11 23:11:35 +02:00
Npeca75
1b68273b5d
Added Vlan discovery on LAG ports, Jetstream OS (#13007)
* Added Vlan discovery on LAG ports, Jetstream OS

* Jetstream expand function rewriten

* Jetstream expand function rewriten

* Jetstream expand function rewriten (v2)

* Added snmprec

* Create jetstream_t1600g-28ts.json

* Combine Regex

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-07-11 12:21:19 -05:00
geg347
3bf11187d1
Fixing irrelevant values rpm packetloss (#13010)
* Fixing irrelevant value for Juniper RPM percentage packetloss

Old MIB values fron generic DISMAN ping pingResultsProbeResponses and pingResultsSentProbes are
querying current probe values so if a probe is still pending, irrelevant value are taken. It results
in high percentage packetloss that not match reality.
Using the Juniper MIB values jnxPingLastTestResultProbeResponses and jnxPingLastTestResultSentProbes
seem to fix this.
At the same time we take here jnxPingLastTestResultAvgRttUs instead of jnxPingResultsRttUs which
is more accurate.

* Fixing typo in the name of Cisco MIB for Cisco SLA's polling

* Delete old comment about SNMP values : getting the all values once instead of one by one

* Adding test files for Juniper RPM last modification

* Revert "Adding test files for Juniper RPM last modification"

This reverts commit 0209b18b9d.

Reverting to keep snmprec junos_vmx already generated file

* Regenerating JSON test file and keeping snmprec file
2021-07-08 15:59:48 +02:00
mathieu-artic
fd597dbd1f
add showtime for SDSL line (#13005) 2021-07-08 00:58:00 +02:00
Hans Erasmus
8729363645
Added arista_mos support (#13003)
* arista_mos-support
* Changed according to request
2021-07-06 16:11:28 +02:00
mathieu-artic
e27403fc2c
add lte/umts support (#13002) 2021-07-06 00:34:50 +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
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
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
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
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
martinberg
24b8bebde7
Add support for Liebert humidity setpoint and UPS powerfactor (#12965) 2021-06-18 16:33:12 +02: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
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
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
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
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
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
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
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
Kevin Zink
3a0c164a5d
Add Barco Clickshare (#12927)
* Add Barco Clickshare

* correct type

* and testdata
2021-05-31 00:15:24 +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
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
Maikel de Boer
a6cf1bee7e
Added basic support for Ciena 6500 (#12903)
* start

* added test data + mibs

* fxied minor

* Update CIENA-6500-AMPS-MIB

* Update CIENA-6500-ENUMS-MIB

* removed unused mibs

* added test data

* Delete ciena-saos_saos.snmprec

* Rename ciena_saos.json to ciena-saos.json

* Rename ciena_saos.snmprec to ciena-saos.snmprec

* Rename ciena-saos.snmprec to ciena-saos_ 6500.snmprec

* Delete ciena-saos.json

* Delete ciena-saos_ 6500.snmprec

* new attempt for the test data

* test data again

* Delete ciena-saos_saos.json

* Delete ciena-saos_saos.snmprec

* Update ciena-saos.yaml

Cleanup

* added some quickwins

* new test data

* Update ciena-saos.yaml

* added test data

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-05-25 11:51:14 +02:00
dust241999
558d486a3d
Adding basic support for Vertiv PDUs and power graphs (#12908)
* Trying to add basic support for Vertiv PDU power graphs

* Support for fortiswitch in gen_rancid (#12894)

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

* Update geist-watchdog.yaml

* Update geist-watchdog.yaml

* Update vertiv-pdu.yaml

Co-authored-by: Cliff Albert <cliff@oisec.net>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-05-23 02:02:50 +02:00
Tony Murray
3cd7043fa7
Always test all OS detection. (#12879) 2021-05-16 20:32:54 +02:00
Tony Murray
d924f3f886
Set DBSetupTest timezone to UTC (#12881)
Not sure this is correct, but this test fails 100% on my local system since my timezone is not UTC
2021-05-15 00:55:15 +02:00
Tony Murray
e0ddae9f43
Fixed Unifi new sysObjectID detection (#12878)
* Fixed Unifi new sysObjectID detection

* corrected test data
2021-05-14 09:26:08 -05:00
Jellyfrog
dd2d8acda3
Revert "Unifi 5.60.1 sysObjectID changed (#12862)" (#12876)
This reverts commit 103a52e365.
2021-05-14 13:44:45 +02:00
wolfraider
103a52e365
Unifi 5.60.1 sysObjectID changed (#12862)
* Updated unifi.yaml with new OID

* Create unifi_560.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-05-13 14:40:16 -05:00
Negatifff
236616d085
Huawei MA5603T (#12869)
* Huawei MA5603T

* tests fix 1

* tests fix 2

* tests fix 3
2021-05-13 13:29:07 -05:00
Russell Morris
500b0ac6fa
CyberPower UPS Updates (#12827)
1) Update to latest MIB (v2.2 => v2.9)
2) Correct scaling factors (matching updated info in MIB)
3) Add Load - confirmed to work
4) Update header, show Load, not Current (due to data availability)
2021-05-12 21:55:01 -05:00
Tony Murray
abfe62cb44
Fix Unifi processors (#12854)
Use HOST-RESOURCES-MIB, apparently Ubiquiti added partial HR-MIB support sometime.
Works better than the old load based value.
Also port os discovery to the new style
2021-05-11 18:28:58 -05:00
Rafael Pardim
6e38ef99fb
Checkpoint Gaia Sensor Count (#12822)
* Create Checkpoint Gaia Sensor Count

Gaia Security Gateway Count:
- Number of concurrent connections
- Peak number of concurrent connections
- Limit of Connections table
- Connections rate
- Number of connections handled by SecureXL
- Number of IKE current SAs
- Number of IPsec current Inbound ESP SAs
- Number of IPsec current Outbound ESP SAs

Gaia Management Server Count
- Log Receive Rate
- Log Receive Rate Peak

* Checkpoint Gaia Sensor Count

* Checkpoint Gaia Sensor Count

* Checkpoint Gaia Sensor Count

* Checkpoint Gaia Sensor Count
2021-05-09 10:47:09 +02:00
Rafael Pardim
99db4bfd01
Gaia SecureXL current status and Management Connected Gateways (#12821)
* Create Checkpoint Gaia Sensor State

Checkpoint Gaia Gateway Cluster HA State
Checkpoint Gaia Management Connected Gateways

* Update gaia.yaml

* Add SecureXL current status and Management Connected Gateways

* Add SecureXL current status, Management Connected Gateways and Changed haState color to gray

* Add SecureXL current status, Management Connected Gateways and review haState

* Add SecureXL current status, Management Connected Gateways and review haState
2021-05-07 09:13:47 +02:00
Rafael Pardim
37ac9dffbe
Fix for Gaia Storage duplicated (#12824)
* Fix for Gaia Storage duplicated

We are getting duplicate storage.
Since Checkpoint Gaia is a Linux-based operating system, the file “./includes/discovery/storage/ucd-dsktable.inc.php” has already discovered the storage, so I think the file “./includes/discovery/storage/gaia.inc.php” is not necessary.

* Delete gaia.inc.php

* Add files via upload

* Add files via upload

* Fix for Gaia Storage duplicated
2021-05-06 08:46:11 +02:00
SanderBlom
1f10fecb33
Added support for GE MDS devices (#12834)
* added support for GE MDS devices

* added test files

* Removed .MIB from all mib files

* Update includes/definitions/discovery/gemds.yaml

* Fixed test data

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-05-06 08:41:44 +02:00
Tony Murray
aa83e6aa1a
Tripplite snmp trap handling (#12832)
* Tripplite snmp trap handling

* remove extra import
2021-05-05 12:39:14 +02:00
Tony Murray
61c89794e4
Remove debug globals (#12811)
* Remove $debug global
and $vdebug global
makes these variables more accessible and protects from collisions.

* the on boot set sends application as the first parameter, just handle that

* Relocate other debug related functions

* Log debug to stdout

* Wrong output

* remove stupid constants

* Fix lint and style issues
2021-04-29 22:42:18 -05:00
Jellyfrog
89d9696fe5
Bump laravel/dusk (#12808) 2021-04-29 06:33:34 -05:00
martinberg
33c7151763
Additional data collection for GAIA (#12713)
* Added support for GAIA logserver/firewall lograte, raid state and type, logserver state and testdata, firewall packet stats and connections stats

* Fixed typo

* Added testdata

* Fixed typo

* Changed some faulty strings to integers

* Added more sensors. License, HA states and Updates checks

* Added testdata

* Using snmp_get_multi. Cleaner code

* Fix rrd function usage

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-28 05:19:17 -05:00
paulierco
f355b2a3b5
Adjust Alcatel-Lucent aos7 (#12766)
* fix aos7 yaml

* fix aos7 yaml

* fix tests

* fix tests2

* trying to fix tests3

* Update aos7_6900-x20.json

* add new tests

* some changes

* miss this

* again

* again

* again

* again

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-27 10:02:17 -05:00
Tony Murray
e50590edc3
Firebrick sensor rework (#12783)
* WIP

* wrong test data, corrected.

* yaml and more broken stuff

* Add sensor gorupings

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-04-26 11:13:27 +02:00
PipoCanaja
27970eb830
Zywall - HW, Version, Serial (#12788) 2021-04-26 10:45:38 +02:00