From cb200e9e2e1282946b25fc993ae625993f696bdc Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 28 Oct 2015 21:32:19 +0000 Subject: [PATCH] Added necessary files for SAF support --- includes/definitions.inc.php | 8 ++++++++ includes/discovery/os/saf.inc.php | 7 +++++++ includes/polling/os/saf.inc.php | 18 ++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 includes/discovery/os/saf.inc.php create mode 100644 includes/polling/os/saf.inc.php diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index d8a4a12f01..62b1f87c23 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -488,6 +488,14 @@ $config['os'][$os]['icon'] = 'siklu'; $config['os'][$os]['over'][0]['graph'] = 'device_bits'; $config['os'][$os]['over'][0]['text'] = 'Traffic'; +// Saf Wireless +$os = 'saf'; +$config['os'][$os]['text'] = 'SAF Wireless'; +$config['os'][$os]['type'] = 'wireless'; +$config['os'][$os]['icon'] = 'saf'; +$config['os'][$os]['over'][0]['graph'] = 'device_bits'; +$config['os'][$os]['over'][0]['text'] = 'Traffic'; + // Supermicro Switch $os = 'supermicro-switch'; $config['os'][$os]['group'] = 'supermicro'; diff --git a/includes/discovery/os/saf.inc.php b/includes/discovery/os/saf.inc.php new file mode 100644 index 0000000000..fd9ccf0685 --- /dev/null +++ b/includes/discovery/os/saf.inc.php @@ -0,0 +1,7 @@ + + * + * 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. +*/ + +list(,$version,,$hardware,$serial,,) = explode(";", $poll_device['sysDescr']); +list(,$hardware) = explode(":", $hardware); +list(,$serial) = explode(":", $serial); +