Bandwidth calculation in nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lizhi1989
Posts: 9
Joined: Mon Aug 14, 2017 3:18 am

Bandwidth calculation in nagiosxi

Post by lizhi1989 »

Code: Select all

Using RRD file: /var/lib/mrtg/192.168.5.42_1.rrd
Input warning level(Mb/s): 50.00
Output warning level(Mb/s): 50.00
Input critical level (Mb/s): 80.00
Output critical level (Mb/s): 80.00
Fetching data with command: rrdtool fetch /var/lib/mrtg/192.168.5.42_1.rrd AVERAGE -s-10minutes | grep -vi "nan"
RRD File Data:
                            ds0                 ds1

1490043900: 1.7957144235e+06 1.1482139460e+05
1490044200: 2.3002856646e+06 1.3019000204e+05
Raw Input Traffic Value (b/s): 18402285.316800
Raw Output Traffic Value (b/s): 1041520.016320
Decimal Input Traffic Value (b/s): 18402285
Decimal Output Traffic Value (b/s): 1041520
Traffic IN scalar: 1000000
Traffic OUT scalar: 1000000
OK - Current BW in: 18.40Mbps Out: 1.04Mbps|in=18.402285Mb/s;50.00;80.00 out=1.041520Mb/s;50.00;80.00
Came across one of the post regarding bandwidth calculation, after going through the post and calculation very carefully, i still doesn't seems to understand how the value is convert from:

1490043900: 1.7957144235e+06 1.1482139460e+05
1490044200: 2.3002856646e+06 1.3019000204e+05

to

Raw Input Traffic Value (b/s): 18402285.316800
Raw Output Traffic Value (b/s): 1041520.016320

Anyone can help to explain this to me?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Bandwidth calculation in nagiosxi

Post by cdienger »

1490044200: 2.3002856646e+06 1.3019000204e+05 for example:

2.3002856646e+06 * 8(8bits per byte) = 18402285.3168 = 18.4Mbps
1.3019000204e+05 * 8 = 1041520.01632 = 1.04Mbps

Hope this helps clarify things!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lizhi1989
Posts: 9
Joined: Mon Aug 14, 2017 3:18 am

Re: Bandwidth calculation in nagiosxi

Post by lizhi1989 »

Thank You!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Bandwidth calculation in nagiosxi

Post by tmcdonald »

Did you have additional related questions or are we alright to close this up?
Former Nagios employee
Locked