Added memory utilization discovery/polling for DNOS

This commit is contained in:
Casey Schoonover
2016-04-19 09:45:18 -05:00
parent 8000a837cf
commit f95ed6c37e
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
// Code below was borrowed from 'powerconnect-cpu.inc.php'
//--------------------------------------------------------------------//
// Dell-Vendor-MIB::dellLanExtension.6132.1.1.1.1.4.1.0 = INTEGER: 23127
// Dell-Vendor-MIB::dellLanExtension.6132.1.1.1.1.4.2.0 = INTEGER: 262144
// Simple hard-coded poller for Dell Powerconnect (tested on 6248P)
// Yes, it really can be this simple.
// Pity there's no matching MIB to be found.
$mempool['total'] = snmp_get($device, '.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.2.0', '-OvQ');
$mempool['free'] = snmp_get($device, '.1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.1.0', '-OvQ');
$mempool['used'] = ($mempool['total'] - $mempool['free']);