Commit Graph

2861 Commits

Author SHA1 Message Date
Tony Murray
9d35fbc6a7 Entity Physical discovery: Rewrite to modern style (#16289)
* Initial entity-physical code

* Split out Entity-MIB trait

* Cisco Cellular inventory

* Fix bad test data

* alfo80hd - we now include all entPhysical entries

* Correct aos7 test data

* Add entPhysicalClass as last resort for label in ui

* aos add previously filtered data

* Fixup arista-eos data

* Update ariast_eos data

* Arris, clean garbage in Rev fields

* Aruba Instant custom inventory ported

* ArubaOS CX add vendor type mib

* aviat-wtm test data refresh

* axos add shelf fix data fields a bit

* ciena-rls

* ciena-sds

* Skip cimc for now... no test data

* Cisco updates

* Comware data update

* Update dnos

* Clean Edgeos garbage, make code from Arris shareable

* Relaxed ifIndex match, some devices cheat and send back static strings instead of formatted OIDs

* Regex refinement and updated edgeos with new clean data

* Update edgeswitch data

* Update eltex-mes21xx data

* eltex-mes23xx

* Guess at eltex-mes24xx since there is no test data

* Update eurostor, fix firmware version

* Apply fixes from StyleCI

* fixes

* Update fortigate data

* Update fortiweb, ftd, and fusion

* Update linux LSI

* Fix hexToAscii null removal with different seperator handling

* icotera add final snmprec data to avoid snmpsim bug

* Update IOS data

* Update mrv-od

* Add junos translation

* Generic data updates n-r

* ruijie workaround snmpsim bug

* Port saf-cfm

* Recode Schleifenbauer, and fix entPhysicalIndex values

* SmartAX fixes

* sm-os and tait-infra93

* timos inventory was not right, fix it up

* ubiquoss-pon

* VRP, has custom data collection on top of normal
adapt port ifIndex lookup to handle it

* VRP exceeded the string length specified in ENTITY-MIB...

* data updates

* Final data update and code cleanup

* Apply fixes from StyleCI

* Lint fixes

* Add missing SnmpResponse->pluck() code

* Update db_schema.yaml

* Fix bad test data

* Another instant-on update

* oops

* Remove some unused code

# Conflicts:
#	includes/html/pages/device/overview.inc.php

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-08-21 01:12:09 -05:00
PipoCanaja
d1ee543b6b bug - Fixing 'cisco-pw' cpwVcMplsPeerLdpID (#16268)
* fix for cpwVcMplsPeerLdpID in IP form

* tests
2024-08-03 12:57:33 -05:00
Ferris-0815
520e44b0ed F5-Loadbalancer module to support an expiration check of the installed certificates (#16217)
* On branch f5-cert-expiration-check
Changes to be committed:
	modified:   app/Http/Controllers/Device/Tabs/LoadBalancerController.php
	modified:   includes/discovery/loadbalancers/f5-ltm.inc.php
	modified:   includes/html/pages/device/loadbalancer.inc.php
	new file:   includes/html/pages/device/loadbalancer/f5-cert.inc.php
	modified:   includes/polling/loadbalancers/f5-ltm.inc.php

These patches extend the F5-Loadbalancer module to support an expiration check of
the installed certificates.

* some minor corrections to (hopefully) pass the style-check

* a few more impovements to pass the style-chek

 On branch f5-cert-expiration-check
 Your branch is up to date with 'origin/f5-cert-expiration-check'.

 Changes to be committed:
	modified:   includes/discovery/loadbalancers/f5-ltm.inc.php
	modified:   includes/polling/loadbalancers/f5-ltm.inc.php

* more style-check adaptions...
2024-07-29 14:57:37 -05:00
Tony Murray
b41d1b7ffb Fix Port Channels take 2 (#16246)
* Resubmit of #16227

* Add missing new files
2024-07-26 08:45:34 -05:00
Jellyfrog
e45dd59f77 Revert "Fix Port Channel (#16227)" (#16245)
This reverts commit 0d201c44c9.
2024-07-26 15:26:04 +02:00
Tony Murray
0d201c44c9 Fix Port Channel (#16227)
* Fix expandable sizing

* Temp fix: port_id_{low,high} is actually ifIndex

* new PortsStack discovery module, store actual port_ids

* Show 4 rows of ports by default

* Add test data

* Fix up the single port view too

* Apply fixes from StyleCI

* Update db_schema.yaml

* Update base migration because sqlite cannot add primary keys

* Fix phpstan failures

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-07-25 23:39:36 -05:00
PipoCanaja
97a13f6fe8 discovery - LLDPv2 support extension, and discovery-protocols tests (#16113)
* LLDPv2

* style

* styleAgain

* LLDPv2Tests

* discovery_module_tests

* VRP links tests

* tests

* AOS

* DLINK

* CISCOSB

* AOS

* AOS7

* ARUBA

* ZYNOS

* DLINK

* fix orderby

* edgecos

* boss

* edgeswitch

* voss

* eltex-mes23xx

* fs-switch

* ciena-sds

* cisco

* procurve

* tests/data/moxa-etherdevice

* junos

* mypoweros

* fixTestsArubaOS_orderby

* tests/data/bti800.json

* tests/data/scalance_xc206-2sfp.json

* ciena-sds

* aruba-cx

* orderby remote_port as well

* vrp

* force test rerun
2024-07-17 16:07:57 -05:00
Tozz
22a8a237e8 Add value 0 to HP Physical Drive Status (meaning no disk is inserted) (#16211)
* Add value 0 to HP Physical Drive Status (meaning no disk is inserted)

* Updated test data

* Updated test data

* Update hp.inc.php
2024-07-17 17:42:08 +02:00
Tozz
9abfa7b0e6 Fix FortiGate Cluster Sync status (#16206)
* Fix FortiGate Cluster Sync status

* Update fortigate.inc.php

* StyleCI

* Tests

* Update fortigate.inc.php

* Add files via upload

* Delete tests/data/fortigate_500d.json

Weird unrelated OSPF test failure

* Re-add fortigate_500d.json

* Fix author/copyright

* Update fortigate.inc.php

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-07-17 01:19:08 -05:00
Tozz
b0c7fe8c8d Revert "Fix Fortinet HA-status polling state translations (#14921)" (#16202)
This reverts commit 531009983c.
2024-07-14 17:30:30 -05:00
Frederik Kriewitz
5e3cfd879d nut-ups: adjust Line Nominal limits (#16180) 2024-07-07 12:57:20 +02:00
Frederik Kriewitz
273226bb5f Add support for Fiberstore branded BDCOM switches (#16162)
* Add support for Fiberstore branded BDCOM switches

* Move mibs into sub-dirrectory

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-07-04 15:22:37 -05:00
Nicolas Berens
137bd231f9 Update axis detection (#16130)
* add PTZ and Dome Cameras

* remove default temperature limits

* set temperature limit per device type

* fix linting

* add test data

* set original limits as default and use integers instead of strings
2024-06-24 19:50:05 -05:00
Tony Murray
04a70d2fda Update Dell MIBs (#16120)
* Update Dell MIBs
tidy up some related code a bit too to make it more readable

* handle extra data correctly (discard it)
2024-06-14 22:33:51 -05:00
Frederik Kriewitz
273253f9d9 fix bdcom/pbn neighbour discovery (#15935)
* fix bdcom/pbn neighbour discovery

* add BDCOM S2900-24S8C4X test data
2024-06-09 19:51:10 -05:00
Peca Nesovanovic
b2f23d04ea [vlans] Add VLANs information to Huawei VRP os (#16089)
* [vlans] Add VLANs information to Huawei VRP os

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>

* ci

* test data

---------

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
2024-06-09 19:46:45 -05:00
jthiltges
3f4bd69718 Correct swapped SET and WHERE parameters in bgp-peers/dell-os10.inc.php (#15983)
When the code was refactored in daa8c757f6, the selectors and updated columns were reversed.
2024-04-26 08:48:47 -05:00
Holger Hees
9df48647bb fix malformed snmp data parsing (#15931) 2024-04-10 15:40:22 +02:00
Heath Barnhart
d457f92f22 devices - Ciena RLS 6500 (#15909)
* rls definition
* Adding discovery
* Temp Sensor Discovery
* files for discovery
* Adding and updating MIBS
* Add snmpsim
* Modified yaml for unit test
* phpfmt format
* ci changes
* fixing temp sensor
* fix json
* db schema out of date causing bad snmpsim json
* changed temperature discovery to php
* With updated snmpsim data
* index_string restored, YAML for temperature
* style
* Fixed index_string usage in JUNOS files
* Update YamlDiscovery.php
Allow filtering on "index" in skip_values
* Move DBM to YAML as well
* style
* schema update
* Slot XX Yyyyyy
remove unwanted dot
* matching tests
* schema, round 2
* states in YAML
* put temp sensor back in yaml
* enable default poll and discovery modules
---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-04-01 18:52:03 +02:00
Guy Lowe
3f6958706d Move sentry3 current/voltage/power sensors to YAML (#15715)
* Move sentry3 current and voltage sensors to YAML, add power to YAML, fix voltage for three-phase

* Sentry3: add systemTotalPower and systemPowerFactor

* sentry3: note that voltage and power factor are configured, not measured

* sentry3: group names to indicate sensors which are configured, rather than measured; prefix current index with infeedID to match previous PHP discovery

* sentry3: add ouprefix to outlet current to match previous PHP discovery index

* sentry3: restrict to recording voltage to only the first feed of each tower, to match previous indices

* sentry3: add snmprec from 3-phase CS-24V4-P32MA

* sentry3: attempt to fall back to Infeed

* sentry3: laravel blade fallback fix

* update tests instead of trying to fall back to old-style descriptions

* sentry3: update expected voltage in test, too

* typo

* fix test

* fix outlet OIDs ; update snmp test data with missing names ; regenerate test output

* add missing num_oids for power

* num_oid requires index, even for system-wide values
2024-03-24 16:47:42 +01:00
AdamB
d90a704fcb bug - Fix OSes 'Junos' and 'Hirschmann' misuse of entPhysicalIndex (#15886)
* Increase the column width of entPhysicalIndex and entPhysicalIndex_measured
* Update schema
* Remove unchanged change
* Update test data
* Remove migration and update test data
* Fix hirschmann and junos
* One too many
* Potentially incorrect usage
* Another potentially incorrect usage
* Revert changes to cisco and dell
* Test data changes for loop-telecom and ups-nut
2024-03-12 08:15:15 +01:00
PipoCanaja
4975a984b6 bug - fix unexisting fields in DB entry create/update (#15883) 2024-03-07 18:59:22 +01:00
Tozz
718abd47de Fix for FortiSwitch RPM/percentage fans (#15829)
* Update entity-sensor.inc.php

* FSW Test data

* FSW Test data JSON

* StyleCI

* Update fortiswitch.yaml - Correct state sensor index

* Update fortiswitch.yaml

* Add files via upload

* Fix sensor value at discovery
2024-03-05 00:11:04 +01:00
Rafael Pardim
10c3f7ae94 F5 BIG-IP state and count sensors (#15865)
* F5 BIG-IP state and count sensors

* F5 BIG-IP state and count sensors
2024-03-03 22:48:21 +01:00
Peca Nesovanovic
05ad1fd242 [ipv4] fix /32 addresses discovery (#15863) 2024-03-01 00:27:32 +01:00
Tozz
d456e78109 YAMLized version of previous PR for Ericsson SSR 80xx routers (#15834)
* Ericsson IPOS Yaml

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Ericsson IPOS MIBs

* Ericsson IPOS - Serial & Hardware detection

* Ericsson IPOS - Remove mempool from overview

* SSR8020 SNMPrec

* Ericsson IPOS SSR 8020 Test

* Delete tests/snmpsim/ericsson-ipos_ssr8020.snmpwalk

* SSR8020 SNMPrec

* Add storage to overview

* Move to new SnmpQuery

* SnmpQuery() instead of snmp_*

* Delete mibs/ericsson directory

* Create ERICSSON-TOP-MIB

* Add files via upload
2024-02-28 14:42:50 -06:00
Peca Nesovanovic
eb6006248f Rewrite ups-nut discovery to SnmpQuery:: (#15850)
* modernize and move ups-nut to unix

* fix test data (group and invalid runtime)

* add Battery Temperature to test data

* lnms dev:check style
2024-02-26 17:48:40 +01:00
Peca Nesovanovic
a9befd3b98 fix tp-link jetstream FDB discovery (#14321)
* jetstream fdb discovery

* ci
2024-02-21 12:29:43 -06:00
Peca Nesovanovic
8f2444f782 Rewrite lmsensors discovery to SnmpQuery:: (#15833)
* rewrite lmsensors discovery to SnmpQuery::

* change group name to lowercase (lmsensors)
2024-02-21 12:15:14 -06:00
Peca Nesovanovic
bfdc2c472f Rewrite ipv4 address discovery to Eloquent (#15830)
* rewrite ipv4 discovery to Eloquent

* style ci
2024-02-21 12:10:00 -06:00
Peca Nesovanovic
07ba563ed2 konica printers additional counters (#15826) 2024-02-14 06:51:21 -06:00
Peca Nesovanovic
5769d7356e initial support for Eltex mes24xx (#15816)
* initial support for Eltex mes24xx

* style ci
2024-02-11 17:54:10 +01:00
Nick Hilliard
265f3daed5 Add LRT-C / LCM-B / LRS-D / LCM-B modules to Luminato model (#15812) 2024-02-09 18:32:46 +01:00
Peca Nesovanovic
6057053963 [rfc1628] Add UPS Test (battery test) status sensor (#15802) 2024-02-05 00:24:47 +01:00
Tozz
566619b2a8 device - ArubaOS-CX VSF state sensor support (#15793)
* Create ARUBAWIRED-AAA-MIB

* ArubaOS-CX MIBs

* ArubaOS-CX Test data

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Style CI

* Style CI

* New test data

* Add files via upload

* Add files via upload

* Only translate the VSF sensors

* Style CI

* Update arubaos-cx.inc.php

* Add files via upload
2024-02-04 17:19:20 +01:00
PipoCanaja
598857c6ef VRP - avoid emptying bgpPeers description at discovery when manually set (#15713)
* avoid clearing BGP peer desc at discovery

* more fix

* more fix
2024-01-15 22:43:53 +00:00
gunkaaa
4effb40294 Fall back to IPV6-MIB IPv6 address discovery if IP-MIB IPv6 address discovery doesn't return any valid addresses (#15714) 2024-01-15 22:41:33 +00:00
rudybroersma
7292662038 Add FortiGate DHCP Scope usage percentage sensors (#15727)
* Update fortigate.inc.php

* Add percent sensors for DHCP Pool usage (per vDOM)

* FortiGate 40F JSON Test Data

* FortiGate 40F JSON Test Data for DHCP Usage sensor

* Style-CI Fix

* Style-CI Fix
2024-01-11 08:52:06 -06:00
rudybroersma
8d791f5c05 Add FortiGate license status sensors (#15722)
* FortiGate 40F JSON Test data

* FortiGate 40F SNMPrec Test Data

* Add license expiration days state sensor

* Add FortiGate license expiration count sensors

* Update FORTINET-FORTIGATE-MIB

Update to version 2023-07-21
2024-01-10 09:11:10 -06:00
Jellyfrog
071ca9bc2a Apply fixes from StyleCI (#15698)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-01-04 22:39:12 -06:00
sarcastic6
c1c20ef1e3 Add support for RoomAlert 32S device (#15676)
* Initial attempt to add AVTECH RoomAlert 32S support

* Add RA32S test units
2023-12-30 18:47:21 +01:00
rudybroersma
7c0103a7bd device - Add Cisco REP Segment state sensor (#15666)
* Update cisco.inc.php - Add REP Segment state sensor

* Create ios_cisco.snmprec

* JSON files for REP support test data

* Rename to IE2000 and add matchin JSON

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-12-21 21:30:53 +01:00
Stef
0028311e1d Fix wrong ASN discovery on non-BGP Devices (#14948)
* Fix wrong as discovery. if peer has no bgp enabled, the bgp as was miss-discovered

* Update includes/discovery/bgp-peers.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>

* tests

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-12-19 07:07:27 +01:00
PipoCanaja
d9595fc90c bug - bgp-peers error in Timos -> dbFacile cleanup (#15620)
* dbFacile cleanup, step 1

* style

* tests

* tests-more

* tests

* tests
2023-12-17 20:05:02 -06:00
Angel
93baa514c1 Zhone health (#15276)
* Added Zhone health and reduced ports to only physical ports.

* Liniting

* Move MIBs out of folder, doesn't work

* Add testing data.

* Added test data, sorry for delay

* Added test data again

* Move MIBs to folder

* Unsupported dirrective
2023-12-17 18:52:28 +01:00
Ville Hukkamäki
624eb5aa09 Add support for Forcepoint NGFW 6.10 and older (#15632)
* Add support for Forcepoint NGFW 6.10 and older
* Update forcepoint_forcepoint-ngfw-330.json
* Proc. discovery fix
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-12-13 23:29:53 +01:00
PipoCanaja
8cf721c32f bug - Nokia discovery protocols (#15606)
* nokia null check for discovery proto

* nokia null check for discovery proto

* fix for Nokia discovery + reindent

* fix for Nokia discovery + reindent

* style
2023-12-11 07:14:36 -06:00
PipoCanaja
efd5eb2a40 fix null exception (#15628) 2023-12-11 07:10:34 -06:00
Mitt
273c6c5b97 fix: grabled characters when oid already UTF-8 (#15615) 2023-12-05 07:13:16 -06:00
Christophe Guillaumie
21ccfa4096 Add and extend support for Hirshmann devices (#15588)
* Added models in hirshmann definition file
* Added Hirschmann_ms4128.snmprec to ~/tests/snmpsim
* Generic SysObjectID
* Some devices are not replying with all the table data
* fix tests accordingly
* add more sensors
* Move Temperature to YAML

Discovery and polling are currently buggy, this will fix it and make it capable of handling more than one temp sensor.
History of temperatures will be lost here.

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-12-04 19:33:30 +01:00