Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


graph previews don't display

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
gilesw



Joined: 13 Sep 2003
Posts: 9

PostPosted: Sat Sep 13, 2003 6:17 pm    Post subject: graph previews don't display Reply with quote

http://p15141874.pureserver.info/cacti/graph.php?local_graph_id=2&rra_id=1&show_source=true

I've run this source at the command prompt and generated an image

http://p15141874.pureserver.info/temp.png

I can't understand why the php generated image isn't displaying. My setup is.

php4.3.3 compiled with:-

--infodir=/usr/share/info \
--with-config-file-path=/etc \
--enable-versioning \
--enable-force-cgi-redirect \
--disable-debug \
--disable-rpath \
--enable-inline-optimization \
--with-gd \
--with-bz2 \
--with-png-dir=/usr/lib \
--with-curl \
--with-exec-dir=/usr/bin \
--with-openssl \
--with-dom \
--with-xml= \
--with-expat-dir=/usr \
--with-zlib \
--with-layout=GNU \
--enable-debugger \
--with-pear=/usr/share/pear \
--with-kerberos \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--without-oci8 \
--with-imap \
--with-imap-ssl \
--with-mysql=/usr \
--with-snmp=/usr/local \
--enable-ucd-snmp-hack \
--enable-memory-limit \
--enable-versioning \
--enable-dio \
--with-apxs=/usr/sbin/apxs

rrdtool 1.0.45 compiled.
net-snmp5.0.9 compiled.

cmd.php runs without any errors and the rrd files are being generated.

Anyone have any ideas?

thanks,

gilo.
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Sun Sep 14, 2003 5:44 pm    Post subject: Reply with quote

I see the following graph source:

Code:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="Localhost - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
DEF:a="/var/www/html/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/var/www/html/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
AREA:a#00CF00:"Inbound"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT::AVERAGE:" Average\:%8.2lf %s"  \
GPRINT::MAX:" Maximum\:%8.2lf %s\n"  \
LINE1:b#002A97:"Outbound"  \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s"


It seems that the data source is missing for the AVERAGE and MAXIMUM GPRINT types. If you are creating this graph from a template, make sure these four graph items are included in the appropriate graph item input. If not, let me know and I will help you debug further.

-Ian
Back to top
gilesw



Joined: 13 Sep 2003
Posts: 9

PostPosted: Sun Sep 14, 2003 6:56 pm    Post subject: Reply with quote

I've removed snmp from my php install and now 3 of the default graphs are drawn. which is great.

load average is the only one which isn't.

I switched on the debugging and i get the following error :-

ERROR: can't parse ':AVERAGE: Average\:%8.2lf %s'

I'll try and work out how to change these data sources.

g.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group