]>
Commit | Line | Data |
---|---|---|
a7b5aa62 ER |
1 | --- cacti-spine-0.8.7a/spine.h~ 2007-11-26 05:40:21.000000000 +0200 |
2 | +++ cacti-spine-0.8.7a/spine.h 2008-10-05 05:33:49.545548298 +0300 | |
3 | @@ -136,20 +136,18 @@ | |
4 | #define MAX_SIMULTANEOUS_SCRIPTS 20 | |
5 | ||
6 | /* locations to search for the config file */ | |
7 | -#define CONFIG_PATHS 3 | |
8 | -#define CONFIG_PATH_1 "" | |
9 | -#define CONFIG_PATH_2 "/etc/" | |
10 | -#define CONFIG_PATH_3 "../etc/" | |
11 | +#define CONFIG_PATHS 1 | |
12 | +#define CONFIG_PATH_1 "/etc/webapps/cacti/" | |
13 | ||
14 | /* config file defaults */ | |
15 | #define DEFAULT_CONF_FILE "spine.conf" | |
16 | #define DEFAULT_THREADS 5 | |
17 | #define DEFAULT_DB_HOST "localhost" | |
18 | #define DEFAULT_DB_DB "cacti" | |
19 | -#define DEFAULT_DB_USER "cactiuser" | |
20 | -#define DEFAULT_DB_PASS "cactiuser" | |
21 | +#define DEFAULT_DB_USER "mysql" | |
22 | +#define DEFAULT_DB_PASS "" | |
23 | #define DEFAULT_DB_PORT 3306 | |
24 | -#define DEFAULT_LOGFILE "/var/www/html/cacti/log/cacti.log" | |
25 | +#define DEFAULT_LOGFILE "/var/log/cacti/cacti.log" | |
26 | #define DEFAULT_TIMEOUT 294000000 | |
27 | ||
28 | /* threads constants */ | |
29 | --- cacti-spine-0.8.7a/util.c~ 2007-11-26 05:40:21.000000000 +0200 | |
30 | +++ cacti-spine-0.8.7a/util.c 2008-10-05 05:35:03.349764684 +0300 | |
31 | @@ -462,8 +462,6 @@ | |
32 | STRNCOPY(set.dbpass, DEFAULT_DB_PASS); | |
33 | ||
34 | STRNCOPY(config_paths[0], CONFIG_PATH_1); | |
35 | - STRNCOPY(config_paths[1], CONFIG_PATH_2); | |
36 | - STRNCOPY(config_paths[2], CONFIG_PATH_3); | |
37 | ||
38 | set.log_destination = LOGDEST_FILE; | |
39 | } | |
40 | --- cacti-spine-0.8.7a/spine.conf~ 2007-11-26 05:40:21.000000000 +0200 | |
41 | +++ cacti-spine-0.8.7a/spine.conf 2008-10-05 05:41:07.495832134 +0300 | |
42 | @@ -28,8 +28,8 @@ | |
43 | # | DB_User The user to access the database, typically 'cactiuser' | | |
44 | # | DB_Pass The password for the Cacti user | | |
45 | # +-------------------------------------------------------------------------+ | |
46 | -DB_Host localhost | |
47 | -DB_Database cacti | |
48 | -DB_User cactiuser | |
49 | -DB_Pass cactiuser | |
50 | -DB_Port 3306 | |
51 | \ No newline at end of file | |
52 | +#DB_Host localhost | |
53 | +#DB_Database cacti | |
54 | +#DB_User mysql | |
55 | +#DB_Pass | |
56 | +#DB_Port 3306 |