Page 1 of 1

Bandwidth not reporting since drives filled up

Posted: Tue Jan 10, 2017 6:41 pm
by tcanthonyii
12/27/2016 our disk space on the XI server filled up. We called in with support to get it up and running quickly. However we noticed today that since that morning we get no bandwidth reporting on switch ports since that day. What do we need to do to get this working again? We are running 5.2.7

Thanks

T.C.

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 9:51 am
by tgriep
First thing to try is to restart the crond daemon which runs the bandwidth gathering application.
Login as root, run the following to do that.

Code: Select all

service crond restart
Wait for 15 minutes to see if they start to populate, if not can you run the following command as root and post the /tmp/mrtg.txt file?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 10:58 am
by tcanthonyii
Here you go! Still not working.

Code: Select all

[root@NagiosXIMon ~]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
You have new mail in /var/spool/mail/root
[root@NagiosXIMon ~]# more /tmp/mrtg.txt
--base: Creating Lockfiles /etc/mrtg/mrtg.cfg_l,/etc/mrtg/mrtg.cfg_l_37663
--base: Reading Config File: /etc/mrtg/mrtg.cfg
--cfg: /etc/mrtg/mrtg.cfg[1]: ##################################################
####################
--cfg: /etc/mrtg/mrtg.cfg[2]: # Multi Router Traffic Grapher -- Example Configur
ation File
--cfg: /etc/mrtg/mrtg.cfg[3]: ##################################################
####################
--cfg: /etc/mrtg/mrtg.cfg[4]: # This file is for use with mrtg-2.0
--cfg: /etc/mrtg/mrtg.cfg[5]: #
--cfg: /etc/mrtg/mrtg.cfg[6]: # Note:
--cfg: /etc/mrtg/mrtg.cfg[7]: #
--cfg: /etc/mrtg/mrtg.cfg[8]: # * Keywords must start at the begin of a line.
--cfg: /etc/mrtg/mrtg.cfg[9]: #
--cfg: /etc/mrtg/mrtg.cfg[10]: # * Lines which follow a keyword line which do st
art
--cfg: /etc/mrtg/mrtg.cfg[11]: #   with a blank are appended to the keyword line
--cfg: /etc/mrtg/mrtg.cfg[12]: #
--cfg: /etc/mrtg/mrtg.cfg[13]: # * Empty Lines are ignored
--cfg: /etc/mrtg/mrtg.cfg[14]: #
--cfg: /etc/mrtg/mrtg.cfg[15]: # * Lines starting with a # sign are comments.
--cfg: /etc/mrtg/mrtg.cfg[16]:
--cfg: /etc/mrtg/mrtg.cfg[17]: # Where should the logfiles, and webpages be crea
ted?
--cfg: /etc/mrtg/mrtg.cfg[18]:
--cfg: /etc/mrtg/mrtg.cfg[19]: # Minimal mrtg.cfg
--cfg: /etc/mrtg/mrtg.cfg[20]: #--------------------
--cfg: /etc/mrtg/mrtg.cfg[21]:
--cfg: /etc/mrtg/mrtg.cfg[22]: HtmlDir: /var/www/mrtg
--cfg: /etc/mrtg/mrtg.cfg[23]: ImageDir: /var/www/mrtg
--cfg: /etc/mrtg/mrtg.cfg[24]: LogFormat: rrdtool
--cfg: /etc/mrtg/mrtg.cfg[25]: LogDir: /var/lib/mrtg
--cfg: /etc/mrtg/mrtg.cfg[26]: ThreshDir: /var/lib/mrtg
--cfg: /etc/mrtg/mrtg.cfg[27]: WorkDir: /var/lib/mrtg
--cfg: /etc/mrtg/mrtg.cfg[28]: Forks: 4
--cfg: /etc/mrtg/mrtg.cfg[29]:
ERROR: unable to open include file: conf.d/*.cfg

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 11:47 am
by tcanthonyii
OK so based on the error I saw in the command you had me run I found this article

https://support.nagios.com/kb/article.php?id=511


I ran through the steps and it appears as though I'm now getting bandwidth. I'm going to monitor today to make sure all of them are working but I think they are.

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 1:10 pm
by mcapra
Awesome! Let us know if you need additional assistance with this.

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 1:23 pm
by tcanthonyii
Everything is now reporting correctly.

Thanks for the help! Wouldn't have gotten it fixed without you.

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 1:43 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Bandwidth not reporting since drives filled up

Posted: Wed Jan 11, 2017 1:46 pm
by tcanthonyii
yes please.