Add fortigate support, many thanks to Matthias Cramer (matthias dot cramer at iway dot ch)

git-svn-id: http://www.observium.org/svn/observer/trunk@2986 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-07 22:36:20 +00:00
parent 02531d8bd9
commit 87d02ab9f9
8 changed files with 5531 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
<?php
## Simple hard-coded poller for Fortinet Fortigate
## Yes, it really can be this simple.
echo "Fortigate MemPool";
$mempool['perc'] = snmp_get($device, "FORTINET-FORTIGATE-MIB::fgSysMemUsage.0", "-OvQ");
$mempool['total'] = snmp_get($device, "FORTINET-FORTIGATE-MIB::fgSysMemCapacity.0", "-OvQ");
$mempool['used'] = $mempool['total'] * ($mempool['perc']/100);
$mempool['free'] = $mempool['total'] - $mempool['used'];
echo "(U: ".$mempool['used']." T: ".$mempool['total']." F: ".$mempool['free'].") ";
?>