Page 4 of 5
Re: SNMP charts show MBytes not Mbits
Posted: Mon Apr 04, 2016 12:20 pm
by rbuckle
Ok so i think that it might be the plugin, everything seems to work correctly on my lower bandwidth connections, Could it be likely that this particular plugin just can't handle numbers over 200Mb?
Re: SNMP charts show MBytes not Mbits
Posted: Mon Apr 04, 2016 2:36 pm
by ssax
I haven't seen it be a problem, what is it showing?
Re: SNMP charts show MBytes not Mbits
Posted: Mon Apr 04, 2016 2:46 pm
by rbuckle
The graphs that i am posting are from 2 routers that are basically the same hardware, Mikrotik Routers

This device averages around 50-70Mb with spikes over a 100Mb so i can see how this chart works on a 5 minute average.

This device averages 500-700Mb but as you can see the chart is no where near that.
I am baffled
Re: SNMP charts show MBytes not Mbits
Posted: Mon Apr 04, 2016 3:23 pm
by ssax
Please run the command from the XI server's command line and add
-vv to it and post the output:
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.49.32_2.rrd -w 50.00,50.00 -c 80.00,80.00 -l M -vv
Re: SNMP charts show MBytes not Mbits
Posted: Mon Apr 04, 2016 3:30 pm
by rbuckle
Code: Select all
Using RRD file: /var/lib/mrtg/10.0.0.46_3.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/10.0.0.46_3.rrd AVERAGE -s-10minutes | grep -vi "nan"
RRD File Data:
ds0 ds1
1459801200: 4.6842445682e+04 4.5639995256e+05
1459801500: 5.9838215277e+04 4.8338604339e+05
Raw Input Traffic Value (b/s): 478705.722216
Raw Output Traffic Value (b/s): 3867088.347120
Decimal Input Traffic Value (b/s): 478705
Decimal Output Traffic Value (b/s): 3867088
Traffic IN scalar: 1000000
Traffic OUT scalar: 1000000
OK - Current BW in: .47Mbps Out: 3.86Mbps|in=.478705Mb/s;50.00;80.00 out=3.867088Mb/s;50.00;80.00
[root@NagiosXI ~]#
Re: SNMP charts show MBytes not Mbits
Posted: Mon Apr 04, 2016 5:07 pm
by ssax
Hmm, the data is showing properly (meaning the data it gets from the RRD file is calculated properly), please PM me your XML and RRD file so that I can do some research.
Re: SNMP charts show MBytes not Mbits
Posted: Thu Apr 14, 2016 10:48 am
by rbuckle
did you get the files?
Re: SNMP charts show MBytes not Mbits
Posted: Thu Apr 14, 2016 3:05 pm
by ssax
Yes, sorry, I thought I replied to your PM, they look fine, I wanted to look at your /var/lib/mrtg/ one as well.
Re: SNMP charts show MBytes not Mbits
Posted: Thu Apr 14, 2016 3:17 pm
by rbuckle
i don't have anything for that service/host in that directory
Re: SNMP charts show MBytes not Mbits
Posted: Thu Apr 14, 2016 4:44 pm
by ssax