mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	* cdata-logo * cdata definitions * cdata definitions discovery * cdata discovery mempools * cdata polling mempools * cdata polling os * cdata mibs * cdata tests json * cdata tests snmpsim * cdata polling os * cdata mempools fix * cdata mempools fix2 * delete IANAifType-MIB * Delete IF-MIB * Delete SNMPv2-MIB * Delete SNMPv2-SMI * Delete BRIDGE-MIB
		
			
				
	
	
		
			18 lines
		
	
	
		
			759 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			759 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/*
 | 
						|
 * LibreNMS
 | 
						|
 *
 | 
						|
 * Copyright (c) 2019 hartred <tumanov@asarta.ru>
 | 
						|
 * 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.
 | 
						|
 */
 | 
						|
 | 
						|
$temp_data = snmp_get_multi_oid($device, ['memTotalSize.0', 'memFreeSize.0'], '-OUQs', 'FD-SYSTEM-MIB:CDATA-EPON-MIB:NSCRTV-FTTX-EPON-MIB:NSCRTV-PON-TREE-EXT-MIB');
 | 
						|
$mempool['total'] = $temp_data['memTotalSize.0'];
 | 
						|
$mempool['free'] = $temp_data['memFreeSize.0'];
 | 
						|
$mempool['used'] = $mempool['total'] - $mempool['free'];
 | 
						|
unset($temp_data);
 |