Søren Rosiak c40b762e23 feature: Update Juniper MSS Support (#6565)
* feature: Improve Juniper MSS Support

Add the following sensors
- Processor
- Mempool
- State

* Use snmp_get_multi

* updated mibs dir
2017-05-16 22:22:46 +01:00

21 lines
818 B
PHP

<?php
/*
* LibreNMS
*
* Copyright (c) 2017 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 ($device['os'] === 'juniper-mss') {
d_echo('Juniper MSS : ');
$descr = 'Processor';
$proc_usage = snmp_get($device, 'trpzSysCpuInstantLoad.0', '-Ovq', 'TRAPEZE-NETWORKS-SYSTEM-MIB');
if (is_numeric($proc_usage)) {
discover_processor($valid['processor'], $device, '.1.3.6.1.4.1.14525.4.8.1.1.11.1.0', '0', 'juniper-mss', $descr, '1', $proc_usage);
}
}