Xymon Mailing List Archive search

diskstat.sh/RRD oddity

list Jeremy Laidman
Fri, 30 Mar 2012 15:39:29 +1100
Message-Id: <CAAnki7C7cRwtAs-TfK9+HjKTiUFR5VQ+aw8M-jJBRdqd1fxs=user-380b5fa67d92@xymon.invalid>

On Fri, Mar 30, 2012 at 2:23 AM, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
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.
No you wouldn't.  Just use a COUNTER instead of a GAUGE and RRD will
automatically track the previous value and show the difference.

J