mysql_stats templates - replication template wont show graph
Moderators: Developers, Moderators
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
mysql_stats templates - replication template wont show graph
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???
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!
- mysql_replication_via_cmd_OK.JPG (33.17 KiB) Viewed 7308 times
-
- Via the Cacti web page gprah is not showing.
- mysql_replication_no_graph.JPG (62.7 KiB) Viewed 7310 times
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
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 ...
/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 ...
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
You're using a distro rpm? Please verify, that all patches have been applied: http://www.cacti.net/download_patches.php
Reinhard
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
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 ...
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 ...
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
"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)"
/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)"
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Login to the server and take that RRDtool syntax and paste it into a shell like this:
Post the result of that command. I am suspecting a segmentation fault.
TheWitness
Code: Select all
rrdtool my_graph_syntax > myfile.png
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?
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?
-
- Posts: 21
- Joined: Sun Nov 04, 2007 8:19 am
#/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...
> --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 (23.57 KiB) Viewed 7057 times
Who is online
Users browsing this forum: No registered users and 2 guests