<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.4357" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console" size=2>I'm
wanting to use Simple::RRD to build stats graphics from a program that is
intended to run infrequently (say once or twice a day). I've got this working
reasonably well, except that it's showing single dots on the update times, and
I'd like it to extrapolate lines between the dots.</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console" size=2>What's
the recommended best practice for this sort of usage? Should I be adjusting
frequency?</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console" size=2>Here's
what I'm using now:</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console" size=2>use
RRD::Simple;<BR>...</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console" size=2># Prepare
the RRD files<BR>my ( $ldmsrrd, $ldmsrrdfile );<BR>$ldmsrrdfile =
"ldmsstats.rrd";<BR>if (! -e $ldmsrrdfile ) { <BR> # LDMS RRD
file didn't exist, so create and initialize it<BR> $ldmsrrd =
RRD::Simple->new( file => "$ldmsrrdfile" ); <BR>
$ldmsrrd->create( $ldmsrrdfile,
"mrtg",<BR> AllDevices =>
"GAUGE",<BR> DayDevices =>
"GAUGE",<BR> WeekDevices =>
"GAUGE",<BR> );</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console" size=2>} else
{<BR> # LDMS RRD file did exist, so we just need to initialize
it<BR> $ldmsrrd = RRD::Simple->new( file => $ldmsrrdfile
); <BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2> # Update RRD too<BR>
$ldmsrrd->update(<BR> AllDevices
=> $allmachines,<BR> DayDevices
=> $dbscans,<BR> WeekDevices =>
$dbscansweek<BR> );<BR> my %rtn =
$ldmsrrd->graph(<BR> destination
=> "$reportdir",<BR> title =>
"LDMS Inventory Statistics",<BR>
vertical_label => "Devices / Daily /
Weekly",<BR> interlaced =>
""<BR> );<BR> if ($DEBUG)
{<BR> &LogDebug("Logged LDMS RRD
statistics: "
<BR> . map {
$rtn{$_}->[0] } keys %rtn<BR>
);<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=534033418-02112008><FONT face="Lucida Console"
size=2>Jack</FONT></SPAN></DIV></BODY></HTML>