I know you guys must hate this question...

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
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...

Post by phalek »

Thats because you started the poller as root manually and your cron is running the poller as cacti user.

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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Looks like my cron isn't running, the dates have not changed since I last posted..
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

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
User avatar
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...

Post by phalek »

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.
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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

phalek 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.
No I didnt, I only saw it now. Thank you
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

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..
Last edited by timed_out on Wed Jun 29, 2016 8:13 am, edited 1 time in total.
User avatar
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...

Post by phalek »

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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

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
User avatar
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...

Post by phalek »

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
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

Ok that makes more sense.. learning.. Thanks.

chown cacti:apache /var/log/cacti.log

Let see what happens..
timed_out
Posts: 27
Joined: Wed Jun 10, 2009 5:07 am

Re: I know you guys must hate this question...

Post by timed_out »

oh s*** its working! Happy days are here again! Thanks Phalek, et al
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests