rrd files not being created

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

Moderators: Developers, Moderators

Post Reply
dan.ross
Posts: 18
Joined: Thu Aug 04, 2005 9:58 am

rrd files not being created

Post by dan.ross »

This has probably been hashed out before but I have created graphs according to the directions yet no rrd files are being created in the rra directory. I checked the permisions and it is owned bye cactiuser. The polller cron job is running. At what time are these files created? How do I discover why they arent being created.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Switch to DEBUG level (under "Settings"). Search your cacti.log for statements like "rrdtool create". Cut out one of those statements.
The su to your cactiuser. Paste the "rrdtool create" to cli and run it. Please post your findings.
Reinhard
mblendes
Posts: 2
Joined: Mon Sep 26, 2005 5:07 am
Location: jakarta
Contact:

rrd files not being created

Post by mblendes »

I got same problem with dan.ross

When run graph debug mode
i get opening '/var/www/html/cacti/rra/acasia_traffic_in_41.rrd': No such file or directory
but when see at source and paste at CLI

/usr/bin/rrdtool create \
/var/www/html/cacti/rra/acasia_traffic_in_41.rrd \
--step 300 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

result, i can see graph on cacti.
my crontab command :
*/5 * * * * root php /var/www/html/cacti/cmd.php > /dev/null 2>&1

Can you help me to solve this problem
thanks' before (cause i'm newbie)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You run the poller as root (usually not recommended). It would be better, to pipe the results not to /dev/null but to your cacti log directory (e.g. /var/www/html/cacti/log/poller.log if <path_cacti> resolves to /var/www/html/cacti). Looking at poller.log may resolve some issues.
Another question: what about the timestamp of this newly created rrd? Does it change every 5 mins? It would not change if there's no update.
Next hint: look at <path_cacti/log/cacti.log for possible errors. You can increase log verbositiy under "Settings": Switch to DEBUG mode.
Reinhard
rkramer
Cacti User
Posts: 54
Joined: Fri Jun 03, 2005 12:25 pm

Post by rkramer »

run the poller manually as root and see what happens...
mblendes
Posts: 2
Joined: Mon Sep 26, 2005 5:07 am
Location: jakarta
Contact:

Post by mblendes »

Dear Reinhard

thank's for your attention, but result still same. Crontab can't cretae a file .rra
For graph that created by CLI, time is counting but never have a data from SNMP.
Cacti.log also can't increase.

after i change php / with location for php (with /usr/bin/php) cacti log file give information like this :

/bin/sh: root: command not found

Now i trys change user, and also reinstall for everything (i use .tar.gz packet, not rpm).
Thank's for your attention.
cherzberg
Posts: 2
Joined: Tue Sep 27, 2005 3:12 am

Post by cherzberg »

Hi,

I have the same problem. This problem comes up when no snmp is possible. I try to graph only the ping latency of a web server and it still don´t work with the same error message.
Thanks

Christian
cherzberg
Posts: 2
Joined: Tue Sep 27, 2005 3:12 am

Post by cherzberg »

Hi again

I solved the problem with a trick. First I use a host with snmp enabled.
After the graph will written i change the ip address and it works.
Thanks

Christian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest