From 7662856bf353d3d8cc7aba5b6b107f925209f59e Mon Sep 17 00:00:00 2001 From: jozefrebjak <36922215+jozefrebjak@users.noreply.github.com> Date: Mon, 21 Oct 2019 03:19:01 +0200 Subject: [PATCH] Added NetApp E2700 Discovery (#10668) * Added NetApp E2700 Discovery * Update netapp_e2700.snmprec * Add test data --- includes/definitions/netapp.yaml | 1 + tests/data/netapp_e2700.json | 40 ++++++++++++++++++++++++++++++ tests/snmpsim/netapp_e2700.snmprec | 37 +++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 tests/data/netapp_e2700.json create mode 100644 tests/snmpsim/netapp_e2700.snmprec diff --git a/includes/definitions/netapp.yaml b/includes/definitions/netapp.yaml index e1d8d6cd7f..a00f19a4ec 100644 --- a/includes/definitions/netapp.yaml +++ b/includes/definitions/netapp.yaml @@ -6,3 +6,4 @@ over: discovery: - sysDescr: - NetApp + - NETAPP diff --git a/tests/data/netapp_e2700.json b/tests/data/netapp_e2700.json new file mode 100644 index 0000000000..8afa139f31 --- /dev/null +++ b/tests/data/netapp_e2700.json @@ -0,0 +1,40 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.789.1123.2", + "sysDescr": "NETAPP INF-01-00 0852", + "sysContact": null, + "version": null, + "hardware": null, + "features": null, + "os": "netapp", + "type": "storage", + "serial": null, + "icon": "netapp.svg", + "location": null + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.789.1123.2", + "sysDescr": "NETAPP INF-01-00 0852", + "sysContact": "", + "version": null, + "hardware": null, + "features": null, + "os": "netapp", + "type": "storage", + "serial": null, + "icon": "netapp.svg", + "location": "" + } + ] + } + } +} diff --git a/tests/snmpsim/netapp_e2700.snmprec b/tests/snmpsim/netapp_e2700.snmprec new file mode 100644 index 0000000000..2ccd3e0fc8 --- /dev/null +++ b/tests/snmpsim/netapp_e2700.snmprec @@ -0,0 +1,37 @@ +1.3.6.1.2.1.1.1.0|4|NETAPP INF-01-00 0852 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.789.1123.2 +1.3.6.1.2.1.1.3.0|67|5961940 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.2.1.11.1.0|65|552598 +1.3.6.1.2.1.11.2.0|65|552572 +1.3.6.1.2.1.11.3.0|65|0 +1.3.6.1.2.1.11.4.0|65|0 +1.3.6.1.2.1.11.5.0|65|0 +1.3.6.1.2.1.11.6.0|65|0 +1.3.6.1.2.1.11.8.0|65|0 +1.3.6.1.2.1.11.9.0|65|0 +1.3.6.1.2.1.11.10.0|65|0 +1.3.6.1.2.1.11.11.0|65|0 +1.3.6.1.2.1.11.12.0|65|0 +1.3.6.1.2.1.11.13.0|65|2215301 +1.3.6.1.2.1.11.14.0|65|0 +1.3.6.1.2.1.11.15.0|65|370932 +1.3.6.1.2.1.11.16.0|65|26099 +1.3.6.1.2.1.11.17.0|65|0 +1.3.6.1.2.1.11.18.0|65|0 +1.3.6.1.2.1.11.19.0|65|0 +1.3.6.1.2.1.11.20.0|65|0 +1.3.6.1.2.1.11.21.0|65|0 +1.3.6.1.2.1.11.22.0|65|0 +1.3.6.1.2.1.11.24.0|65|0 +1.3.6.1.2.1.11.25.0|65|0 +1.3.6.1.2.1.11.26.0|65|0 +1.3.6.1.2.1.11.27.0|65|0 +1.3.6.1.2.1.11.28.0|65|552574 +1.3.6.1.2.1.11.29.0|65|0 +1.3.6.1.2.1.11.30.0|2|2 +1.3.6.1.2.1.11.31.0|65|0 +1.3.6.1.2.1.11.32.0|65|0 +1.3.6.1.4.1.789.1123.2.500.1.1.0|4|