mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added snmp mibs from vendor (https://www.hillstonenet.com) * Added memoery discovery and pool * Added serial and os version discovery. * Added cpu discovery. * Added temperature and power sensors * Added test data. * Fix yaml format. * Pass mib name as parameter. * Pass mib name as parameter. * Use numeric OID * User snmp_get_multi_oid * Use snmp_get_multi_oid * Remove default extension from vendor. * Update test data. * Renamed some mibs + changed oid in disco proc * Updated json test data * Update processor discovery to yaml
8 lines
270 B
PHP
8 lines
270 B
PHP
<?php
|
|
if ($device['os'] === 'stoneos') {
|
|
$currentMemory = snmp_get($device, 'sysCurMemory.0', '-OvQU', 'HILLSTONE-SYSTEM-MIB');
|
|
if (is_numeric($currentMemory)) {
|
|
discover_mempool($valid_mempool, $device, 0, 'stoneos', 'Memory', '1', null, null);
|
|
}
|
|
}
|