mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
26 lines
1.0 KiB
PHP
26 lines
1.0 KiB
PHP
<?php
|
|
/*
|
|
* LibreNMS Moxa EtherDevice Memory information module
|
|
*
|
|
* Copyright (c) 2017 Aldemir Akpinar <aldemir.akpinar@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.
|
|
*/
|
|
/*
|
|
-- CPU Loading and Free Memory info.
|
|
totalMemory OBJECT-TYPE
|
|
freeMemory OBJECT-TYPE
|
|
"Total size of free dynamic memory"
|
|
usedMemory OBJECT-TYPE
|
|
"Total size of used dynamic memory"
|
|
memoryUsage OBJECT-TYPE
|
|
"The usage of memory size in %."
|
|
*/
|
|
|
|
$mempool['total'] = snmp_get($device, "totalMemory.0", '-OvQ', 'MOXA-IKS6726A-MIB');
|
|
$mempool['used'] = snmp_get($device, "usedMemory.0", '-OvQ', 'MOXA-IKS6726A-MIB');
|
|
$mempool['free'] = snmp_get($device, "freeMemory.0", '-OvQ', 'MOXA-IKS6726A-MIB');
|