Skip to content

Commit 77a9cab

Browse files
fix: expand duplicate poller checks and generalize web server user
Add /etc/crontab and crontab -l -u root to duplicate poller check list; pollers are sometimes installed via root crontab rather than /etc/cron.d. Replace Debian-specific 'www-data' note with generic wording that names both www-data and apache as platform examples. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
1 parent 982e404 commit 77a9cab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Debugging.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ Check for duplicate entries:
197197
```sh
198198
systemctl status cactid
199199
cat /etc/cron.d/cacti
200+
cat /etc/crontab
200201
crontab -l -u cactiuser 2>/dev/null
202+
crontab -l -u root 2>/dev/null
201203
```
202204

203205
The recommended approach is to use the `cactid` systemd service and remove any
@@ -215,7 +217,8 @@ cron entry:
215217
*/5 * * * * cactiuser /usr/bin/php -q /var/www/html/cacti/poller.php > /dev/null 2>&1
216218
```
217219

218-
Replace `cactiuser` with `www-data` on Debian/Ubuntu systems.
220+
Replace `cactiuser` with the user your web server runs as (e.g. `www-data` on
221+
Debian/Ubuntu, `apache` on RHEL-compatible systems).
219222

220223
## Not NaN, but 0 (zero) values
221224

0 commit comments

Comments
 (0)