Page 1 of 2

Bandwidth Not Calculating and not showing Perfdata

Posted: Thu Feb 07, 2019 9:47 am
by rpatricio
Hi All,

My Nagios was not calculating bandwidth and after following de debug on Nagios Support website (https://support.nagios.com/kb/article.php?id=10) , had stopped to generate data. Can anyone help me to find out why is not displaying data and was not calculating before?

I am adding switchports on Nagios Switch Wizard.

Follow attached some pictures of the issue.

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Thu Feb 07, 2019 3:15 pm
by scottwilkerson
What version of XI are you running?

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Thu Feb 07, 2019 4:13 pm
by rpatricio
Nagios XI Version : 5.4.12

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Fri Feb 08, 2019 8:04 am
by scottwilkerson
Can you run the following and show any errors?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Mon Feb 11, 2019 8:49 am
by rpatricio
Follow attached. I couldn“t get all the errors. But it was a lot. I believe like 90% because on 10% of the interfaces I am using the iftraffic64 plugin. But as I have more then 6.000 interfaces, it will be hard to change in all of them, thats why I want to solve this issue.

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Mon Feb 11, 2019 4:59 pm
by scottwilkerson
When you look at the errors in the log above are some of the IP addresses seen in the Target no longer is service?
e.g. 10.112.112.12 from the below line

Code: Select all

Target[10.112.112.12_96]
It would be VERY beneficial to remove the configs for any of these that are no longer in service from /etc/mrtg/conf.d as this will drastically slow down MRTG and if you are trying to process 6000 interfaces you do not want MRTG being slowed down from servers that don't exist any longer.

Additionally, can you show your mrgt.cfg

Code: Select all

cat /etc/mrtg/mrtg.cfg

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Tue Feb 12, 2019 10:50 am
by rpatricio
Ok. I will do this. I will remove

Follow MRTG config

# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.

# Where should the logfiles, and webpages be created?

# Minimal mrtg.cfg
#--------------------

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
Forks: 4
EnableSnmpV3: yes

Include: conf.d/*.cfg

EnableSNMPv3: yes

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Tue Feb 12, 2019 11:12 am
by scottwilkerson
/etc/mrtg/mrtg.cfg looks normal, let us know if you continue to have the issue after cleaning up old configurations.

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Thu Feb 14, 2019 9:06 am
by rpatricio
Hi Scott,

yes, we continue to have issue. I clean up, and saw that even on the error list that I attached on last post, he is giving error for existing cfg. Some of them does not exist and I removed, but still giving error for the ones that exist.

Do you think is something related to the rrdtool?

This is the check that xi create for the bandwidth

check_xi_service_mrtgtraf!10.168.22.119_116.rrd!70.00,70.00!80.00,80.00!M

and on service tab

$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$

Re: Bandwidth Not Calculating and not showing Perfdata

Posted: Thu Feb 14, 2019 4:07 pm
by scottwilkerson
In this example can you look at the following file to see if it is updating?

Code: Select all

ls -al /var/lib/mrtg/10.168.22.119_116.rrd