mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add mempool for powerconnect, at least 62xx series
git-svn-id: http://www.observium.org/svn/observer/trunk@2861 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
14
includes/discovery/mempools/powerconnect-cpu.inc.php
Executable file
14
includes/discovery/mempools/powerconnect-cpu.inc.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
if ($device['os'] == "powerconnect")
|
||||
{
|
||||
echo("Powerconnect: ");
|
||||
|
||||
$free = snmp_get($device, "dellLanExtension.6132.1.1.1.1.4.1.0", "-OvQ", "Dell-Vendor-MIB");
|
||||
|
||||
if (is_numeric($free))
|
||||
{
|
||||
discover_mempool($valid_mempool, $device, 0, "powerconnect-cpu", "CPU Memory", "1", NULL, NULL);
|
||||
}
|
||||
}
|
||||
?>
|
14
includes/polling/mempools/powerconnect-cpu.inc.php
Executable file
14
includes/polling/mempools/powerconnect-cpu.inc.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?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, "dellLanExtension.6132.1.1.1.1.4.2.0", "-OvQ", "Dell-Vendor-MIB");
|
||||
$mempool['free'] = snmp_get($device, "dellLanExtension.6132.1.1.1.1.4.1.0", "-OvQ", "Dell-Vendor-MIB");
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
|
||||
?>
|
Reference in New Issue
Block a user