You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Upgrading-Cacti.md
+26-9Lines changed: 26 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,43 +32,60 @@ Before you begin, ensure that both your Apache/NGINX and your Crontab or systemd
32
32
33
33
You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup.
34
34
35
-
5. Backup the Old Cacti Directory:
35
+
4. Backup the Old Cacti Directory:
36
36
37
37
Backup the old Cacti directory with the exception of the RRD files, which should not need backup.
38
38
```shell
39
39
shell> tar --exclude=*.rrd -zcf cacti_backup_YYYYMMDD.tgz cacti
40
40
```
41
-
6. Extract the Distribution Tarball:
41
+
5. Extract the Distribution Tarball:
42
42
```shell
43
43
shell> tar -xzvf cacti-version.tar.gz
44
44
```
45
-
7. Copy the Distribution Tarball Over the Existing Installation:
45
+
6. Copy the Distribution Tarball Over the Existing Installation:
46
46
```shell
47
47
shell> /bin/cp -rpf cacti-version cacti
48
48
```
49
-
8. Set Appropriate Permissions:
49
+
7. Set Appropriate Permissions:
50
50
51
51
Set the appropriate permissions on Cacti's directories for graph/log generation. Execute these commands from inside Cacti's directory to change the permissions.
52
+
53
+
On RHEL/Rocky Linux/AlmaLinux (Apache runs as `apache`):
52
54
```shell
53
55
shell> chown -R apache:apache rra/ log/
54
56
```
55
-
9. Recreate the Cache Folder (Optional):
57
+
58
+
On Ubuntu/Debian (Apache runs as `www-data`):
59
+
```shell
60
+
shell> chown -R www-data:www-data rra/ log/
61
+
```
62
+
63
+
8. Recreate the Cache Folder (Optional):
56
64
57
65
If you are using Performance > Image Caching or Realtime Graphing, recreate the cache folder and correct the permissions.
58
66
```shell
59
67
shell> mkdir cache
68
+
```
69
+
70
+
On RHEL/Rocky Linux/AlmaLinux:
71
+
```shell
60
72
shell> chown -R apache:apache cache
61
-
```
73
+
```
74
+
75
+
On Ubuntu/Debian:
76
+
```shell
77
+
shell> chown -R www-data:www-data cache
78
+
```
62
79
63
-
10. Point Your Browser:
80
+
9. Point Your Browser:
64
81
65
82
Point your web browser to http://your-server/cacti/ and follow the on-screen instructions to update your database to the new version.
66
83
67
-
11. Re-enable Polling:
84
+
10. Re-enable Polling:
68
85
69
86
Go to the console and re-enable the poller. It will take two polling cycles to update the remote pollers.
70
87
71
-
12. If Remote Pollers Fail to Update:
88
+
11. If Remote Pollers Fail to Update:
72
89
73
90
Try to rebuild the Resource Cache by going to Console >> Utilities and wait 2 polling cycles.
0 commit comments