Initial commit for ServerIron support

This commit is contained in:
Xavier Beaudouin
2016-02-23 17:57:08 +01:00
parent 7b29b570f6
commit 63a76a7605
7 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?php
// Somewhat of an uggly hack since Server doesn't support fetching total memory of the device over SNMP
// Given OID returns usage in percent so we set total to 100 in order to get a proper graph
$mempool['total'] = "100";
$mempool['used'] = snmp_get($device, "1.3.6.1.4.1.1588.2.1.1.1.26.6.0", "-Ovq");
$mempool['free'] = ($mempool['total'] - $mempool['used']);