From 7cd61ef57f691665a8135c2c39ff343d02f59cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Bouynot?= Date: Tue, 23 Aug 2022 14:02:50 +0200 Subject: [PATCH] F5 partition ram (#14226) * Add other RAM partitions F5 does partition its RAM, display other partitions, see https://support.f5.com/csp/article/K44014003 * Create f5_ve-14.1.5.1.snmprec * Create f5_ve-14.1.5.1.json --- includes/definitions/discovery/f5.yaml | 11 ++++ tests/data/f5_ve-14.1.5.1.json | 69 ++++++++++++++++++++++++++ tests/snmpsim/f5_ve-14.1.5.1.snmprec | 9 ++++ 3 files changed, 89 insertions(+) create mode 100644 tests/data/f5_ve-14.1.5.1.json create mode 100644 tests/snmpsim/f5_ve-14.1.5.1.snmprec diff --git a/includes/definitions/discovery/f5.yaml b/includes/definitions/discovery/f5.yaml index 86441eab9c..95407d87b1 100644 --- a/includes/definitions/discovery/f5.yaml +++ b/includes/definitions/discovery/f5.yaml @@ -9,3 +9,14 @@ modules: used: F5-BIGIP-SYSTEM-MIB::sysStatMemoryUsed total: F5-BIGIP-SYSTEM-MIB::sysStatMemoryTotal descr: 'TMM Memory' + index: 0 + - + used: F5-BIGIP-SYSTEM-MIB::sysGlobalHostOtherMemoryUsed + total: F5-BIGIP-SYSTEM-MIB::sysGlobalHostOtherMemoryTotal + descr: 'Other Memory' + index: 1 + - + used: F5-BIGIP-SYSTEM-MIB::sysGlobalHostSwapUsed + total: F5-BIGIP-SYSTEM-MIB::sysGlobalHostSwapTotal + descr: 'Swap Memory' + index: 2 diff --git a/tests/data/f5_ve-14.1.5.1.json b/tests/data/f5_ve-14.1.5.1.json new file mode 100644 index 0000000000..f67cf15e69 --- /dev/null +++ b/tests/data/f5_ve-14.1.5.1.json @@ -0,0 +1,69 @@ +{ + "mempools": { + "discovery": { + "mempools": [ + { + "mempool_index": "0", + "entPhysicalIndex": null, + "mempool_type": "f5", + "mempool_class": "system", + "mempool_precision": 1, + "mempool_descr": "TMM Memory", + "mempool_perc": 15, + "mempool_perc_oid": null, + "mempool_used": 266533864, + "mempool_used_oid": ".1.3.6.1.4.1.3375.2.1.1.2.1.45.0", + "mempool_free": 1537016856, + "mempool_free_oid": null, + "mempool_total": 1803550720, + "mempool_total_oid": null, + "mempool_largestfree": null, + "mempool_lowestfree": null, + "mempool_deleted": 0, + "mempool_perc_warn": 90 + }, + { + "mempool_index": "1", + "entPhysicalIndex": null, + "mempool_type": "f5", + "mempool_class": "system", + "mempool_precision": 1, + "mempool_descr": "Other Memory", + "mempool_perc": 75, + "mempool_perc_oid": null, + "mempool_used": 1762848768, + "mempool_used_oid": ".1.3.6.1.4.1.3375.2.1.1.2.20.45.0", + "mempool_free": 578830336, + "mempool_free_oid": null, + "mempool_total": 2341679104, + "mempool_total_oid": null, + "mempool_largestfree": null, + "mempool_lowestfree": null, + "mempool_deleted": 0, + "mempool_perc_warn": 90 + }, + { + "mempool_index": "2", + "entPhysicalIndex": null, + "mempool_type": "f5", + "mempool_class": "system", + "mempool_precision": 1, + "mempool_descr": "Swap Memory", + "mempool_perc": 50, + "mempool_perc_oid": null, + "mempool_used": 536629248, + "mempool_used_oid": ".1.3.6.1.4.1.3375.2.1.1.2.20.47.0", + "mempool_free": 537108480, + "mempool_free_oid": null, + "mempool_total": 1073737728, + "mempool_total_oid": null, + "mempool_largestfree": null, + "mempool_lowestfree": null, + "mempool_deleted": 0, + "mempool_perc_warn": 90 + } + ] + }, + "poller": "matches discovery" + } +} diff --git a/tests/snmpsim/f5_ve-14.1.5.1.snmprec b/tests/snmpsim/f5_ve-14.1.5.1.snmprec new file mode 100644 index 0000000000..bf334c8e36 --- /dev/null +++ b/tests/snmpsim/f5_ve-14.1.5.1.snmprec @@ -0,0 +1,9 @@ +1.3.6.1.2.1.1.1.0|4|BIG-IP Virtual Edition : Linux 3.10.0-862.14.4.el7.ve.x86_64 : BIG-IP software release 14.1.5.1, build 0.0.6 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.3375.2.1.3.4.43 +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.4.1.3375.2.1.1.2.1.44.0|70|1803550720 +1.3.6.1.4.1.3375.2.1.1.2.1.45.0|70|266533864 +1.3.6.1.4.1.3375.2.1.1.2.20.44.0|70|2341679104 +1.3.6.1.4.1.3375.2.1.1.2.20.45.0|70|1762848768 +1.3.6.1.4.1.3375.2.1.1.2.20.46.0|70|1073737728 +1.3.6.1.4.1.3375.2.1.1.2.20.47.0|70|536629248