1 --- install/index.php.orig 2009-07-17 09:42:38.000000000 +0200
2 +++ install/index.php 2009-07-17 09:43:16.000000000 +0200
4 if ($config["cacti_server_os"] == "win32") {
5 $search_paths = array("c:/usr/bin", "c:/cacti", "c:/rrdtool", "c:/spine", "c:/php", "c:/progra~1/php", "c:/net-snmp/bin", "c:/progra~1/net-snmp/bin", "d:/usr/bin", "d:/net-snmp/bin", "d:/progra~1/net-snmp/bin", "d:/cacti", "d:/rrdtool", "d:/spine", "d:/php", "d:/progra~1/php");
7 - $search_paths = array("/bin", "/sbin", "/usr/bin", "/usr/sbin", "/usr/local/bin", "/usr/local/sbin");
8 + $search_paths = array("/bin", "/sbin", "/usr/bin", "/usr/sbin", "/usr/pkg/bin", "/usr/pkg/sbin");
11 for ($i=0; $i<count($search_paths); $i++) {
13 }else if (!empty($which_rrdtool)) {
14 $input["path_rrdtool"]["default"] = $which_rrdtool;
16 - $input["path_rrdtool"]["default"] = "/usr/local/bin/rrdtool";
17 + $input["path_rrdtool"]["default"] = "/usr/pkg/bin/rrdtool";
19 }elseif ($config["cacti_server_os"] == "win32") {
20 $which_rrdtool = find_best_path("rrdtool.exe");
22 }else if (!empty($which_snmpwalk)) {
23 $input["path_snmpwalk"]["default"] = $which_snmpwalk;
25 - $input["path_snmpwalk"]["default"] = "/usr/local/bin/snmpwalk";
26 + $input["path_snmpwalk"]["default"] = "/usr/pkg/bin/snmpwalk";
28 }elseif ($config["cacti_server_os"] == "win32") {
29 $which_snmpwalk = find_best_path("snmpwalk.exe");
31 }else if (!empty($which_snmpget)) {
32 $input["path_snmpget"]["default"] = $which_snmpget;
34 - $input["path_snmpget"]["default"] = "/usr/local/bin/snmpget";
35 + $input["path_snmpget"]["default"] = "/usr/pkg/bin/snmpget";
37 }elseif ($config["cacti_server_os"] == "win32") {
38 $which_snmpget = find_best_path("snmpget.exe");
40 }else if (!empty($which_snmpbulkwalk)) {
41 $input["path_snmpbulkwalk"]["default"] = $which_snmpbulkwalk;
43 - $input["path_snmpbulkwalk"]["default"] = "/usr/local/bin/snmpbulkwalk";
44 + $input["path_snmpbulkwalk"]["default"] = "/usr/pkg/bin/snmpbulkwalk";
46 }elseif ($config["cacti_server_os"] == "win32") {
47 $which_snmpbulkwalk = find_best_path("snmpbulkwalk.exe");
49 }else if (!empty($which_snmpgetnext)) {
50 $input["path_snmpgetnext"]["default"] = $which_snmpgetnext;
52 - $input["path_snmpgetnext"]["default"] = "/usr/local/bin/snmpgetnext";
53 + $input["path_snmpgetnext"]["default"] = "/usr/pkg/bin/snmpgetnext";
55 }elseif ($config["cacti_server_os"] == "win32") {
56 $which_snmpgetnext = find_best_path("snmpgetnext.exe");