[Orca-dev] procallator problem

Kai Siering wusel+yahoo at uu.org
Wed Nov 23 13:40:02 PST 2005


Guilherme Chehab wrote:

> That happens because by default the df command splits the result in two lines
> when there are large device names -- wich are somewhat unusual in Linux.

Not really, at least not if you're looking at NFS as well (which
I need to to monitor trends); I changed it locally back in 2003:

*** 246,252 ****
   # wusel, 20030701: "-kl" shows only local mount, "-k" all
   #
   #   @df=`/bin/df -kl`;
!    @df=`/bin/df -k`;
      for ($i=1,$j=0;$df[$i];$i++)  {
         if (!(($df[$i]=~/cdrom/)||($df[$i]=~/cdrom/))) {
          chomp $df[$i];
--- 274,280 ----
   # wusel, 20030701: "-kl" shows only local mount, "-k" all
   #
   #   @df=`/bin/df -kl`;
!    @df=`/bin/df -k --portability`;
      for ($i=1,$j=0;$df[$i];$i++)  {
         if (!(($df[$i]=~/cdrom/)||($df[$i]=~/cdrom/))) {
          chomp $df[$i];

> Anyway, I believe that a quick fix would be use the command:
> "df -lkP" instead of "df -lk". 

Does the trick as well:

wusel at death.uu.org:/x/home/wusel $ df -lk
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             37302060  31627776   5295312  86% /
[...]
/root/ramdisk            24540      5075     19465  21% /tmp/ASP
/dev/sda6                29284     29284         0 100% /tmp/ASP/usr
/dev/sda7                  954        27       927   3% /tmp/ASP/wfs
/dev/sda1                  182       106        76  59% /mnt2
/x/home/wusel/down/2200CBIOS.IMG
                           1424       631       793  45% /tmp/1
wusel at death.uu.org:/x/home/wusel $ df -lkP
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/hda3             37302060  31627776   5295312      86% /
[...]
/root/ramdisk            24540      5075     19465      21% /tmp/ASP
/dev/sda6                29284     29284         0     100% /tmp/ASP/usr
/dev/sda7                  954        27       927       3% /tmp/ASP/wfs
/dev/sda1                  182       106        76      59% /mnt2
/x/home/wusel/down/2200CBIOS.IMG      1424       631       793      45% /tmp/1

I'd suggest to maybe limit the output, though. Not sure, but I think
to remember to have hacked in the Orca sources back in 2003 to limit
the output at least in the summary table below the graphs. Not sure
if it works with current Orca out of the box.

HTH,
			kai

-- 
Kai 'wusel' Siering                       eMail @ home: wusel at uu.org
Traveller on the Information Highway doing full-time administration.



More information about the Orca-dev mailing list