Nagios XI - Bandwidth Graphs Showing 0Mb/s in Non-English Systems
When running Nagios XI on a system which uses certain non-English languages, bandwidth services (amongst others) and their associated graphs may incorrectly report 0 Mb/s even though there is traffic actively flowing through the given port.
In many steps of this article you will be required to edit files. This documentation will use the vi text editor. When using the vi
Resolving The Problem
The easiest way to fix this is to edit the resource.cfg file and add LC_ALL=C before the $USER1$ macro as a prefix to be run before all commands Nagios runs.
Setting LC_ALL=C before all Nagios commands will force the system language to whatever language the strings in the plugin/binary/application are written in, only for the duration of that command. This will not have an effect on the configured system language itself, and will only take effect when Nagios is running the command. In the case of Nagios XI installations, the plugins included by default are written in English and use the "1,000.00" number format, which is properly interpreted by check_rrdtraf and other plugins.
In systems using certain non-English languages (Spanish, French, and Russian, for example) numbers are represented differently. Whereas in English the comma (,) is used as the thousands separator and the period (.) is used as a decimal separator, most other languages will reverse the two, so that "one-thousand" would be written as "1.000,00" instead of "1,000.00". This causes the graphing to interpret the data incorrectly. Instead of seeing, for example, "1,270 MB/s" the system would see "1.270 MB/s" which is of course orders of magnitude smaller.
For any support related questions please visit the Nagios Support Forums at:
|Posted by: tmcdonald - Fri, Dec 19, 2014 at 4:59 PM. This article has been viewed 3724 times.|
|Online URL: https://support.nagios.com/kb/article/nagios-xi-bandwidth-graphs-showing-0mb-s-in-non-english-systems-10.html|
Powered by PHPKB (Knowledge Base Software)