Are you experiencing Nagios bandwidth graph showing 0 MB? If so, this guide will help you tackle this issue.
Nagios is an open source monitoring system for computer systems.
Basically, Nagios XI uses certain non-English languages and bandwidth services. Sometimes, their associated graphs may incorrectly report 0 MB/s even though there is traffic actively flowing through the given port.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to solve Nagios related issues.
In this context, we shall look into how to tackle this Nagios error.
Steps to fix Nagios bandwidth graph showing 0 MB?
To fix this issue, start by modifying the "resource.cfg" file. In this file, add "LC_ALL=C" before the "$USER1$" macro as a prefix to be execute before all commands Nagios works with. This forces applications to use the default language for output. "LC_ALL" is the environment variable that overrides all the other localization settings.
Different aspects of localizations can be set using a few environment variables.
1. Start by opening the "/usr/local/nagios/etc/resource.cfg" file.
2. Next, modify the $USER1$ macro (typically the second line of the file) as follows:
3. Then save and close the file. Now, restart the Nagios service using one of the commands below depending on the OS:
For RHEL 6|CentOS 6|Oracle Linux 6|Ubuntu 14, execute;
service nagios restart
For RHEL 7|CentOS 7|Oracle Linux 7|Debian|Ubuntu 16/18, execute;
systemctl restart nagios.service
4. Finally, the graphs should start showing proper information. It may take up to 15 minutes for the changes to take effect, possibly longer for large environments.