Code

Fixed snmp call when !is_callable
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Oct 2007 06:41:24 +0000 (06:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Oct 2007 06:41:24 +0000 (06:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7669 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_terminalInfo.inc

index 0b81eb7d35f1891b7aa1e969a1574d951141293c..f233e746b38996e0087b940f07ecdf3628bfd8f2 100644 (file)
@@ -118,7 +118,7 @@ class terminfo extends plugin
           $community= 'goto';
 
           /* Get memory informations */
-          if(is_callable("snmpget")){
+          if(!is_callable("snmpget")){
             $MemFree = false;
           }else{
             $MemFree= @snmpget($host, $community, "UCD-SNMP-MIB::memory.memAvailReal.0");