|
|
| Author |
Message |
gcc
Joined: 19 Aug 2003 Posts: 5
|
Posted: Thu Sep 11, 2003 3:51 am Post subject: what will be the problem |
|
|
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
|
Posted: Fri Sep 12, 2003 12:15 am Post subject: |
|
|
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
|
Posted: Fri Sep 12, 2003 4:11 am Post subject: |
|
|
| 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
|
Posted: Fri Sep 12, 2003 6:41 am Post subject: |
|
|
| OK!!! It works now. It's the permission problem... Thanks.. |
|
| Back to top |
|
 |
dphost
Joined: 14 Sep 2003 Posts: 2 Location: NJ
|
Posted: Sun Sep 14, 2003 3:31 pm Post subject: how |
|
|
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
|
Posted: Sun Sep 14, 2003 10:48 pm Post subject: |
|
|
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 |
|
 |
|