Bandwidth Not Calculating and not showing Perfdata
Bandwidth Not Calculating and not showing Perfdata
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.
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth Not Calculating and not showing Perfdata
What version of XI are you running?
Re: Bandwidth Not Calculating and not showing Perfdata
Nagios XI Version : 5.4.12
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth Not Calculating and not showing Perfdata
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.okRe: Bandwidth Not Calculating and not showing Perfdata
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth Not Calculating and not showing Perfdata
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
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
e.g. 10.112.112.12 from the below line
Code: Select all
Target[10.112.112.12_96]Additionally, can you show your mrgt.cfg
Code: Select all
cat /etc/mrtg/mrtg.cfgRe: Bandwidth Not Calculating and not showing Perfdata
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth Not Calculating and not showing Perfdata
/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
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$
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$
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bandwidth Not Calculating and not showing Perfdata
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