Xymon Mailing List Archive search

Language conflict in fstab

4 messages in this thread

list Christian Schlüter · Mon, 12 Sep 2005 11:30:19 +0200 ·
Hello Henrik!

Hobbit reports the following error message:

Expected string (Capacity and Mounted) not found in df output header

Dateisystem            kByte  belegt verfügbar Kapazität Eingehängt auf

The Hobbit monitor doesn't unterstand the german output of the fstab. I think this problem will also appear on other located versions. Is there any possibility to avoid this problem or have I to wait for a future release fixing that bug?!

Thanks in advance and best regards
Christian
list Henrik Størner · Mon, 12 Sep 2005 12:25:56 +0200 ·
Hi Christian,
quoted from Christian Schlüter

On Mon, Sep 12, 2005 at 11:30:19AM +0200, Christian Schlüter wrote:
Hobbit reports the following error message:

Expected string (Capacity and Mounted) not found in df output header

Dateisystem            kByte  belegt verfügbar Kapazität Eingehängt auf
Add this at the top of the client/hobbitclient.sh script:

   # Must make sure the commands return standard (english) texts.
   LANG=C
   export LANG

The next release has this already.


Regards,
Henrik
list Christian Schlüter · Mon, 12 Sep 2005 14:25:01 +0200 ·
quoted from Henrik Størner
Hi Christian,

On Mon, Sep 12, 2005 at 11:30:19AM +0200, Christian Schlüter wrote:
Hobbit reports the following error message:

Expected string (Capacity and Mounted) not found in df output header

Dateisystem            kByte  belegt verfügbar Kapazität Eingehängt auf
Add this at the top of the client/hobbitclient.sh script:

   # Must make sure the commands return standard (english) texts.
   LANG=C
   export LANG

The next release has this already.


Regards,
Henrik

---

My Snapshot-version (dated on 9.9.) already has this entry but it 
doesn't work. I tried manually to set LANG=C and run df -k but the 
header was still in german....

regards
Christian
list Frédéric Mangeant · Mon, 12 Sep 2005 16:27:36 +0200 ·
quoted from Christian Schlüter
Christian Schlüter a écrit :
My Snapshot-version (dated on 9.9.) already has this entry but it 
doesn't work. I tried manually to set LANG=C and run df -k but the 
header was still in german....

Hi Christian

try with LC_ALL instead of LANG :

$ df /
Sys. de fich.        1K-blocs       Occupé Disponible Capacité Monté sur
/dev/sda3              5771500   4282216   1196100  79% /

french output, and

$ LC_ALL=C df /
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3              5771500   4282456   1195860  79% /

english output.

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis