Monitoring Network Bandwidth

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring Network Bandwidth

Post by tgriep »

I did a dump of the rrd file and it looks like there is valid data so can you run the following commands and post the output here?

Code: Select all

/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.2.240_6.rrd -w 500.0,500.0 -c 800.0,800 -l M -vv
rrdtool fetch /var/lib/mrtg/192.168.2.240_6.rrd AVERAGE -s-200minutes
rrdtool -v
/usr/local/nagios/libexec/check_rrdtraf -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
rhonorio
Posts: 56
Joined: Thu Feb 23, 2017 12:38 pm

Re: Monitoring Network Bandwidth

Post by rhonorio »

Here are the outputs:

[root@localhost ~]# /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192 .168.2.240_6.rrd -w 500.0,500.0 -c 800.0,800 -l M -vv
Using RRD file: /var/lib/mrtg/192.168.2.240_6.rrd
Input warning level(Mb/s): 500.0
Output warning level(Mb/s): 500.0
Input critical level (Mb/s): 800.0
Output critical level (Mb/s): 800
Fetching data with command: rrdtool fetch /var/lib/mrtg/192.168.2.240_6.rrd AVER AGE -s-10minutes | grep -vi "nan"
RRD File Data:
ds0 ds1
Raw Input Traffic Value (b/s): 0.000000
Raw Output Traffic Value (b/s): 0.000000
Decimal Input Traffic Value (b/s): 0
Decimal Output Traffic Value (b/s): 0
Traffic IN scalar: 1000000
Traffic OUT scalar: 1000000
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800
*******************************************************************************************************************************
[root@localhost ~]# rrdtool fetch /var/lib/mrtg/192.168.2.240_6.rrd AVERAGE -s-200minutes
ds0 ds1

1493029200: -nan -nan
1493029500: -nan -nan
1493029800: -nan -nan
1493030100: -nan -nan
1493030400: -nan -nan
1493030700: -nan -nan
1493031000: -nan -nan
1493031300: -nan -nan
1493031600: -nan -nan
1493031900: -nan -nan
1493032200: -nan -nan
1493032500: -nan -nan
1493032800: -nan -nan
1493033100: -nan -nan
1493033400: -nan -nan
1493033700: -nan -nan
1493034000: -nan -nan
1493034300: -nan -nan
1493034600: -nan -nan
1493034900: -nan -nan
1493035200: -nan -nan
1493035500: -nan -nan
1493035800: -nan -nan
1493036100: -nan -nan
1493036400: -nan -nan
1493036700: -nan -nan
1493037000: -nan -nan
1493037300: -nan -nan
1493037600: -nan -nan
1493037900: -nan -nan
1493038200: -nan -nan
1493038500: -nan -nan
1493038800: -nan -nan
1493039100: -nan -nan
1493039400: -nan -nan
1493039700: -nan -nan
1493040000: -nan -nan
1493040300: -nan -nan
1493040600: -nan -nan
1493040900: -nan -nan
1493041200: -nan -nan
*******************************************************************************************************************************
[root@localhost ~]# rrdtool -v
RRDtool 1.4.9 Copyright 1997-2013 by Tobias Oetiker <[email protected]>
Compiled Feb 16 2015 13:44:33

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages
*******************************************************************************************************************************
[root@localhost ~]# /usr/local/nagios/libexec/check_rrdtraf -V
check_rrdtraf v0.5

Thanks !!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring Network Bandwidth

Post by tgriep »

Try following this KB article and see if this fixes the issue.
https://support.nagios.com/kb/article.php?id=10
If not, can you post or PM me your System Profile?
To get your system profile. login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and either post it or PM it to me.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rhonorio
Posts: 56
Joined: Thu Feb 23, 2017 12:38 pm

Re: Monitoring Network Bandwidth

Post by rhonorio »

Hi, it kind of solved the problem...I'm saying this because if I go to the service details and select "Performance Graphs", I see traffic (Attachment: "nagios_int8.jpg"). But if I see the list of all the interfaces, they all show "0Mbps" (Attachment: "nagios_int82.jpg").
I also attached the profile.


I'd like to add something I just saw. The "Database backend" show an error message stating "ndo2db is not running". Right next to the error there's an option to start it, I did it, bur nothing hapenned.
Thanks !
You do not have the required permissions to view the files attached to this post.
Last edited by tgriep on Mon Apr 24, 2017 2:02 pm, edited 1 time in total.
Reason: Removed Profile for security reasons and stored it in the Forum Files folder.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring Network Bandwidth

Post by tgriep »

I am seeing some crashed MYSQL tables that should be fixed, login to the server as root, run the following to repair them.

Code: Select all

rm /usr/local/nagios/var/ndo.sock
rm /usr/local/nagios/var/ndo2db.lock
cd /usr/local/nagiosxi/scripts
./repair_databases.sh
After that, wait a few minutes and check to see if the Database Backend is running by running the following.

Code: Select all

service ndo2db status
If it says that it is running, wait 15 minutes and see if the bandwidth information is showing on the details screen and also the graphs.
If it is not running, post the error here.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rhonorio
Posts: 56
Joined: Thu Feb 23, 2017 12:38 pm

Re: Monitoring Network Bandwidth

Post by rhonorio »

It's working !!!

Thanks a lot fo your help !!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring Network Bandwidth

Post by tgriep »

That is good to hear. Is it alright to close and lock the post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rhonorio
Posts: 56
Joined: Thu Feb 23, 2017 12:38 pm

Re: Monitoring Network Bandwidth

Post by rhonorio »

Yeah, sure.
Locked