mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
Added powercode support - no icon for now, using linux
This commit is contained in:
parent
3cd2972c0a
commit
95125183ae
@ -128,6 +128,18 @@ $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 = "powercode";
|
||||
$onfig['os'][$os]['type'] = "server";
|
||||
$config['os'][$os]['group'] = "unix";
|
||||
$config['os'][$os]['text'] = "Powercode BMU";
|
||||
$config['os'][$os]['icon'] = "linux";
|
||||
$config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||
$config['os'][$os]['over'][1]['graph'] = "device_processor";
|
||||
$config['os'][$os]['over'][1]['text'] = "Processor Usage";
|
||||
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
|
||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||
|
||||
// Other Unix-based OSes here please.
|
||||
|
||||
$os = "freebsd";
|
||||
|
22
includes/discovery/os/powercode.inc.php
Normal file
22
includes/discovery/os/powercode.inc.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
//sysDescr.0 = STRING: Powercode BMU
|
||||
|
||||
if (!$os) {
|
||||
if (stristr($sysDescr, "Powercode MBU")) {
|
||||
$os = "powercode";
|
||||
}
|
||||
}
|
||||
|
16
includes/polling/os/powercode.inc.php
Normal file
16
includes/polling/os/powercode.inc.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
|
||||
*
|
||||
* 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 = "Powercode";
|
||||
$hardware = "BMU";
|
Loading…
Reference in New Issue
Block a user