This is a cache of https://support.nagios.com/kb/article/nagios-xi-error-unable-to-open-include-file-conf-d-*-cfg-511.html. It is a snapshot of the page at 2025-05-14T00:08:58.240+0000.
Nagios <strong>xi</strong> - ERROR: unable to open include file: conf.d/*.cfg
Home » Categories » Products » Nagios xi » Troubleshooting » Common Problems

Nagios xi - ERROR: unable to open include file: conf.d/*.cfg

Problem Description

Bandwidth graphs in Nagios xi are showing no bandwidth.

When manually executing MRTG you see the following output:

MRTG Manual Command:

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

This error is produced:

ERROR: unable to open include file: conf.d/*.cfg

 

Running this command will show the MRTG version:

LANG=C LC_ALL=C /usr/bin/mrtg

Output:

Usage: mrtg <config-file>

mrtg-2.16.2 - Multi Router Traffic Grapher

Copyright 1995-2006 by Tobias Oetiker
Licensed under the Gnu GPL.

If you want to know more about this tool, you might want
to read the docs. You can find everything on the
mrtg website:

http://oss.oetiker.ch/mrtg/

 

The source of the problem is that the MRTG version is too old and needs to be updated to fix this issue. This may have been downgraded inadvertently as part of a YUM update.

 

Resolution

These steps will install MRTG to the correct version.

Establish an SSH session to your Nagios xi server and execute the following commands:

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi/subcomponents/mrtg/
tar xzf mrtg*.tar.gz
cd mrtg*
./configure --prefix='/usr'
make all
make install

 

The correct version of MRTG should now be installed. This can be checked by running the following command:

LANG=C LC_ALL=C /usr/bin/mrtg

The version in the output should be 2.17.4 or greater.

 

Additionally, running MRTG manually should no longer produce the "ERROR: unable to open include file: conf.d/*.cfg" message:

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

 

It will take at least 15 minutes for the bandwidth graphs to start showing data.

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - Modifying The Contents Of /usr/local/nagios/etc
Viewed 7248 times since Tue, Jan 26, 2016
PHPMailer - Troubleshooting Using Debug Logging
Viewed 37173 times since Tue, Aug 14, 2018
Nagios Core - Nagios did not exit in a timely manner
Viewed 8809 times since Wed, Jan 27, 2016
Nagios xi - Debugging Bandwidth Performance Graphs
Viewed 15982 times since Tue, Jan 27, 2015
Nagios xi - Login Screen Keeps Redirecting To Itself
Viewed 7412 times since Wed, Jan 27, 2016
Nagios xi - How To Use CA Certificates With check_ldaps Plugin
Viewed 12609 times since Tue, Jul 26, 2016
Nagios xi - Apply Configuration Fails - Backend login to the Core Configuration failed
Viewed 25768 times since Tue, Aug 2, 2016
Nagios xi - Troubleshooting Reports
Viewed 7747 times since Wed, Dec 5, 2018
Nagios xi - MSSQL Wizards - Adaptive Server connection failed
Viewed 12004 times since Thu, Aug 3, 2017
Nagios xi - ICMP and Ping Checks Stopped Graphing
Viewed 13862 times since Mon, Jan 25, 2016