<br>There is good number of emails exchanged regarding mysql monitoring using hobbit.<br>Please have a look on the last few months mail archive.<br><br><br><div><span class="gmail_quote">On 4/12/07, <b class="gmail_sendername">
Dominique Frise</b> <<a href="mailto:Dominique.Frise@unil.ch">Dominique.Frise@unil.ch</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Charles Jones wrote:<br>> I'm setting up mysql checks and graphing using the hobbit-modified<br>> bb-mysql.pl. I have the statuses working fine:<br>><br>><br>>       Thu Apr 12 04:42:40 2007 MySQL Server OK
<br>><br>> threads: 10<br>> questions: 2751997<br>> slow queries: 2100<br>> opens: 304<br>> flush tables: 3<br>> open tables: 100<br>> queries per second avg: 8.514<br>> maxcon: 400<br>><br>> Server version: 
4.1.9-standard-log<br>> Uptime: 3 days 17 hours 47 min 3 sec<br>><br>> Server reports timestamp of 2007-04-12 04:42:40<br>><br>><br>> However, instead of a graph at the bottom, I just have:<br>> "hobbit graph ncv:mysql" next to the hourglass. I'm using Hobbit 
4.20<br>> plus the latest "all in one" patch.<br>><br>> Here are the relevant sections from my config files, hopefully someone<br>> can point out what I'm doing wrong?<br>> hobbitserver.cfg:<br>
> TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,mysql=ncv"
<br>> GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp.http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mysql:mysqlslow,mysql:mysqlthread"
<br>> NCV_mysql="*:GAUGE"<br>><br>> hobbitgraph.cfg (these are the default entries that come with Hobbit):<br>> [mysqlslow]<br>>         DEF:slow=mysql.rrd:Slowqueries:AVERAGE<br>>         TITLE MySQL Slow Queries
<br>>         YAXIS #<br>>         LINE2:slow#00CCCC:Slow Queries<br>>         COMMENT:\n<br>>         GPRINT:slow:LAST: \: %5.1lf (cur)<br>>         GPRINT:slow:MAX: \: %5.1lf (max)<br>>         GPRINT:slow:MIN: \: %5.1lf (min)
<br>>         GPRINT:slow:AVERAGE: \: %5.1lf (avg)\n<br>><br>> [mysqlthread]<br>>         DEF:threads=mysql.rrd:Threads:AVERAGE<br>>         TITLE MySQL Active Threads<br>>         YAXIS #<br>>         AREA:threads#00CCCC:Threads
<br>>         COMMENT:\n<br>>         GPRINT:threads:LAST: \: %5.1lf (cur)<br>>         GPRINT:threads:MAX: \: %5.1lf (max)<br>>         GPRINT:threads:MIN: \: %5.1lf (min)<br>>         GPRINT:threads:AVERAGE: \: %5.1lf (avg)\n
<br>><br>> Note I have also dumped out one of the rrd files, and they have data, so<br>> I don't think the problem lies with my NCV definition:<br>> /$ rrdtool dump mysql.rrd |egrep 'name|value' | head -20/
<br>>                 <name> threads </name><br>>                 <value> 2.6730000000e+03 </value><br>>                 <name> questions </name><br>>                 <value> 
8.1735172200e+08 </value><br>>                 <name> slowqueries </name><br>>                 <value> 6.2488800000e+05 </value><br>>                 <name> opens </name>
<br>>                 <value> 9.0288000000e+04 </value><br>>                 <name> flushtables </name><br>>                 <value> 8.9100000000e+02 </value><br>>                 <name> opentables </name>
<br>>                 <value> 2.9700000000e+04 </value><br>>                 <name> queriespersecondavg </name><br>>                 <value> 2.5239060000e+03 </value><br>>                 <name> maxcon </name>
<br>>                 <value> 1.1880000000e+05 </value><br>>                 <name> Uptime </name><br>>                 <value> 8.9100000000e+02 </value><br>>                 <name> Serverreportstimest </name>
<br>>                 <value> 1.5444000000e+04 </value><br>><br>> So there we have it...the data is getting to Hobbit and being stored in<br>> the rrd files, it's just not displaying the graphs for some reason, and
<br>> at the moment I can't see why. I searched the email archive and found<br>> lots of other posts of people having similar problems, with various<br>> solutions, none of which seem to work (yes I restart Hobbit after
<br>> editing hobbitserver.cfg).<br><br>Your GRAPHS variable should be:<br><br>GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp.http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mysql"
<br><br>In bb-hosts set the TRENDS directive for the host(s) like this:<br><br>TRENDS:*,mysql:mysqlslow|mysqlthreads<br><br><br>Dominique<br>UNIL - University of Lausanne<br><br>To unsubscribe from the hobbit list, send an e-mail to
<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Thanks<br>Sabeer MZ