Thanks for the tips.<br><br>Vernon, We are using a version of your script that was posted to the list and begins with an if statement to detect the running OS as Solaris or not. The code on Xymonton appears to be the original version which does not work on Linux. But the tip still applies.<br>

<br>Wim, I had not looked at /proc/diskstats before, but it returns the total number of reads, writes, etc, since system boot, so I would have to do some coding and remember previous values to get what we get from iostat. At this point I have things working ok so I don't feel the need to write another script.<br>

<br>Thanks,<br>Steve<br><br><div class="gmail_quote">On Thu, Mar 29, 2012 at 3:28 AM, W.J.M. Nelis <span dir="ltr"><<a href="mailto:Wim.Nelis@nlr.nl">Wim.Nelis@nlr.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is just a comment on an oddity with respect to diskstat.sh and RRD.<br>
<br>
We make pretty heavy use of the diskstat.sh script, which I believe I<br>
downloaded from xymonton. When I installed it I used the standard<br>
clientlaunch.cfg stanza for the configuration and everything worked great.<br>
<br>
I was called to task today because we have been having some disk io issues<br>
on the RHEL VMs and someone was looking at the trend graphs for some<br>
servers to see if there was anything they could learn and they noticed that<br>
beginning at about 4pm local time on Monday the graphs for the number of<br>
sectors written per second on a couple of file systems on several VMs<br>
jumped from the 10 to 20 range to the 300 to 340 range and stayed there.<br>
The graph for number of disk writes per second had a corresponding jump up<br>
to about 40 or 50 from close to zero.<br>
<br>
In analyzing the data I discovered that the file system that was displaying<br>
this behavior is the same file system to which the diskstat.sh script is<br>
writing its temp files. It appears that for some reason, starting at 4pm on<br>
Monday the 5 minute test interval and the 5 minute average for RRD got in<br>
sync and all it was seeing was the data point that corresponded to its own<br>
writing activity and RRD was using it for the entire 5 minute average (of<br>
course, that's what RRD does).<br>
</blockquote></div>
The diskstat.sh script collects a sample at each invocation. Thus the measurements cover only a fraction of time. As you seem to be using RHEL, you could use /proc/diskstats to get the same data, but in stead of a statistical sample, you will get averages since the last invocation (measurement). That would prohibit the "positive" interference described above, in which you measure your own measurement activities.<br>


<br>
Regards,<br>
  Wim Nelis.<br>
<br>
<br>
<br>
<br>
******************************<u></u>******************************<u></u>******************************<u></u>************************<br>
<br>
The NLR disclaimer is valid for NLR e-mail messages.<br>
<br>
This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual<br>
or legal commitment on the part of the sender.<br>
This message may contain information that is not intended for you. If you are not the addressee or if this<br>
message was sent to you by mistake, you are requested to inform the sender and delete the message.<br>
Sender accepts no liability for damage of any kind resulting from the risks inherent in the electronic<br>
transmission of messages.<br>
<br>
******************************<u></u>******************************<u></u>******************************<u></u>************************<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/<u></u>mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="font-size:13px;background-color:rgb(255,255,255)">If they give you ruled paper, write the other way. -Juan Ramon Jimenez, poet, Nobel Prize in literature (1881-1958) </span><br>

</span></font><br>I prayed for freedom for twenty years, but received no answer until I 
prayed with my legs. -Frederick Douglass, Former slave, abolitionist, 
editor, and orator (1817-1895)
<br></div><br>