From b71d933ac977304d36e7e5583e3fda1a8a878b8b Mon Sep 17 00:00:00 2001 From: footstep86 <43873346+footstep86@users.noreply.github.com> Date: Thu, 21 May 2020 22:14:56 +0200 Subject: [PATCH] Updated FortiWeb support (#11632) --- includes/definitions/discovery/fortiweb.yaml | 8 +++ includes/discovery/mempools/fortiweb.inc.php | 8 +++ includes/polling/mempools/fortiweb.inc.php | 7 ++ mibs/fortinet/FORTINET-FORTIWEB-MIB | 18 ++++- tests/data/fortiweb.json | 72 +++++++++++++++++++- tests/snmpsim/fortiweb.snmprec | 7 +- 6 files changed, 115 insertions(+), 5 deletions(-) create mode 100644 includes/definitions/discovery/fortiweb.yaml create mode 100644 includes/discovery/mempools/fortiweb.inc.php create mode 100644 includes/polling/mempools/fortiweb.inc.php diff --git a/includes/definitions/discovery/fortiweb.yaml b/includes/definitions/discovery/fortiweb.yaml new file mode 100644 index 0000000000..91ac32f8d2 --- /dev/null +++ b/includes/definitions/discovery/fortiweb.yaml @@ -0,0 +1,8 @@ +mib: FORTINET-FORTIWEB-MIB +modules: + processors: + data: + - + oid: fwSysCpuUsage + num_oid: '.1.3.6.1.4.1.12356.107.2.1.5.{{ $index }}' + type: fortiweb diff --git a/includes/discovery/mempools/fortiweb.inc.php b/includes/discovery/mempools/fortiweb.inc.php new file mode 100644 index 0000000000..a8cb065d5c --- /dev/null +++ b/includes/discovery/mempools/fortiweb.inc.php @@ -0,0 +1,8 @@ +