ERROR: opening '/www/htdocs/cacti/rra/...:No such file ...

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
arcturus
Posts: 2
Joined: Wed Aug 10, 2005 3:22 am

ERROR: opening '/www/htdocs/cacti/rra/...:No such file ...

Post by arcturus »

Hi,

I'am triyng to start with cacti (first time :oops:). I've followed all the instructions in the pdf - Installation HOW-TO For lINUX, BY llee Carter.
I've FC3 and cacti-0.86e. By default cacti's generates grafs for the localhost, but i can't see them. When i turn on the debug mode for the graph i get this message:
RRDTool Says:

ERROR: opening '/www/htdocs/cacti/rra/localhost_load_1min_5.rrd': No such file or directory.
The permissions in /www/htdocs/cacti/ rra/ and log/ are:
#drwxr-xr-x 2 cactiuser users 4096 Jun 21 01:46 log
#drwxr-xr-x 2 cactiuser users 4096 Jun 21 01:46 rra

This files are not generated. Why?

Thanks in advance,
pierre-luc
Posts: 8
Joined: Wed Aug 10, 2005 10:05 pm
Location: Montreal, Canada

Post by pierre-luc »

Hi,
Are you sure the crontab line is correct? Do you try to run cmd.php as cactiuser?
arcturus
Posts: 2
Joined: Wed Aug 10, 2005 3:22 am

Post by arcturus »

Hi Pierre,

thanks for the reply.
The line on the file crontab is "*5**** cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1"


My crontab is like this:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
*5**** cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

I've run the cmd.php as cactiuser and i've got this:

[cactiuser@cmviseu root]$ /www/php/bin/php /www/htdocs/cacti/cmd.php
#!/usr/bin/php -q
08/11/2005 09:23:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/11/2005 09:23:02 AM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
08/11/2005 09:23:02 AM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
08/11/2005 09:23:03 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /www/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 66036
08/11/2005 09:23:03 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /www/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1048408
08/11/2005 09:23:03 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /www/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.41 5min:0.26 10min:0.20
08/11/2005 09:23:03 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /www/htdocs/cacti/scripts/unix_users.pl, output: 3
08/11/2005 09:23:03 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /www/htdocs/cacti/scripts/unix_processes.pl, output: 100
08/11/2005 09:23:03 AM - CMDPHP: Poller[0] Time: 1.4058 s, Theads: N/A, Hosts: 1

Once again, i'am new working with cacti and Linux.
Thanks in advance for any help.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

You are writing your rrd files in a sub directory of webroot. Check your selinux settings. This is a common gotcha with fedora.

Also,
what does a tail of your cacti log & /var/log/httpd/error_log say?
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

Arcturus, try changing your crontab to:
*/5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1

I think missing the slash in there for the minute part and not having the spaces between the other time intervals might make it not run at all.
did.jey
Posts: 8
Joined: Sun Jul 06, 2008 4:31 pm

Cacti no suche file RRA

Post by did.jey »

Hi,

My problem is that the rrd files are created in a directory but Cacti tries to read it in another directory.
the rrd files are created in the directory /var/www/html/cacti/rra/ but it says that it can't create graph as no such file has been found. It looks at the directory /usr/share/cacti/rra/ instead of where it has been created.
If anyone can help me to solve this problem.
Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest