Hi,
I'am triyng to start with cacti (first time ). 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,
ERROR: opening '/www/htdocs/cacti/rra/...:No such file ...
Moderators: Developers, Moderators
-
- Posts: 8
- Joined: Wed Aug 10, 2005 10:05 pm
- Location: Montreal, Canada
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.
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.
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?
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
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
Cacti no suche file RRA
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
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
Who is online
Users browsing this forum: No registered users and 4 guests