#1  
Old 28th August 2009, 16:13
Amorphous Amorphous is offline
Member
 
Join Date: Jun 2009
Posts: 59
Thanks: 26
Thanked 1 Time in 1 Post
Default cacti graphing problems

http://howtoforge.com/cacti_centos4....rchitecture_p2

this is the tutorial i was using as guide, but, the problem is that i have a xampp installed, so was trying to adjust some settings....

fisrt of all, everything went fine, with the adjusting of the commands and the lines, but now im getting problems with the rrdtool this is the issue:

RRDTool Says:

ERROR: opening '/usr/local/cacti/rra/sw-far3_traffic_in_28.rrd': No such file or directory


this file is not created .... who has acces in it ??
and what exacttly i have to change from these settings so the rra and the log files can be written ?? cause i m guessing this is the problem right ?? i havent used the exact tutorial, cause i had to change the versions, the old ones i can t find them all ..... all the versions of the packages are the latest stable releases

cd /../usr/local/cacti
chown -R cactiuser rra/ log/
chgrp apache log/cacti.log
chmod g+w log/cacti.log


thanks
Reply With Quote
Sponsored Links
  #2  
Old 29th August 2009, 13:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

What's the output of
Code:
ls -la /usr/local/cacti/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th August 2009, 13:09
Amorphous Amorphous is offline
Member
 
Join Date: Jun 2009
Posts: 59
Thanks: 26
Thanked 1 Time in 1 Post
Default

total 1168
drwxr-xr-x 13 root root 4096 Aug 29 10:47 .
drwxr-xr-x 14 root root 4096 Aug 29 10:39 ..
-rw-r--r-- 1 root root 6199 Aug 29 10:39 about.php
-rw-r--r-- 1 root root 4980 Aug 29 10:47 auth_changepassword.php
-rw-r--r-- 1 root root 12188 Aug 29 10:47 auth_login.php
-rw-r--r-- 1 root root 92973 Aug 29 10:46 cacti-plugin-0.8.7e-PA-v2.5.diff
-rw-r--r-- 1 root root 176144 Aug 29 10:39 cacti.sql
-rw-r--r-- 1 root root 21070 Aug 29 10:39 cdef.php
drwxr-xr-x 2 root root 4096 Aug 29 10:39 cli
-rw-r--r-- 1 root root 18329 Aug 29 10:39 cmd.php
-rw-r--r-- 1 root root 6809 Aug 29 10:39 color.php
-rw-r--r-- 1 root root 24595 Aug 29 10:39 data_input.php
-rw-r--r-- 1 root root 35028 Aug 29 10:39 data_queries.php
-rw-r--r-- 1 root root 56353 Aug 29 10:47 data_sources.php
-rw-r--r-- 1 root root 32287 Aug 29 10:39 data_templates.php
drwxr-xr-x 5 root root 4096 Aug 29 10:39 docs
-rw-r--r-- 1 root root 5962 Aug 29 10:39 gprint_presets.php
-rw-r--r-- 1 root root 3491 Aug 29 10:47 graph_image.php
-rw-r--r-- 1 root root 12148 Aug 29 10:47 graph.php
-rw-r--r-- 1 root root 7957 Aug 29 10:39 graph_settings.php
-rw-r--r-- 1 root root 17383 Aug 29 10:39 graphs_items.php
-rw-r--r-- 1 root root 37470 Aug 29 10:47 graphs_new.php
-rw-r--r-- 1 root root 57723 Aug 29 10:47 graphs.php
-rw-r--r-- 1 root root 9949 Aug 29 10:39 graph_templates_inputs.php
-rw-r--r-- 1 root root 18482 Aug 29 10:39 graph_templates_items.php
-rw-r--r-- 1 root root 26024 Aug 29 10:39 graph_templates.php
-rw-r--r-- 1 root root 41326 Aug 29 10:39 graph_view.php
-rw-r--r-- 1 root root 5839 Aug 29 10:39 graph_xport.php
-rw-r--r-- 1 root root 55907 Aug 29 10:47 host.php
-rw-r--r-- 1 root root 19364 Aug 29 10:39 host_templates.php
drwxr-xr-x 2 root root 4096 Aug 29 10:39 images
drwxr-xr-x 4 root root 4096 Aug 29 10:47 include
-rw-r--r-- 1 root root 2313 Aug 29 10:47 index.php
drwxr-xr-x 2 root root 4096 Aug 29 10:39 install
drwxr-xr-x 3 root root 4096 Aug 29 10:47 lib
-rw-r--r-- 1 root root 15141 Aug 29 10:39 LICENSE
drwxr-xr-x 2 cactiuser root 4096 Aug 29 10:39 log
-rw-r--r-- 1 root root 2451 Aug 29 10:39 logout.php
drwxr-xr-x 2 root root 4096 Aug 29 10:47 plugins
-rw-r--r-- 1 root root 16153 Aug 29 10:47 plugins.php
-rw-r--r-- 1 root root 4306 Aug 29 10:39 poller_commands.php
-rw-r--r-- 1 root root 2243 Aug 29 10:39 poller_export.php
-rw-r--r-- 1 root root 16543 Aug 29 10:47 poller.php
-rw-r--r-- 1 root root 48 Aug 29 10:39 README
drwxr-xr-x 5 root root 4096 Aug 29 10:39 resource
drwxr-xr-x 2 cactiuser root 4096 Aug 29 10:39 rra
-rw-r--r-- 1 root root 7088 Aug 29 10:39 rra.php
drwxr-xr-x 2 root root 4096 Aug 29 10:39 scripts
-rw-r--r-- 1 root root 7304 Aug 29 10:39 script_server.php
-rw-r--r-- 1 root root 353 Aug 29 10:39 script_server.pl
-rw-r--r-- 1 root root 4996 Aug 29 10:39 settings.php
-rw-r--r-- 1 root root 5862 Aug 29 10:39 templates_export.php
-rw-r--r-- 1 root root 6543 Aug 29 10:39 templates_import.php
-rw-r--r-- 1 root root 18792 Aug 29 10:39 tree.php
-rw-r--r-- 1 root root 43852 Aug 29 10:47 user_admin.php
-rw-r--r-- 1 root root 64407 Aug 29 10:47 utilities.php


cd /../usr/local/cacti
chown -R cactiuser rra/ log/
chgrp apache log/cacti.log
chmod g+w log/cacti.log

su cactiuser
crontab -e

*/5 * * * * cactiuser /usr/bin/php /usr/local/cacti/poller.php > /dev/null 2>&1



using:
rrdtool-1.3.8
net-snmp-5.2.4
cacti-0.8.7e
patch cacti-plugin-0.8.7e-PA-v2.5.diff



Data Source Debug

/usr/local/bin/rrdtool create \
/usr/local/cacti/rra/zyxell_-_2024_pwr_traffic_in_8.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out: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 \


RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Zyxell - 2024 PWR - Traffic - swp00" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/cacti/rra/zyxell_-_2024_pwr_traffic_in_8.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/cacti/rra/zyxell_-_2024_pwr_traffic_in_8.rrd":traffic_out:AVERAGE \
AREA:a#00CF00FF:"Inbound" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#002A97FF:"Outbound" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

ERROR: opening '/usr/local/cacti/rra/zyxell_-_2024_pwr_traffic_in_8.rrd': No such file or directory


on the cacti official forum i ve read something about changing the user as root, or even changing the user root to acces, that means that i have to chown root rra and log and to make the crond line from root with user root instead of cactiuser ..... at least that s what i understood from that topic if it s not correct please guide me

Last edited by Amorphous; 29th August 2009 at 13:13.
Reply With Quote
  #4  
Old 29th August 2009, 13:48
Amorphous Amorphous is offline
Member
 
Join Date: Jun 2009
Posts: 59
Thanks: 26
Thanked 1 Time in 1 Post
 
Default

ok, right now i ve got another issue ... i found the command:

php -q poller.php --force

this one starts having some results
no more file not found, right now i get nan message in graphics, i will try now to use the debug section from the cacti website ...... but this command doesn look at all as the cronjob from the centos tutorial,
it means i have to change it first of all as root, and second to make the crond job from root not from cactiuser .... is that correct ??

and if it is, can u pls help me make the command for cronjob to work ?? i mean the real line ..
thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Sub-process /usr/bin/dpkg returned an error code (1) ergti Installation/Configuration 1 16th August 2009 12:36
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
cacti on suse 10.1 (problems) IKShadow Installation/Configuration 8 28th November 2006 15:09
cacti installation how to sysconfig Suggest HOWTO 3 21st November 2006 13:07
Empty Recycle Bin jon335 General 40 6th May 2006 11:56


All times are GMT +2. The time now is 13:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.