mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add PK-SOFTWARE-APPLIANCE-V2 MIB * Add support for PrimeKey Software Appliance * Move file to correct path * Make the OS detection more specific * Thanks vscode * Sync filename with osname * Not supported * Track SQL database size as volume * Two fixes
7 lines
407 B
PHP
7 lines
407 B
PHP
<?php
|
|
$sql_oids = snmp_get_multi_oid($device, ['pk-SAV2-internal-databaseAvailableStorage.0', 'pk-SAV2-internal-databaseTotalStorage.0'], '-OUQn', 'PK-SOFTWARE-APPLIANCE-V2');
|
|
$storage['free'] = $sql_oids['.1.3.6.1.4.1.22408.1.4.1.3.1.2.0'];
|
|
$storage['size'] = $sql_oids['.1.3.6.1.4.1.22408.1.4.1.3.1.3.0'];
|
|
$storage['used'] = $storage['size'] - $storage['free'];
|
|
$storage['units'] = 1024;
|
|
unset($sql_oids); |