Bandwidth not reporting since drives filled up

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tcanthonyii
Posts: 88
Joined: Thu Jan 21, 2016 10:45 am

Bandwidth not reporting since drives filled up

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth not reporting since drives filled up

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
tcanthonyii
Posts: 88
Joined: Thu Jan 21, 2016 10:45 am

Re: Bandwidth not reporting since drives filled up

Post 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
tcanthonyii
Posts: 88
Joined: Thu Jan 21, 2016 10:45 am

Re: Bandwidth not reporting since drives filled up

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Bandwidth not reporting since drives filled up

Post by mcapra »

Awesome! Let us know if you need additional assistance with this.
Former Nagios employee
https://www.mcapra.com/
tcanthonyii
Posts: 88
Joined: Thu Jan 21, 2016 10:45 am

Re: Bandwidth not reporting since drives filled up

Post by tcanthonyii »

Everything is now reporting correctly.

Thanks for the help! Wouldn't have gotten it fixed without you.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Bandwidth not reporting since drives filled up

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
tcanthonyii
Posts: 88
Joined: Thu Jan 21, 2016 10:45 am

Re: Bandwidth not reporting since drives filled up

Post by tcanthonyii »

yes please.
Locked