I know you guys must hate this question...
Moderators: Developers, Moderators
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: I know you guys must hate this question...
Thats because you started the poller as root manually and your cron is running the poller as cacti user.
Fix the permissions...
Fix the permissions...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: I know you guys must hate this question...
Looks like my cron isn't running, the dates have not changed since I last posted..
Re: I know you guys must hate this question...
Cron process is running but the rrd files are not updating still. I have restarted cron and the server but no luck..
[root@localhost rra]# ps aux | grep cron
root 16983 0.0 0.0 116860 1212 ? Ss 20:13 0:00 crond
root 18981 0.0 0.0 103308 864 pts/0 S+ 20:28 0:00 grep cron
[root@localhost rra]# ps aux | grep cron
root 16983 0.0 0.0 116860 1212 ? Ss 20:13 0:00 crond
root 18981 0.0 0.0 103308 864 pts/0 S+ 20:28 0:00 grep cron
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: I know you guys must hate this question...
Did you even read my post ?
Due to your manual run all rrd files are owned by root and can only be updated by root.
But your cron is running the poller as the cacti user which is not able to write or update these rrd files.
Fix your permissions.
Due to your manual run all rrd files are owned by root and can only be updated by root.
But your cron is running the poller as the cacti user which is not able to write or update these rrd files.
Fix your permissions.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: I know you guys must hate this question...
No I didnt, I only saw it now. Thank youphalek wrote:Did you even read my post ?
Due to your manual run all rrd files are owned by root and can only be updated by root.
But your cron is running the poller as the cacti user which is not able to write or update these rrd files.
Fix your permissions.
Re: I know you guys must hate this question...
So as phalek said, the rrd files were owned by root:
[root@localhost ~]# ls -la /usr/share/cacti/rra
drwxrwxrwx. 2 cacti root 4096 Jun 25 22:03 .
drwxr-xr-x. 5 root root 4096 Jun 23 21:12 ..
-rw-r--r-- 1 root root 94816 Jun 26 22:30 asa_traffic_in_67.rrd
-rw-r--r-- 1 root root 94816 Jun 26 22:30 asa_traffic_in_68.rrd
[removed]
I have changed the ownership: chown cacti:cacti *.rrd
[root@localhost ~]# ls -la /var/lib/cacti/rra/
drwxrwxrwx. 2 cacti root 4096 Jun 25 22:03 .
drwxr-xr-x. 5 root root 4096 Jun 23 21:12 ..
-rw-r--r-- 1 cacti cacti 94816 Jun 29 21:41 asa_traffic_in_67.rrd
-rw-r--r-- 1 cacti cacti 94816 Jun 29 21:41 asa_traffic_in_68.rrd
-rw-r--r-- 1 cacti cacti 94816 Jun 29 21:41 asa_traffic_in_69.rrd
[removed]
I forced a poll (which if all is ok with cron I guess shouldnt be needed), and now im waiting.. Hope I have done the right thing..
[root@localhost ~]# ls -la /usr/share/cacti/rra
drwxrwxrwx. 2 cacti root 4096 Jun 25 22:03 .
drwxr-xr-x. 5 root root 4096 Jun 23 21:12 ..
-rw-r--r-- 1 root root 94816 Jun 26 22:30 asa_traffic_in_67.rrd
-rw-r--r-- 1 root root 94816 Jun 26 22:30 asa_traffic_in_68.rrd
[removed]
I have changed the ownership: chown cacti:cacti *.rrd
[root@localhost ~]# ls -la /var/lib/cacti/rra/
drwxrwxrwx. 2 cacti root 4096 Jun 25 22:03 .
drwxr-xr-x. 5 root root 4096 Jun 23 21:12 ..
-rw-r--r-- 1 cacti cacti 94816 Jun 29 21:41 asa_traffic_in_67.rrd
-rw-r--r-- 1 cacti cacti 94816 Jun 29 21:41 asa_traffic_in_68.rrd
-rw-r--r-- 1 cacti cacti 94816 Jun 29 21:41 asa_traffic_in_69.rrd
[removed]
I forced a poll (which if all is ok with cron I guess shouldnt be needed), and now im waiting.. Hope I have done the right thing..
Last edited by timed_out on Wed Jun 29, 2016 8:13 am, edited 1 time in total.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: I know you guys must hate this question...
Please also check your cacti.log file (log/cacti.log) if that's owned by root and the cacti user cannot write to it, then your polling will fail.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: I know you guys must hate this question...
It like this right now:
[root@localhost ~]# ls -la /var/log/cacti.log
-rw-rw-rw-. 1 cacti root 18251008 Jun 29 23:10 /var/log/cacti.log
Does it need to be cacti:cacti?
Thanks Phalek
[root@localhost ~]# ls -la /var/log/cacti.log
-rw-rw-rw-. 1 cacti root 18251008 Jun 29 23:10 /var/log/cacti.log
Does it need to be cacti:cacti?
Thanks Phalek
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: I know you guys must hate this question...
cacti:apache if you want to "purge/clear" it from the Cacti console.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: I know you guys must hate this question...
Ok that makes more sense.. learning.. Thanks.
chown cacti:apache /var/log/cacti.log
Let see what happens..
chown cacti:apache /var/log/cacti.log
Let see what happens..
Re: I know you guys must hate this question...
oh s*** its working! Happy days are here again! Thanks Phalek, et al
Who is online
Users browsing this forum: No registered users and 1 guest