Page 1 of 1

NagiosXi not showing bandwidth data?

Posted: Tue Dec 25, 2018 3:02 am
by mjr2015
Image

recently installed nagios and discovered my edge router X. I get the bandwidth but not the total up / down bytes.

any ideas?

Re: NagiosXi not showing bandwidth data?

Posted: Wed Dec 26, 2018 11:57 am
by bolson
Hello mjr2015,

Which version of Nagios XI have you deployed. You'll find the version number in the lower left corner of the home screen. And are you saying that all of your bandwidth checks are returning 0 in and out on all of your ports? If so, and you're running version 5.5.7 or 5.5.8, it's most likely a permissions issue. Running the following commands from a console or terminal session on your Nagios XI server will resolve the issue:

Code: Select all

chown "apache:nagios" /etc/mrtg -R
chmod 775 /etc/mrtg -R
chown "apache:nagios" /var/lib/mrtg -R
chmod 775 /var/lib/mrtg -R


10 minutes after running these commands you should see bandwidth data. Let us know if this resolves your issue.

Thank you!

Re: NagiosXi not showing bandwidth data?

Posted: Wed Dec 26, 2018 12:02 pm
by lmiltchev
In addition to what @ bolson said - how did you create your check? Did you run our Network Switch / Router wizard? If you did, you should be able to see "in" and "out" Mb/s (last, avg, and max).

Example:
example01.PNG

Re: NagiosXi not showing bandwidth data?

Posted: Fri Jan 11, 2019 2:12 am
by mjr2015
I'm sorry I thought the forum would generate an email when responded to.. i guess not!

but I am running 5.5.8 and I ran the suggested above commands however those users don't exist on my machine

Code: Select all

root@nagios:~# ll /etc/mrtg
total 30
drwxrwxr-x   4 www-data nagios     6 Dec 24 12:41 ./
drwxr-xr-x 113 root     root     208 Jan  2 06:10 ../
drwxrwxr-x   2 www-data nagios     2 Dec 24 11:37 archive/
drwxrwxr-x   2 www-data nagios     3 Dec 24 12:41 conf.d/
-rwxrwxr-x   1 www-data nagios   788 Dec 24 11:37 mrtg.cfg*
-rwxrwxr-x   1 www-data www-data   0 Dec 24 12:41 mrtg.ok*

root@nagios:~# ll /var/lib/mrtg
total 1093
drwxrwxr-x  2 www-data nagios     13 Jan 11 07:10 ./
drwxr-xr-x 48 root     root       48 Dec 24 13:15 ../
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_10.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_11.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_2.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_3.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_4.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_5.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_6.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_7.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_8.rrd
-rw-rw-r--  1 www-data nagios 105312 Jan 11 07:10 10.1.20.1_9.rrd
-rw-r--r--  1 nagios   nagios      0 Jan 11 07:10 mrtg.ok

how did you create your check? Did you run our Network Switch / Router wizard? If you did, you should be able to see "in" and "out" Mb/s (last, avg, and max)
I ran the wizard. It still reports 0

Re: NagiosXi not showing bandwidth data?

Posted: Fri Jan 11, 2019 8:49 am
by scottwilkerson
When you say the following what exactly do you mean?
mjr2015 wrote: I get the bandwidth but not the total up / down bytes.
The Network Switch/Router wizard only produces the bandwidth, not total bytes across the interface.