Success cacti BUT graph can't view

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

Moderators: Developers, Moderators

srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Success cacti BUT graph can't view

Post by srilinux »

Hi... everbody, I am new members at this cacti forum
and first I have success install cacti tools, but
but why I can't view graph, and I found infornmation
as below:
--------------------
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CORE-BPS - Traffic - EO0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/corebps_traffic_in_64.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/corebps_traffic_in_64.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

ERROR: opening '/var/www/localhost/htdocs/cacti/rra/corebps_traffic_in_64.rrd': No such file or directory
-----------------
So .... can everybody help me
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you at least waiting 1 polling cycle?

Is the poller scheduled to run every 5 minutes?

Does the user that the poller runs as have permissions to the "rra" and "log"
directory?

Are you running Linux and if so, is SELinux enabled? If so, disable it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

Have you at least waiting 1 polling cycle?
Yes
Is the poller scheduled to run every 5 minutes?
Yes every 5 minutes, sometimes I change every several menit
Does the user that the poller runs as have permissions to the "rra" and "log"
directory?
I have changed permission rra and log with cactiuser
Are you running Linux and if so, is SELinux enabled? If so, disable it.

Yes , I used gentoo linux
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

srilinux wrote:Yes every 5 minutes, sometimes I change every several menit
I don't understand. Are you running the poller from crontab? Please post your crontab statement.
Does the user that the poller runs as have permissions to the "rra" and "log"
directory?
I have changed permission rra and log with cactiuser
Does the graph show up afterwards?
Reinhard
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

Oh I am sorry, from crontab I have setting every 5 minutes,
the configure at /etc/crontab as below:
*/5 * * * * cactiuser php /var/www/localhost/htdocs/cacti/poller.php > /dev/null 2>&1

Until now I can't see the graph

So ..Please help me all my friends...?

Thanks for your help
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So, please

Code: Select all

su - cactiuser
giving the passwort for cactiuser. Then, run

Code: Select all

php /var/www/localhost/htdocs/cacti/poller.php
and watch out for errors. You may redirect this to some log file

Code: Select all

php /var/www/localhost/htdocs/cacti/poller.php > /tmp/log.txt
and post it, if in doubt
Reinhard
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

So, please
Code:
su - cactiuser
giving the passwort for cactiuser. Then, run
Code:
php /var/www/localhost/htdocs/cacti/poller.php
and watch out for errors. You may redirect this to some log file
-------------------------------------------------------------------------
After I do that the responed answer as below:
sh: /var/www/localhost/htdocs/cacti/rra: is a directory

and when I check at rra directori location
ls -la /var/www/localhost/htdocs/cacti/rra is empty

So... I still wait for your solution all my friends...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please locate your php binary using

Code: Select all

which php
Then retry the above using the /full/path/to/php instead of plain php
Reinhard
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

#which php
after that responed
/usr/bin/php

what does mean your said:
"Then retry the above using the /full/path/to/php instead of plain php"

I am so sorry because I newbie linux
BUT I am very interested about it
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So, please

Code: Select all

su - cactiuser
giving the passwort for cactiuser. Then, run

Code: Select all

/usr/bin/php /var/www/localhost/htdocs/cacti/poller.php
and watch out for errors. You may redirect this to some log file

Code: Select all

/usr/bin/php /var/www/localhost/htdocs/cacti/poller.php > /tmp/log.txt
and post it, if in doubt
Reinhard
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

/usr/bin/php /var/www/localhost/htdocs/cacti/poller.php
and the responed as below:

sh: /var/www/localhost/htdocs/cacti/rra: is a directory

I am still waiting for your help to my trouble.
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

And file /tmp/log.txt as below:
04/19/2006 05:24:12 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceed
ed. Exiting.
04/19/2006 05:24:12 PM - SYSTEM STATS: Time:292.1948 Method:cactid Processes:1 T
hreads:10 Hosts:4 HostsPerProcess:4 DataSources:188 RRDsProcessed:0

Warning: pclose(): 44 is not a valid stream resource in /var/www/localhost/htdoc
s/cacti/lib/rrd.php on line 48

I am still wait these solution
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

Halo everybody..
please help me..
because I don't know what happened with my cacty..?
srilinux
Posts: 14
Joined: Mon Apr 17, 2006 12:12 am

Post by srilinux »

So...what can I do for my trouble Cacti..
I try, and try again but until now i don't know
why graphic does't view...?


:cry:
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run the following command and post the output.

Code: Select all

mysqldump cacti settings
Where cacti is the name of your cacti database.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests