Problem on my Cacti graph : time frame of 2 hours drawned

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

Moderators: Developers, Moderators

Post Reply
franckboutet
Posts: 6
Joined: Thu Jun 18, 2009 8:21 am

Problem on my Cacti graph : time frame of 2 hours drawned

Post by franckboutet »

Hello all,

i need your help !

My cacti 0.8.7c is working fine... No errors on cacti-poller.log, etc ...

BUT on each graph, only a time frame of two hours is drawn .....

Before is deleted automatically ... And so on ...

Can you give me a clue to solve this strange issue ???

Thanks in advance !!!

Franck
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Re: Problem on my Cacti graph : time frame of 2 hours drawne

Post by khufure »

franckboutet wrote:Hello all,

i need your help !

My cacti 0.8.7c is working fine... No errors on cacti-poller.log, etc ...

BUT on each graph, only a time frame of two hours is drawn .....

Before is deleted automatically ... And so on ...

Can you give me a clue to solve this strange issue ???

Thanks in advance !!!

Franck
sounds like either something is deleting your datasources files ($cacti_home/rra) or they were created with a very strange step & heartbeat. for the first, you need to check to see if a process is deleting the files. for the second, I'd recommend a reinstall. Also, why not use 087d instead of 087c?
franckboutet
Posts: 6
Joined: Thu Jun 18, 2009 8:21 am

Post by franckboutet »

Hi, many thanks for your answer !

In fact i have created the rra "by hand" with the same command seen on

"Turn on Data Source Debug Mode", because Cacti is not able to create them automatically. ("not able to set permissions").

I will try the last version and try to fix the problem of rra's creation.

Thanks.
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

franckboutet wrote:Hi, many thanks for your answer !

In fact i have created the rra "by hand" with the same command seen on

"Turn on Data Source Debug Mode", because Cacti is not able to create them automatically. ("not able to set permissions").

I will try the last version and try to fix the problem of rra's creation.

Thanks.
You should never create the RRD by hand. Don't do this, it can only do bad things. It is the poller's job to create rrd. I would suggest you delete any RRD you created.
franckboutet
Posts: 6
Joined: Thu Jun 18, 2009 8:21 am

Post by franckboutet »

Hi, yes you are right.

I found what's going wrong !

Cacti is creting the rra files in /var/lib/cacti/rra but, when i create a graph base on a data source, Cacti is searching the rra in /var/share/cacti/rra !

Damned !

Maybe you know where to set the correct path in order to make Cacti create the files in the correct directory !

Tnaks again

Franck
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

franckboutet wrote:Hi, yes you are right.

I found what's going wrong !

Cacti is creting the rra files in /var/lib/cacti/rra but, when i create a graph base on a data source, Cacti is searching the rra in /var/share/cacti/rra !

Damned !

Maybe you know where to set the correct path in order to make Cacti create the files in the correct directory !
I don't know of a way to set this in the GUI. This value is set at installation and probably stored in a MySQL table.

As a hint, in your Apache look for "DocumentRoot". This setting is where $CACTI_HOME is. (If RedHat this is usually something like cacti.conf in an Apache include directory installed by RPM).

Anyway, $CACTI_HOME/rra is the standard and I'm not aware of installs ever deviating except on purpose. What does

Code: Select all

ls -lat /var/lib/cacti /var/share/cacti | grep rra | grep -v rra.php
show? Perhaps you can have Apache/Cacti get on the same page as your poller by symlink one directory to the other. E.g.

Code: Select all

sudo ln -s /var/lib/cacti/rra /var/share/cacti/rra
-- Or the other way around. Note that you need to move the old folder that's in the way before this will work.
franckboutet
Posts: 6
Joined: Thu Jun 18, 2009 8:21 am

Post by franckboutet »

Hello !

I have puit Cacti on /var/lib, upgraded to 0.8.7d with patchs.

But the problem was still there. So i deleted the SQL database and created it again !

And ....

Everything is working great !

Many thanks to you.

See ya !

Franck
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests