Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


what will be the problem

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
gcc



Joined: 19 Aug 2003
Posts: 5

PostPosted: Thu Sep 11, 2003 3:51 am    Post subject: what will be the problem Reply with quote

hi all,

As i configure well cacti, i login but no graph show it on..
i try to check the graph debug, it display a line of error messages like this:

ERROR: opening '/usr/local/apache/htdocs/cacti/rra/localhost_load_1min_5.rrd': No such file or directory

ERROR: opening '/usr/local/apache/htdocs/cacti/rra/localhost_mem_buffers_3.rrd': No such file or directory

ERROR: opening '/usr/local/apache/htdocs/cacti/rra/localhost_proc_7.rrd': No such file or directory


does the rrdtool problem, or others, i have install the thing it need, rrdtool-1.0.42, net-snmp 5.x, php-4.3x.

OR i need to configure in the web interface..??
Anything i need to configure more??
Back to top
Coeus
Cacti User


Joined: 04 Aug 2003
Posts: 51
Location: Perth - Western Australia

PostPosted: Fri Sep 12, 2003 12:15 am    Post subject: Reply with quote

My initial thought is that the permissions for the rra directory are incorrect.

Can you check to make sure the cacti user has correct permissions to write to this directory.

Carl
Back to top
Guest






PostPosted: Fri Sep 12, 2003 4:11 am    Post subject: Reply with quote

Coeus wrote:
My initial thought is that the permissions for the rra directory are incorrect.

Can you check to make sure the cacti user has correct permissions to write to this directory.

Carl


All the thing including the cacti directory are belongs to root, i execute the crontab also belongs to root..

-rw-r--r-- 1 root wheel 15141 Sep 11 16:28 LICENSE
-rw-r--r-- 1 root wheel 72 Sep 11 16:28 README
-rw-r--r-- 1 root wheel 4279 Sep 11 16:28 about.php
-rw-r--r-- 1 root wheel 4393 Sep 11 16:28 auth_changepassword.php
-rw-r--r-- 1 root wheel 8696 Sep 11 16:28 auth_login.php
-rw------- 1 root wheel 151508 Sep 11 16:28 cacti.sql
drwxr-xr-x 3 root wheel 1024 Sep 11 16:28 cactid
-rw-r--r-- 1 root wheel 12510 Sep 11 16:28 cdef.php
-rw-r--r-- 1 root wheel 5375 Sep 11 16:28 cmd.php
-rw-r--r-- 1 root wheel 5989 Sep 11 16:28 color.php
-rw-r--r-- 1 root wheel 20037 Sep 11 16:28 data_input.php
-rw-r--r-- 1 root wheel 41561 Sep 11 16:28 data_sources.php
-rw-r--r-- 1 root wheel 24545 Sep 11 16:28 data_templates.php
drwxr-xr-x 3 root wheel 512 Sep 11 16:28 docs
-rw-r--r-- 1 root wheel 6643 Sep 11 16:28 gprint_presets.php
-rw-r--r-- 1 root wheel 3740 Sep 11 16:28 graph.php
-rw-r--r-- 1 root wheel 2633 Sep 11 16:28 graph_image.php
-rw-r--r-- 1 root wheel 6169 Sep 11 16:28 graph_settings.php
-rw-r--r-- 1 root wheel 40346 Sep 11 16:28 graph_templates.php
-rw-r--r-- 1 root wheel 16028 Sep 11 16:28 graph_view.php
-rw-r--r-- 1 root wheel 55398 Sep 11 16:28 graphs.php
-rw-r--r-- 1 root wheel 50092 Sep 11 16:28 host.php
-rw-r--r-- 1 root wheel 18125 Sep 11 16:28 host_templates.php
drwxr-xr-x 2 root wheel 1536 Sep 11 16:28 images
drwxr-xr-x 4 root wheel 1024 Sep 11 16:28 include
-rw-r--r-- 1 root wheel 1935 Sep 11 16:28 index.php
drwxr-xr-x 2 root wheel 512 Sep 11 16:28 install
drwxr-xr-x 2 root wheel 512 Sep 11 16:28 log
-rw-r--r-- 1 root wheel 1796 Sep 11 16:28 logout.php
drwxr-xr-x 4 root wheel 512 Sep 11 16:28 resource
drwxr-xr-x 2 root wheel 512 Sep 11 16:28 rra
-rw-r--r-- 1 root wheel 8241 Sep 11 16:28 rra.php
drwxr-xr-x 2 root wheel 512 Sep 11 16:28 scripts
-rw-r--r-- 1 root wheel 6337 Sep 11 16:28 settings.php
-rw-r--r-- 1 root wheel 29656 Sep 11 16:28 snmp.php
-rw-r--r-- 1 root wheel 13357 Sep 11 16:28 tree.php
-rw-r--r-- 1 root wheel 28990 Sep 11 16:28 user_admin.php
-rw-r--r-- 1 root wheel 6807 Sep 11 16:28 utilities.php


#Cacti update
*/5 * * * * root /usr/local/php/bin/php /usr/local/apache/htdocs/cacti/cmd.php > /dev/null 2>&1
Back to top
gcc



Joined: 19 Aug 2003
Posts: 5

PostPosted: Fri Sep 12, 2003 6:41 am    Post subject: Reply with quote

OK!!! It works now. It's the permission problem... Thanks..
Back to top
dphost



Joined: 14 Sep 2003
Posts: 2
Location: NJ

PostPosted: Sun Sep 14, 2003 3:31 pm    Post subject: how Reply with quote

I am also having the same issues.

We are running cacti cmd.php as root, what permissions did you change to get things to work properly.
Back to top
Coeus
Cacti User


Joined: 04 Aug 2003
Posts: 51
Location: Perth - Western Australia

PostPosted: Sun Sep 14, 2003 10:48 pm    Post subject: Reply with quote

cd <path to cacti>
chown -R cactiuser:apache rra

(NOTE: change cactiuser to the username you set up, and apache to the default web user for your machine)

log in as root

edit /etc/crontab

*/5 * * * * cactiuser pathto/php <path to cacti>cmd.php > /dev/null 2>&1

That should sort your permissions out.

Carl
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group