|
From: Jeremy L. <jla...@re...> - 2012-01-24 22:46:07
|
On Tue, Jan 24, 2012 at 10:26 PM, Mario Valetti <mar...@gm...> wrote:
> I know the if_err graphs are available under the "trends" column, but is it
> possible to view this period for errors directly in the table within the
> if_err column check?
I've added the following into my graphs.cfg file to achieve this.
It's essentially a copy of the [if_load] definition from
devmon-graph.cfg, but with the FNPATTERN and TITLE adjusted. I
probably should have renamed the variable names (in, inbytes, out and
outbytes) but I had bigger fish to fry at the time.
[if_err]
FNPATTERN if_err.(.*).rrd
TITLE Interface Errors
YAXIS Packets/second
DEF:in@RRDIDX@=@RRDFN@:ds0:AVERAGE
CDEF:inbytes@RRDIDX@=in@RRDIDX@,8,*
DEF:out@RRDIDX@=@RRDFN@:ds1:AVERAGE
CDEF:outbytes@RRDIDX@=out@RRDIDX@,8,*
LINE1:inbytes@RRDIDX@#@COLOR@:@RRDPARAM@ In
GPRINT:inbytes@RRDIDX@:LAST: %8.2lf %s (cur)
GPRINT:inbytes@RRDIDX@:MAX: %8.2lf %s (max)
GPRINT:inbytes@RRDIDX@:MIN: %8.2lf %s (min)
GPRINT:inbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n
LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out
GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur)
GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max)
GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (min)
GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n
-l 0
|