From: hickert Date: Fri, 26 Oct 2007 09:06:15 +0000 (+0000) Subject: Added snmp community to config file Closes: #237 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e9775a4d6c9661dfe729ae923d4e7d94d665be99;p=gosa.git Added snmp community to config file Closes: #237 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7674 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index c50718481..b5697afd9 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -180,7 +180,8 @@ - + @@ -209,7 +210,8 @@ {else} {/if} - + @@ -219,7 +221,8 @@ - + {if $cv.enableFAI_management} {else} diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc index 9f63a771a..989a5e34c 100644 --- a/plugins/admin/systems/class_terminalInfo.inc +++ b/plugins/admin/systems/class_terminalInfo.inc @@ -84,11 +84,10 @@ class terminfo extends plugin $display.= _("This is a virtual terminal which has no properties to show here."); $display.= ""; } else { - /* Get template object */ + /* Get template object */ $smarty->assign("staticAddress", ""); - /* Prevent undefined variable .... */ $smarty->assign("load", progressbar(0,100,15,true)); $smarty->assign("mem", progressbar(0,100,15,true)); @@ -104,7 +103,13 @@ class terminfo extends plugin /* Fill data if we have snmp */ $host= $this->cn; + + /* Use goto as snmp community or the configured value from the config */ $community= 'goto'; + $str = search_config($this->config->data['TABS'],"terminfo","SNMPCOMMUNITY"); + if(!empty($str)){ + $community = $str; + } /* Get memory informations */ if(!is_callable("snmpget")){