New installation almost there!!

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

Moderators: Developers, Moderators

Post Reply
agoddard
Posts: 10
Joined: Thu Nov 03, 2005 2:49 am

New installation almost there!!

Post by agoddard »

Hi guys, I have just installed Cacti on FreeBSD 5.4 using all the defaults etc etc.. everything seems to work ok, I login and can setup devices and graphs, however when try to view the graphs, there's no graph! I get the name of the device and "5 minute average" etc, but there's no graph there. If I click on the spanner tool, I get the following (from a netscreen firewall) can anybody tell me where to start looking for the problem?

Thanks
Anthony

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="NetScreen - Traffic - 192.168.0.245 (trust)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/netscreen_untrust_traffic_in_11.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/netscreen_untrust_traffic_in_11.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"
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Has the poller at least run one time?
[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]
agoddard
Posts: 10
Joined: Thu Nov 03, 2005 2:49 am

Post by agoddard »

A ha!

Thanks for the tip.. i feel like a goose! I cd'd to the cacti directory and ran php poller.php, and when I returned to the web interface I had a graph.

when I manually ran poller.php, there were a lot of lines "Can't find module (NONE): at line 0 in (none)

is this a problem?

Thanks again for the tip.

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

Post by rony »

Apply all available patches for you cacti version, which from that error, is 0.8.6g. :)
[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]
agoddard
Posts: 10
Joined: Thu Nov 03, 2005 2:49 am

Post by agoddard »

thanks for the tip. I have installed all of the patches and now when I manually run poller.php I don't get those errors. I should open my eyes, I didn't even notice the patch section on the website before!

I still have graphs after running poller.php for the first time, however the graphs are still empty after running the patches. When I run the cron job manually (php /usr/share/cacti/poller.php > /dev/null 2>&1) I get a "ambiguous output redirect" error. I have read that this might be related to the shell I am using, but I'm not sure. There doesn't seem to be any errors in my /var/log/cron file....

Am I able to check the files in the /rra directory for something? Should they contain certain information which might point to the problem?

I have CHOWN'd the /rra and /log directories to the cactiuser user and that's the user which the cron job runs under...

Thanks again for the help guys.

Ant.
agoddard
Posts: 10
Joined: Thu Nov 03, 2005 2:49 am

Post by agoddard »

ok, another update... :-) I have changed the php poller in the cron into the cactiuser's own cron file, instead of in the main crontab file, to see if that might help, and it doesn't seem to have. I have also installed cactid and configured it to point to my database (and switched to it in cacti) but that doesn't seem to have helped either...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests