Code

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

plugins/admin/systems/class_terminalInfo.inc

index 90278c532dc27eda3f0fdf9fc664e0812ce96c3e..9f63a771a4415172a684add6b3e441dc362560cd 100644 (file)
@@ -107,7 +107,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");