From 5cfab84afcbe4c883c02286e9bb44ed76b8a78e3 Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Fri, 2 Dec 2005 00:41:29 +0000 Subject: [PATCH] add snmpbulkwalk binary field to the install wizard git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3390 860744bd-22fc-0310-8c96-e9fe5004b5ca --- install/index.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/install/index.php b/install/index.php index bb814f9538..da1785d0fc 100644 --- a/install/index.php +++ b/install/index.php @@ -29,7 +29,7 @@ include("../include/config.php"); /* allow the upgrade script to run for as long as it needs to */ ini_set("max_execution_time", "0"); -$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g","0.8.6h"); +$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h"); $old_cacti_version = db_fetch_cell("select cacti from version"); @@ -150,6 +150,21 @@ if ($config["cacti_server_os"] == "unix") { } } +/* snmpbulkwalk Binary Path */ +if ($config["cacti_server_os"] == "unix") { + $input["path_snmpbulkwalk"] = $settings["path"]["path_snmpbulkwalk"]; + + $which_snmpget = find_best_path("snmpbulkwalk"); + + if (config_value_exists("path_snmpbulkwalk")) { + $input["path_snmpbulkwalk"]["default"] = read_config_option("path_snmpbulkwalk"); + }else if (!empty($which_snmpget)) { + $input["path_snmpbulkwalk"]["default"] = $which_snmpget; + }else{ + $input["path_snmpbulkwalk"]["default"] = "/usr/local/bin/snmpbulkwalk"; + } +} + /* log file path */ $input["path_cactilog"] = $settings["path"]["path_cactilog"]; $input["path_cactilog"]["description"] = "The path to your Cacti log file.";