<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@MS Mincho";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:Arial;
color:navy;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>I
had the same problems as you with missing/gappy data, however –nocache seemed
to work just fine. I haven’t had any issues since I started using it. Are
you sure you’re calling it correctly?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>CMD
hobbitd_channel --channel=data --log=/dev/null hobbitd_rrd --no-cache
--rrddir=/var/lib/xymon/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>CMD
hobbitd_channel --channel=status --log=/dev/null hobbitd_rrd --no-cache
--rrddir=/var/lib/xymon/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>…
are what my rrddata and rrdstatus sections are using, respectively<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>-jc<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center tabindex=-1>
</div>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Tahoma'>From:</span></b><span
style='font-size:10.0pt;font-family:Tahoma'> Stewart, Tom L.
[mailto:Tom.Stewart@landsend.com] <br>
<b>Sent:</b> Thursday, November 19, 2009 7:48 AM<br>
<b>To:</b> hobbit@hswn.dk<br>
<b>Subject:</b> RE: [hobbit] Question about using no-cache on rrd for xymon
4.3.0.0.beta-2</span><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>It
has been almost a week and no-one has answered my question about turning off
caching in the latest xymon code <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>I
checked the source code and my –no-cache flag seems to be correct, but
the caching is continuing and is causing holes ( no update for a five minute
period) in the rrd files. I also found where –no-cache is set within
do_rrd.c and hobbitd_rrd.c, so I am assuming that there is a bug here that does
not turn off caching using the –no-cache flag. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>So
for a temporary fix, can I just set:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>do_rrd.c:int
use_rrd_cache = 1; /* Use the cache by default */<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>to<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>do_rrd.c:int
use_rrd_cache = 0; /* Don’t use the cache by default */<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>recompile
and move the binary over or would I be wasting my time as the caching would
still continue?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'>Tom<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center tabindex=-1>
</div>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Tahoma'>From:</span></b><span
style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName w:st="on">Stewart,
Tom L.</st1:PersonName> [mailto:Tom.Stewart@landsend.com] <br>
<b>Sent:</b> Friday, November 13, 2009 3:19 PM<br>
<b>To:</b> <st1:PersonName w:st="on">hobbit@hswn.dk</st1:PersonName><br>
<b>Subject:</b> [hobbit] Question about using no-cache on rrd for xymon
4.3.0.0.beta-2</span><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>We are
having issues with rrd leaving 5-10 minute intervals of no data for items such
as cpu load on various systems. Most of the time it happens three times in a
row like at 2, 3 and 4 pm. I am not finding anything is the logs on either the
client or server. Some googling indicated that the issue may go away by using
the no-cache option for RRD. I have added it to the hobbitlaunch.cfg as such:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>hobbitlaunch.cfg:
CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/rrd-status.log
hobbitd_rrd --no-cache
--extra-tests=cpucisco,ifaload,ifload,vload,wphlstat,wperrors
--extra-script=/home/xymon/server/ext/extra-rrd.pl --rrddir=$BBVAR/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>hobbitlaunch.cfg:
CMD hobbitd_channel --channel=data --log=$BBSERVERLOGS/rrd-data.log
hobbitd_rrd --no-cache --extra-tests=mpstat,zonestat
--extra-script=/home/xymon/server/ext/rrd_data.pl --rrddir=$BBVAR/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>This is on
a 32 bit red hat system and when I do a ps –ef | grep rrd I show the
following:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>xymon
7635 7599 0 14:26 ?
00:00:01 hobbitd_channel --channel=status --log=/home/xymon/logs/rrd-status.log
hobbitd_rrd --no-cache
--extra-tests=cpucisco,ifaload,ifload,vload,wphlstat,wperrors --extra-script=/home/xymon/server/ext/extra-rrd.pl
--rrddir=/home/xymon/data/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>xymon
7636 7599 0 14:26 ?
00:00:00 hobbitd_channel --channel=data --log=/home/xymon/logs/rrd-data.log
hobbitd_rrd --no-cache --extra-tests=mpstat,zonestat --extra-script=/home/xymon/server/ext/rrd_data.pl
--rrddir=/home/xymon/data/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>xymon
7672 7635 0 14:26 ?
00:00:07 hobbitd_rrd --no-cache
--extra-tests=cpucisco,ifaload,ifload,vload,wphlstat,wperrors
--extra-script=/home/xymon/server/ext/extra-rrd.pl --rrddir=/home/xymon/data/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>xymon
7681 7636 0 14:26 ?
00:00:03 hobbitd_rrd --no-cache --extra-tests=mpstat,zonestat
--extra-script=/home/xymon/server/ext/rrd_data.pl --rrddir=/home/xymon/data/rrd<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>So it looks
like it is in effect, but looking at the tmp file I still see the following:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>srw-rw-rw-
1 xymon xymon 0 Nov 13 14:26
rrdctl.7672<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>srw-rw-rw-
1 xymon xymon 0 Nov 13 14:26
rrdctl.7681<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>When I stop
and restart xymon I still get messages such as:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>rrd-status.log:2009-11-13
14:26:09 Cache flush completed<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>rrd-status.log:2009-11-13
14:26:18 Peer not up, flushing message queue<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>So my
question is have I placed the –no-cache in the wrong sequence on the
startup command or is that been taken out of beta-2?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>Thank you,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>Tom<o:p></o:p></span></p>
</div>
</div>
</body>
</html>