nagiosxi_report_bandwidthusage how it does calculation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

nagiosxi_report_bandwidthusage how it does calculation

Post by zaji_nms »

dear expert,

would you please explain us how nagiosxi---> report ---> bandwidth usage report data usage calculated ??? we mean to say total usage in GB as shown in an atttached snap ???

your prompt reply will be highly appreciated

Regards
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by ssax »

The XI graphs are showing an average of bandwidth per second, your data at the top is showing total for the day, right?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by bwallace »

The corresponding plugin is coded so the UI displays megabytes (MB) per second even though the label says megabits (Mb), we've already submitted a bug report for this so the developers can fix it.

In the meantime, if you prefer to see anything other the MB, then you can replace your current plugin with one of the plugins below to suit your preference.

Bits - b, Kb, Mb, Gb
check_rrdtraf_bits.zip
Bytes - B, KB, MB, GB
check_rrdtraf_bytes.zip
**Keep in mind that any one of the new plugins above may be overwritten upon upgrading, at which point they would need to be re-installed.
You do not have the required permissions to view the files attached to this post.
Be sure to check out the Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by zaji_nms »

ssax wrote:The XI graphs are showing an average of bandwidth per second, your data at the top is showing total for the day, right?
yes bandwidth reports is ok Mbps our concern is corresponding usage which shown JAN ( monthly usage comes in GB how its calculated ? corresponding values of monthly bandwidth utilization Mbps report data match with total Bandwidth usage GB ? )
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by zaji_nms »

bwallace wrote:The corresponding plugin is coded so the UI displays megabytes (MB) per second even though the label says megabits (Mb), we've already submitted a bug report for this so the developers can fix it.

In the meantime, if you prefer to see anything other the MB, then you can replace your current plugin with one of the plugins below to suit your preference.

Bits - b, Kb, Mb, Gb
check_rrdtraf_bits.zip
Bytes - B, KB, MB, GB
check_rrdtraf_bytes.zip
tried ur script no diff
[root@ libexec]# ./check_rrdtraf_bytes -f /var/lib/mrtg/172.16.40.245_10102.rrd -w 50,50 -c 60,60 -l M
OK - Current BW in: .17MBps Out: .09MBps|in=.177079MB/s;50;60 out=.098480MB/s;50;60
[root@ libexec]# ./check_rrdtraf -f /var/lib/mrtg/172.16.40.245_10102.rrd -w 50,50 -c 60,60 -l M
OK - Current BW in: .17Mbps Out: .09Mbps|in=.177079Mb/s;50;60 out=.098480Mb/s;50;60
**Keep in mind that any one of the new plugins above may be overwritten upon upgrading, at which point they would need to be re-installed.
kindly check an attached snap we are talking about how usage values comes ???
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by tmcdonald »

I spoke to the devs and it appears the totals are pulled from the RRD files, which are where the performance data is stored. Those files average out values over time, so there will be some loss of accuracy the further back it goes, but generally-speaking they should still be very close to reality for a given time frame.
Former Nagios employee
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by zaji_nms »

can u please explain us how values are coming from RRD ( what calculation happening in background to represent Monthly / Quaterly seen in Bandwidth Usage Report ? if we want to take this usage as a weekly / daily ( custom ) is there any way plz explain ? as we would like to make sure this report before submit to any customer so need your prompt reply.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by zaji_nms »

also it would be nice if you give host and services filter in Bandwidth Usage Report . at present all services comes in single dropdown and very diffcult to search no search option also available there
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by tmcdonald »

You're welcome to look into the code directly if you need exact calculations:

/usr/local/nagiosxi/html/includes/components/bandwidthreport/

You might particularly be interested in the fetch_rrd.php and index.php files.

As for a feature request, I will make sure that gets filed and the thread updated when it does.

Just spoke with the devs, and apparently you can click in the dropdown and start typing, and it will filter based on that. Give it a shot and let me know how that works for you.
Former Nagios employee
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: nagiosxi_report_bandwidthusage how it does calculation

Post by zaji_nms »

thanks for your feedback, we would like to add MAX Bit/s instead of Bytes/s and AVG. what do we need to change ?
exp : last month max bandwidth utilization ( In 10Mbps Out 15Mbps ) and current ( In 5Mbps ; Out 9 Mbps ) so when we fetch report it should give MAX value of last month not total IN / total OUT same way Quater 1 ( MAX value of jan / feb / march ) also what changes required to select RRD from /usr/local/nagios/share/perfdata instead of /var/lib/mrtg ???
Locked