Forum Discussion
ringoseagull_77
Nimbostratus
Jul 16, 2010Cacti issue: Poller works from cli but not from cron
I'm running Cacti 0.8.7.e on Linux.
I can see from the cron log that cron is running, but can't see in the cacti logs what is causing the issue. Environmental settings perhaps?
Logs show Cacti polling but graphs not being updated unless run from the command line.
If I could find an error I'd have a go at fixing it........
Cron runs as root user, not cacti user, as suggested in F5 template instructions.
RRA and log directories are owned by cacti.
php is located at /usr/local/php/bin/php. The Cacti settings>path window shows this can be located. I added a sym link to /usr/local/bin/php too.
Any ideas?
- ringoseagull_77
Nimbostratus
Took me ages to spot it, but in the crontab example on the F5 HowTo the username 'root' is included in the line between the frequency and command. Normally it would run as cacti user on other systems but as on the F5s it runs from root's crontab as root this breaks it.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects