On Tue, May 18, 2010 at 9:06 PM, Ton Voon <[email protected]> wrote:
>
> On 18 May 2010, at 16:41, japi wrote:
>
> Similar problem here. Evaluating opsview, after we updated to 3.7.0 and
>> Ubuntu 10.04 we lost our graphs for the check_http service check.
>>
>
> Tis is a different problem. Philip's seems to be all graphing but yours is
> just a single plugin.
>
>
>
>> In our case it’s turns out to be a problem with the spanish translation of
>> the nagios-plugin package in ubuntu. I’ve changed my locale to en_US and
>> it’s has started working again.
>>
>> The string was:
>>
>> “%s - %d bytes in %.3f second response time %s|%s %s”
>>
>> which was translated as:
>>
>> “%s - %d bytes en %.3f segundo tiempo de respuesta %s%s%s”, without the |
>> character.
>>
>> I’ve suggested a correction in launchpad and it has already been reviewed.
>> I hope that it will soon be fixed in the next version of the
>> language-pack-es-base package.
>>
>
> I've just checked our version of the nagios-plugins (1.4.14), but it looks
> like the code always adds a | symbol for the response time. What version of
> the plugins is being used here?
>
Same here:
r...@opsview:~# /usr/local/nagios/libexec/check_http -h
check_http v1.4.14 (nagios-plugins 1.4.14)
....
But :
r...@opsview:~# LANG=es_ES.UTF-8 strace /usr/local/nagios/libexec/check_http
-H 192.168.218.1 2>&1|grep open|grep -v ENOENT
...
open("/usr/share/locale-langpack/es/LC_MESSAGES/nagios-plugins.mo",
O_RDONLY) = 3
r...@opsview:~# dpkg -S
/usr/share/locale-langpack/es/LC_MESSAGES/nagios-plugins.mo
language-pack-es-base:
/usr/share/locale-langpack/es/LC_MESSAGES/nagios-plugins.mo
Seems as, for the es_ES.UTF-8 locale, it reads the strings from the
file /usr/share/locale-langpack/es/LC_MESSAGES/nagios-plugins.mo which
belongs to the package language-pack-es-base. This is the result:
r...@opsview:~# LANG=es_ES.UTF-8 /usr/local/nagios/libexec/check_http -H
192.168.218.1 2>&1
HTTP OK: HTTP/1.1 200 OK - 606 bytes en 0,002 segundo tiempo de respuesta
time=0,002110s;;;0,000000size=606B;;;0
In the Ubuntu 10.04 version they changed the translation to a string without
the | symbol. Now it's corrected:
https://translations.launchpad.net/ubuntu/lucid/+source/nagios-plugins/+pots/nagios-plugins/es/247/+translate
> Ton
>
>
> _______________________________________________
> Opsview-users mailing list
> [email protected]
> http://lists.opsview.org/lists/listinfo/opsview-users
>
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users