2013-06-17 Miguel de Dios <miguel.dedios@artica.es>

* include/functions.php: fixed in the function "get_snmpwalk" the
	lost global $config var.
	
	Fixes: #2295




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-06-17 06:57:25 +00:00
parent 258e0f7696
commit af24d446ca
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2013-06-17 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: fixed in the function "get_snmpwalk" the
lost global $config var.
Fixes: #2295
2013-06-14 Miguel de Dios <miguel.dedios@artica.es>
* extensions/plugin_registration.php: fixed the url of module

View File

@ -1271,6 +1271,8 @@ function get_snmpwalk($ip_target, $snmp_version, $snmp_community = '', $snmp3_au
$snmp3_security_level = '', $snmp3_auth_method = '', $snmp3_auth_pass = '',
$snmp3_privacy_method = '', $snmp3_privacy_pass = '', $quick_print = 0, $base_oid = "", $snmp_port = '') {
global $config;
// Note: quick_print is ignored
// Fix for snmp port
@ -1283,7 +1285,7 @@ function get_snmpwalk($ip_target, $snmp_version, $snmp_community = '', $snmp3_au
$base_oid = escapeshellarg ($base_oid);
}
if ($config['snmpwalk'] == '') {
if (empty($config['snmpwalk'])) {
switch (PHP_OS) {
case "FreeBSD":
$snmpwalk_bin = '/usr/local/bin/snmpwalk';