[Xymon] Network Traffic (bps / Mbps)
Jeremy Laidman
jlaidman at rebel-it.com.au
Sat Jul 16 01:19:13 CEST 2016
On Sat, 16 Jul 2016, 03:40 oliver <ohemming at gmail.com> wrote:
> Hello All
>
> I'm running 4.3.21.
>
> For our Network Traffic graphs, the in/out readings are in bps and the
> total is in Mbps
>
> Here's the section from graphs.cfg (which has not been modified)
>
> [ifstat]
> FNPATTERN ^ifstat.(.+).rrd
> TITLE Network Traffic
> YAXIS Bits/second
> DEF:inbytes at RRDIDX@=@RRDFN@:bytesReceived:AVERAGE
> CDEF:in at RRDIDX@=inbytes at RRDIDX@,8,*
> DEF:outbytes at RRDIDX@=@RRDFN@:bytesSent:AVERAGE
> CDEF:out at RRDIDX@=outbytes at RRDIDX@,8,*
> CDEF:tot at RRDIDX@=in at RRDIDX@,out at RRDIDX@,+
> LINE2:in at RRDIDX@#@COLOR@:@RRDPARAM@ inbound
> GPRINT:in at RRDIDX@:LAST: \: %10.1lf (cur)
> GPRINT:in at RRDIDX@:MAX: \: %10.1lf (max)
> GPRINT:in at RRDIDX@:MIN: \: %10.1lf (min)
> GPRINT:in at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n
> LINE2:out at RRDIDX@#@COLOR@:@RRDPARAM@ outbound
> GPRINT:out at RRDIDX@:LAST: \: %10.1lf (cur)
> GPRINT:out at RRDIDX@:MAX: \: %10.1lf (max)
> GPRINT:out at RRDIDX@:MIN: \: %10.1lf (min)
> GPRINT:out at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n
> LINE2:tot at RRDIDX@#@COLOR@:@RRDPARAM@ I/O total
> GPRINT:tot at RRDIDX@:LAST: \: %5.1lf%s (cur)
> GPRINT:tot at RRDIDX@:MAX: \: %5.1lf%s (max)
> GPRINT:tot at RRDIDX@:MIN: \: %5.1lf%s (min)
> GPRINT:tot at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
>
> How can I have the In/Out readings also show in Mbps?
>
I think change the GPRINT strings to/from "%5.1lf%s". The format is defined
by the RRD tool. See man rrdgraph for more.
J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160715/441b7d8a/attachment.html>
More information about the Xymon
mailing list