[Nagiosplug-devel] Re: [Perfparse-users] zero values in database

Andreas Ericsson ae at op5.se
Tue Mar 1 00:49:02 CET 2005


Ben Clewett wrote:
> Jessica,
> 
> These are known bugs in the plugins which are causing lots of users 
> problems.
> 
> I can suggest two solutions.
> 
> 1.  Recompile the plugins using:
> 
> ./configure --disable-nls
> 
> I have not tested this, but I believe this should work.
> 

It won't. It won't reset the textdomain of the apps it's running, only 
disable international output capabilities of the plugin she's running.

> 2. After the 'textdomain' call at the start of the plugin source code, 
> add the line:
> 
> setlocale(LC_NUMERIC, "POSIX");
> 

This will work, or
LC_ALL=POSIX nagios nagios.cfg -d
when starting nagios (although that would defeat localisation of plugins).

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Devel mailing list