Commit Graph

913 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Dan Baker
3e4209d35f Added support for Extreme SLX-OS switches (#13431) 2021-10-28 08:12:35 -05:00