Basic Buffalo TeraStation Support

#3492
This commit is contained in:
Søren Rosiak
2016-06-02 18:48:36 +02:00
parent 5d49f72d3e
commit df8514e143
4 changed files with 38 additions and 0 deletions

BIN
html/images/os/buffalo.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -268,6 +268,13 @@ $config['os'][$os]['over'][1]['text'] = 'Processor Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
$os = 'buffalo';
$config['os'][$os]['text'] = 'Buffalo';
$config['os'][$os]['type'] = 'storage';
$config['os'][$os]['icon'] = 'buffalo';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
// Other Unix-based OSes here please.
$os = 'freebsd';
$config['os'][$os]['type'] = 'server';

View File

@@ -0,0 +1,17 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
* 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.
*/
if (!$os) {
if (strstr($sysDescr, 'BUFFALO TeraStation')) {
$os = 'buffalo';
}
}

View File

@@ -0,0 +1,14 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
* 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.
*/
$match = explode(" ", $poll_device['sysDescr']);
$hardware = $match[2];