Skip to content

Commit b231d72

Browse files
committed
Merge branch 'develop' of https://github.com/Cacti/documentation into develop
2 parents 66b4e45 + 66129be commit b231d72

File tree

2 files changed

+31
-9
lines changed

2 files changed

+31
-9
lines changed

Frequently-Asked-Questions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Maximum Value field for all data sources used by these graphs. If the value
172172
being fed to the .rrd file exceeds its Maximum Value, RRDTool will insert an
173173
Unknown and you will see no data on the graph.
174174

175-
*Q:** A lot of my graphs contain long ifAlias names, but they are being
175+
**Q:** A lot of my graphs contain long ifAlias names, but they are being
176176
truncated to 15 characters.
177177

178178
**A:** Cacti does this by default to better control graph title formatting. You

General-Installing-Instructions.md

+30-8
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ packages will vary by operating system.
2121

2222
- rrdtool
2323

24-
- help2man` (for spine)
24+
- help2man (for spine)
2525

2626
- dos2unix (for spine)
2727

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)
2929

3030
(for spine)
3131

@@ -286,16 +286,38 @@ VALUES ('localhost', 'mysql', 'cactiuser', 'time_zone_name', 'root@localhost', '
286286
(Enter a valid username for *cactiuser*, this user will also be used in the
287287
next step for data gathering.)
288288

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
290290

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:
294296

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
296299

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+
```
298317

318+
The systemd units file makes managing a highly available Cacti
319+
setup a bit more convenient.
320+
299321
8. During install, you will need to provide write access to the following files
300322
and directories:
301323

0 commit comments

Comments
 (0)