Nagios bandwidth monitors don't appear to be collecting data
Posted: Tue Dec 11, 2018 12:38 pm
Linux Distribution and version?
CentOS Linux release 7.5.1804 (Core)
32 or 64bit?
64bit
VMware Image or Manual Install of XI?
Manual installation
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
SSL
A report from my EU is that:
Some new Nagios bandwidth monitors I've created over the past few weeks don't
appear to be collecting data. I tried creating some new ones just this
morning, but they are just constants 0s. (.e.g. ALDL-LAB-903
[1]GigabitEthernet0/1/0 Gi0/1/0- gt ZLND-903 Gi0/5/6 Bandwidth)
This appears to be different than the issue we were having before. Now it's
like the poll process just isn't occurring. It seems to only affect new
graphs, not old ones.
What i've found:
Looking at the bandwidth check i see that nagios is pulling the device mrtg but returning 0Mbps/0Mbps
[[email protected] ~]$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.10.10.235_19.rrd -w 500.0,500.0 -c 800.0,800.0 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0
I can see the RRD graph ownership is correctly owned by apache:apache
# ll 10.10.10.235_*
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_19.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_1.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_20.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_21.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_22.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_26.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_2.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_9.rrd
Using what i learned with my last ticket is i can work with mrtg
I created a one off of mrtg.cfg to match me only wanting to pull 10.10.10.235
# cat mrtgOneTime.cfg
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# 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: 12
EnableSnmpV3: yes
Include: conf.d/10.10.10.235.cfg
EnableSNMPv3: yes
You can see i modified the include to be specific to 10.10.10.235.cfg instead of *.cfg
Now if i run mrtg on my mrtgOneTime.cfg
# time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtgOneTime.cfg
real 0m0.200s
user 0m0.140s
sys 0m0.053s
It pulls that device quickly.
# ll 10.10.10.235*
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_19.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_1.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_20.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_21.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_22.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_26.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_2.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_9.rrd
And i run the nagios check again.
$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.10.10.235_19.rrd -w 500.0,500.0 -c 800.0,800.0 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0
So why is that pulling data as 0Mbps?
Is there somewhere i can look for better logging of mrtg checks?
CentOS Linux release 7.5.1804 (Core)
32 or 64bit?
64bit
VMware Image or Manual Install of XI?
Manual installation
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
SSL
A report from my EU is that:
Some new Nagios bandwidth monitors I've created over the past few weeks don't
appear to be collecting data. I tried creating some new ones just this
morning, but they are just constants 0s. (.e.g. ALDL-LAB-903
[1]GigabitEthernet0/1/0 Gi0/1/0- gt ZLND-903 Gi0/5/6 Bandwidth)
This appears to be different than the issue we were having before. Now it's
like the poll process just isn't occurring. It seems to only affect new
graphs, not old ones.
What i've found:
Looking at the bandwidth check i see that nagios is pulling the device mrtg but returning 0Mbps/0Mbps
[[email protected] ~]$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.10.10.235_19.rrd -w 500.0,500.0 -c 800.0,800.0 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0
I can see the RRD graph ownership is correctly owned by apache:apache
# ll 10.10.10.235_*
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_19.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_1.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_20.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_21.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_22.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_26.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_2.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 10:44 10.10.10.235_9.rrd
Using what i learned with my last ticket is i can work with mrtg
I created a one off of mrtg.cfg to match me only wanting to pull 10.10.10.235
# cat mrtgOneTime.cfg
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# 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: 12
EnableSnmpV3: yes
Include: conf.d/10.10.10.235.cfg
EnableSNMPv3: yes
You can see i modified the include to be specific to 10.10.10.235.cfg instead of *.cfg
Now if i run mrtg on my mrtgOneTime.cfg
# time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtgOneTime.cfg
real 0m0.200s
user 0m0.140s
sys 0m0.053s
It pulls that device quickly.
# ll 10.10.10.235*
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_19.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_1.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_20.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_21.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_22.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_26.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_2.rrd
-rwxrwxr-- 1 apache apache 105312 Dec 11 11:35 10.10.10.235_9.rrd
And i run the nagios check again.
$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.10.10.235_19.rrd -w 500.0,500.0 -c 800.0,800.0 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0
So why is that pulling data as 0Mbps?
Is there somewhere i can look for better logging of mrtg checks?