all graphs are blank

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

Moderators: Developers, Moderators

Post Reply
henders254
Posts: 3
Joined: Wed Jan 28, 2009 7:33 pm

all graphs are blank

Post by henders254 »

I am running cacti-0.8.7d-1.1 on OpenSUSE 11.1 with rrdtool version 1.3.4-1.27.1 and trying to graph my switch. But all the graphs are coming empty. I am polling 5 minutes interval via crontab and running cacti for two days. I have run php /srv/www/htdocs/cacti/poller.php from the CLI and get the shell back. There are lots of .rrd files under /srv/www/htdocs/cacti/rra/ with permission root:root (guess they were created by cacti)

I can graph the switch via MRTG (I don't run RRD with MRTG) and can also get information out of the switch via snmpwalk (version 2).

In cacti, I selected the device with Host Template "Generic SNMP-enabled Host" and also selected SNMP version 2.

When I went to graph management, I was presented with all the interfaces (100 of them in total) for this switch and I asked it to graph traffic in and out and selected graph templte as "Interface - Traffic (bits/sec)"

I went to Graph Management, viewed a single Graph, pressed the "Debug" link and here is what I found:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="switch - Traffic - D22" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/cacti/rra/switch_traffic_in_21.rrd":traffic_in:AVERAGE \
DEF:b="/srv/www/htdocs/cacti/rra/switch_traffic_in_21.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"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#002A97FF:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
Is this an issue with RRDTool not using TTF fonts? If so, how can I resolve this?

Thanks for any help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

All sounds / looks good so far. Post a screenshot of what you mean.

Make sure you have a valid rrdtool font defined in cacti's settings.
Also follow http://docs.cacti.net/manual:087:4_help ... #debugging
henders254
Posts: 3
Joined: Wed Jan 28, 2009 7:33 pm

Post by henders254 »

BSOD2600 wrote:All sounds / looks good so far. Post a screenshot of what you mean.

Make sure you have a valid rrdtool font defined in cacti's settings.
Also follow http://docs.cacti.net/manual:087:4_help ... #debugging
This is what I get.

Also, after I changed the crontab entry from "*/5 * * * * php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1" to */5 * * * * /usr/bin/php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1, I am getting the following (green vertical bars) for some of the graphs.

The font path in Cacti is empty. What should I put there?

Thanks.
Attachments
error 1
error 1
cactierr1.jpg (25.87 KiB) Viewed 1009 times
error 2
error 2
cactierr2.jpg (29.68 KiB) Viewed 1009 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

henders254 wrote:The font path in Cacti is empty. What should I put there?
A path to a valid font... i.e. on Windows: C:/WINDOWS/Fonts/VeraMono.ttf
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest