[Xymon] Network Traffic (bps / Mbps)
oliver
ohemming at gmail.com
Sat Jul 16 02:02:32 CEST 2016
I just realised the other response I received came directly to me
which also had the correct answer. I basically appended %sb/s to my
GPRINT lines and they show as bps/Mbps/Gbps where appropriate now.
Thanks!
On Fri, Jul 15, 2016 at 7:19 PM, Jeremy Laidman
<jlaidman at rebel-it.com.au> wrote:
> 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
>
More information about the Xymon
mailing list