mysql_stats templates - replication template wont show graph

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

mysql_stats templates - replication template wont show graph

Post by markokobal »

Hi,

I have successfuly set up the mysql_stats templates, the only one problem is with the repliacation template.

See below - via the Cacti web page there is no grap - but if I go to graph debug and execute the rrdtool commad via commad line the graph is generated.

How is this possible???
Attachments
If I go to graph debug mode and execute the shown rrdtool cmd line command via shell the graph is successfuly generated!
If I go to graph debug mode and execute the shown rrdtool cmd line command via shell the graph is successfuly generated!
mysql_replication_via_cmd_OK.JPG (33.17 KiB) Viewed 7308 times
Via the Cacti web page gprah is not showing.
Via the Cacti web page gprah is not showing.
mysql_replication_no_graph.JPG (62.7 KiB) Viewed 7310 times
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

Post by markokobal »

Hi,

So, nobody has any clue about this weird problem?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post the whole rrdtool graph statement shown at Graph Management. Please note your current rrdtool version
Reinhard
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

Post by markokobal »

RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Corvus - MySQL - Replication - 3310" \
--base=1000 \
--height=150 \
--width=600 \
--alt-autoscale-max \
--lower-limit=1 \
--logarithmic \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":ReadExecLogPosDiff:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":SecondsBehindMaster:AVERAGE \
DEF:c="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":BinlogCacheDiskUse:AVERAGE \
DEF:d="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":BinlogCacheUse:AVERAGE \
CDEF:cdefa=a,1024,/ \
CDEF:cdefd=c,1024,/ \
CDEF:cdefe=d,1024,/ \
AREA:cdefa#EAAF00:"LogPosLag(KB)" \
LINE1:cdefa#837C04:"" \
LINE2:b#F51D30:"Seconds Lag" \
LINE2:cdefd#4444FF:"Binlog Cache Disk(K)" \
LINE1:cdefe#35962B:"Binlog Cache Use(K)"

RRDTool Says:

---------

So RRDTool Says "nothing" ;-)

My OS: 6.2-RELEASE-p8
rrdtool: rrdtool-1.2.23
cacti: cacti-0.8.6j.3_2

(as I mentioned, other graphs - about 200 of them - are shown ok), just this one bugs me ...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at /var/log/httpd/error_log when graphing this one.
You're using a distro rpm? Please verify, that all patches have been applied: http://www.cacti.net/download_patches.php
Reinhard
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

Post by markokobal »

Hi,

I have looked at the error log and no errors are logged. The last error that was logged was the error of the favicon.ico "File does not exist" but this is irrelevant and I have fixed this days ago.

I'm using the FreeBSD port version of the cacti (http://www.freebsd.org/cgi/ports.cgi?qu ... &stype=all) and I guess it has all paches applied.

It's an really wierd problem ...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please select the broken graph. Now you will see 4 broken graphs, each of them accompanied by a wrench. Select the first one and post again the whole rrdtool graph statement
Reinhard
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

Post by markokobal »

"wrench" debug of the first of fourg graphs (Daily (5 Minute Average)):

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Corvus - MySQL - Replication - 3310" \
--base=1000 \
--height=150 \
--width=600 \
--alt-autoscale-max \
--lower-limit=1 \
--logarithmic \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":ReadExecLogPosDiff:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":SecondsBehindMaster:AVERAGE \
DEF:c="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":BinlogCacheDiskUse:AVERAGE \
DEF:d="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":BinlogCacheUse:AVERAGE \
CDEF:cdefa=a,1024,/ \
CDEF:cdefd=c,1024,/ \
CDEF:cdefe=d,1024,/ \
AREA:cdefa#EAAF00:"LogPosLag(KB)" \
LINE1:cdefa#837C04:"" \
LINE2:b#F51D30:"Seconds Lag" \
LINE2:cdefd#4444FF:"Binlog Cache Disk(K)" \
LINE1:cdefe#35962B:"Binlog Cache Use(K)"
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

Post by markokobal »

So, looks like this one remains unresolved?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Will pm Larry. Can't get it myself
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Login to the server and take that RRDtool syntax and paste it into a shell like this:

Code: Select all

rrdtool my_graph_syntax > myfile.png
Post the result of that command. I am suspecting a segmentation fault.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
markokobal
Posts: 21
Joined: Sun Nov 04, 2007 8:19 am

Post by markokobal »

#/usr/local/bin/rrdtool graph - \
> --imgformat=PNG \
> --start=-86400 \
> --end=-300 \
> --title="Corvus - MySQL - Replication - 3310" \
> --base=1000 \
> --height=150 \
> --width=600 \
> --alt-autoscale-max \
> --lower-limit=1 \
> --logarithmic \
> --vertical-label="" \
> --slope-mode \
> DEF:a="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":ReadExecLogPosDiff:AVERAGE \
> DEF:b="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":SecondsBehindMaster:AVERAGE \
> DEF:c="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":BinlogCacheDiskUse:AVERAGE \
> DEF:d="/usr/local/share/cacti/rra/corvus_readexeclogposdiff_233.rrd":BinlogCacheUse:AVERAGE \
> CDEF:cdefa=a,1024,/ \
> CDEF:cdefd=c,1024,/ \
> CDEF:cdefe=d,1024,/ \
> AREA:cdefa#EAAF00:"LogPosLag(KB)" \
> LINE1:cdefa#837C04:"" \
> LINE2:b#F51D30:"Seconds Lag" \
> LINE2:cdefd#4444FF:"Binlog Cache Disk(K)" \
> LINE1:cdefe#35962B:"Binlog Cache Use(K)" > /root/test.png
#

... no errors at all via shell command line! And like you can see below the graph is actualy created without problems. And the data in the .rrd files are also stored. Well, this is really wierd. Is there some special wrapper or something when cacti web application executes the commad above so that graph is not generated properly? Wierdy wierd...
Attachments
test.png
test.png (23.57 KiB) Viewed 7057 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests