From 602d08b05e02c26d9a88fd1ad5d015e9ee2b0dd6 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 21 Apr 2015 11:36:21 +0100 Subject: [PATCH] Basic Siklu detection --- includes/definitions.inc.php | 8 ++++++++ includes/discovery/os/siklu.inc.php | 21 +++++++++++++++++++++ includes/polling/os/siklu.inc.php | 16 ++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 includes/discovery/os/siklu.inc.php create mode 100644 includes/polling/os/siklu.inc.php diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index 045f4dbe3..d0d5433ff 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -417,6 +417,14 @@ $config['os'][$os]['icon'] = "ruckus"; $config['os'][$os]['over'][0]['graph'] = "device_bits"; $config['os'][$os]['over'][0]['text'] = "Traffic"; +// Siklu Wireless +$os = "siklu"; +$config['os'][$os]['text'] = "Siklu Wireless"; +$config['os'][$os]['type'] = "wireless"; +$config['os'][$os]['icon'] = "siklu"; +$config['os'][$os]['over'][0]['graph'] = "device_bits"; +$config['os'][$os]['over'][0]['text'] = "Traffic"; + // Supermicro Switch $os = "supermicro-switch"; diff --git a/includes/discovery/os/siklu.inc.php b/includes/discovery/os/siklu.inc.php new file mode 100644 index 000000000..2ea198125 --- /dev/null +++ b/includes/discovery/os/siklu.inc.php @@ -0,0 +1,21 @@ + + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +$entPhysicalMfgName = snmp_get($device, "ENTITY-MIB::entPhysicalMfgName.1", "-Osqnv"); + +if ($entPhysicalMfgName == 'Siklu') { + $os = 'siklu'; +} + +?> diff --git a/includes/polling/os/siklu.inc.php b/includes/polling/os/siklu.inc.php new file mode 100644 index 000000000..4624ef8fb --- /dev/null +++ b/includes/polling/os/siklu.inc.php @@ -0,0 +1,16 @@ + + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +$version = snmp_get($device, "rbSwBank1Version.0", "-Osqnv", "+RADIO-BRIDGE-MIB"); +$hardware = $poll_device['sysDescr'];