mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
netscaler fixed mempool
git-svn-id: http://www.observium.org/svn/observer/trunk@2825 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
#NS-ROOT-MIB::resMemUsage.0 = Gauge32: 29
|
||||
#NS-ROOT-MIB::memSizeMB.0 = INTEGER: 815
|
||||
|
||||
if($device['os'] == "netscaler")
|
||||
{
|
||||
|
||||
discover_mempool($valid_mempool, $device, "0", "netscaler", "Memory", NULL, NULL, NULL);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
#NS-ROOT-MIB::memSizeMB.0 = INTEGER: 815
|
||||
#NS-ROOT-MIB::resMemUsage.0 = Gauge32: 29
|
||||
#.1.3.6.1.4.1.5951.4.1.1.41.4.0 = INTEGER: 815
|
||||
#.1.3.6.1.4.1.5951.4.1.1.41.2.0 = Gauge32: 29
|
||||
|
||||
## Simple hard-coded poller for Netscaler
|
||||
## Yes, it really can be this simple.
|
||||
|
||||
$mempool['total'] = snmp_get($device, ".1.3.6.1.4.1.5951.4.1.1.41.4.0", "-OvQ");
|
||||
$mempool['perc'] = snmp_get($device, ".1.3.6.1.4.1.5951.4.1.1.41.2.0", "-OvQ");
|
||||
$mempool['used'] = $mempool['total'] / 100 * $mempool['perc'];
|
||||
$mempool['free'] = $mempool['total'] - $mempool['used'];
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user