Success cacti BUT graph can't view
Moderators: Developers, Moderators
Success cacti BUT graph can't view
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I don't understand. Are you running the poller from crontab? Please post your crontab statement.srilinux wrote:Yes every 5 minutes, sometimes I change every several menit
Does the graph show up afterwards?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
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
So, please giving the passwort for cactiuser. Then, run and watch out for errors. You may redirect this to some log fileand post it, if in doubt
Reinhard
Code: Select all
su - cactiuser
Code: Select all
php /var/www/localhost/htdocs/cacti/poller.php
Code: Select all
php /var/www/localhost/htdocs/cacti/poller.php > /tmp/log.txt
Reinhard
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...
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...
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please locate your php binary usingThen retry the above using the /full/path/to/php instead of plain php
Reinhard
Code: Select all
which php
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
So, please giving the passwort for cactiuser. Then, run and watch out for errors. You may redirect this to some log fileand post it, if in doubt
Reinhard
Code: Select all
su - cactiuser
Code: Select all
/usr/bin/php /var/www/localhost/htdocs/cacti/poller.php
Code: Select all
/usr/bin/php /var/www/localhost/htdocs/cacti/poller.php > /tmp/log.txt
Reinhard
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Run the following command and post the output.
Where cacti is the name of your cacti database.
Code: Select all
mysqldump cacti settings
[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]
[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]
Who is online
Users browsing this forum: No registered users and 2 guests