From e9775a4d6c9661dfe729ae923d4e7d94d665be99 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Oct 2007 09:06:15 +0000 Subject: [PATCH] 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 --- contrib/gosa.conf | 9 ++++++--- plugins/admin/systems/class_terminalInfo.inc | 9 +++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) 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")){ -- 2.30.2