@@ -21,11 +21,11 @@ packages will vary by operating system.
21
21
22
22
- rrdtool
23
23
24
- - help2man` (for spine)
24
+ - help2man (for spine)
25
25
26
26
- dos2unix (for spine)
27
27
28
- - development packages (gcc, automake, autoconf, libtool, help2man)
28
+ - development packages (gcc, automake, autoconf, libtool, either mysql-devel or mariadb-devel, net-snmp-devel, help2man)
29
29
30
30
(for spine)
31
31
@@ -286,16 +286,38 @@ VALUES ('localhost', 'mysql', 'cactiuser', 'time_zone_name', 'root@localhost', '
286
286
(Enter a valid username for * cactiuser* , this user will also be used in the
287
287
next step for data gathering.)
288
288
289
- 7 . Create a new file ` /etc/cron.d/cacti ` and add to it:
289
+ 7 . Create your cron task file or systemd units file
290
290
291
- ``` ini
292
- */5 * * * * cactiuser php <path_cacti>/poller.php > /dev/null 2>&1
293
- ```
291
+ Starting with Cacti 1.2.16, you have the option to use either the
292
+ legacy Crontab entry, or an optional cactid units file and server
293
+ to run your Cacti pollers.
294
+
295
+ For Crontab use, follow the instructions below:
294
296
295
- Replace * cactiuser* with the valid user specified in the previous step.
297
+ Create and edit ` /etc/cron.d/cacti ` file.
298
+ Make sure to setup the correct path to poller.php
296
299
297
- Replace ` <path_cacti> ` with your full Cacti path.
300
+ ``` console
301
+ */5 * * * * apache php <path_cacti>/poller.php &>/dev/null
302
+ ```
303
+
304
+ For systemd unit's file install, you will need to modify the
305
+ included units file to following your install location
306
+ and desired user and group's to run the Cacti poller as.
307
+ To complete the task, follow the procedure below:
308
+
309
+ ``` console
310
+ vim <path_cacti>/service/cactid.service (edit the path)
311
+ touch /etc/sysconfig/cactid
312
+ cp -p <path_cacti>/service/cactid.service /etc/systemd/system
313
+ systemctl enable cactid
314
+ systemctl start cactid
315
+ systemctl status cactid
316
+ ```
298
317
318
+ The systemd units file makes managing a highly available Cacti
319
+ setup a bit more convenient.
320
+
299
321
8 . During install, you will need to provide write access to the following files
300
322
and directories:
301
323
0 commit comments