So here's what I get on the main graph section.

Everything's the same though, how do I check the timestamps on files? It looks like poll is still not running by itself

Moderators: Moderators, Developers
Code: Select all
/usr/share/cacti/rra
Code: Select all
# chmod +x *
How do I check the timestamps on files? It looks like poll is still not running by itself
Code: Select all
# ls -l
Code: Select all
semanage fcontext -a -t httpd_sys_content_t "/usr/share/cacti(/.*)?"
semanage fcontext -a -t httpd_sys_rw_content_t "/usr/share/cacti/(.*)/((log|rra|resource|scripts|cache)(/.*)?)"
semanage fcontext -a -t httpd_sys_content_t "/usr/share/cacti/.*/.htaccess"
restorecon -R -v /usr/share/cacti
Hello thanks for joining and helping!netniV wrote:Right, several things here. 'admin' user is NOT the user that is running the poller. That is the website administrative user.
The poller is probably running as cacti not apache. It's rare that people have the poller configured to use the website user unless they have manually configured it and skipped most tutorials. Most package installations also user a specific user for the poller.
The poller user should be part of the web server's group (apache or www-data).
The folders above should be 775 and the files 664. Easy way to handle that with chmod these days is chmod g+w
If SELinux is enable (which it is by default in CentOS 7) then you also need to change the context of the cacti folders that need to be written to.
Code: Select all
semanage fcontext -a -t httpd_sys_content_t "/usr/share/cacti(/.*)?" semanage fcontext -a -t httpd_sys_rw_content_t "/usr/share/cacti/(.*)/((log|rra|resource|scripts|cache)(/.*)?)" semanage fcontext -a -t httpd_sys_content_t "/usr/share/cacti/.*/.htaccess"
Code: Select all
sudo -u cacti /usr/bin/php /usr/share/cacti/poller.php