mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 22:54:19 +09:00
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
This commit is contained in:
1 parent
46cf4aa940
commit
5cfab84afc
1 file changed
+16
-1
+16
-1
@@ -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.";
|
||||
|
||||
Reference in new issue
Block a user