Bug#629680: dstat_squid looks for squidclient in the wrong directory

2014-02-16 Thread Andrew Pollock
On Wed, Jun 08, 2011 at 12:44:07PM -0700, Andrew Pollock wrote:
 Hi Dag,

Ping?
 
 I have a number of thoughts on how you could tackle this, and would be happy
 to provide a patch.
 
 1) Just try looking for squiclient in /usr/bin and /usr/sbin
 2) Use platform.dist() (or platform.linux_distribution()) to choose the
 appropriate location of squidclient. In this vein, how tied to a specific
 version of Python are you?
 
 regards
 
 Andrew
 
 On Wed, Jun 08, 2011 at 04:24:04PM +0200, Tomas ?gren wrote:
  Package: dstat
  Version: 0.7.2-1
  Severity: normal
  
  
  dstat_squid (as being used by 'dstat --squid') looks for squidclient in
  the wrong directory.
  
  twiggy:~# dstat --squid
  Module dstat_squid failed to load. (Needs squidclient binary)
  None of the stats you selected are available.
  twiggy:~# strace -f -e access dstat --squid
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/etc/terminfo/x/xterm, R_OK)   = -1 ENOENT (No such file or 
  directory)
  access(/lib/terminfo/x/xterm, R_OK)   = 0
  access(/usr/sbin/squidclient, X_OK)   = -1 ENOENT (No such file or 
  directory)
  Module dstat_squid failed to load. (Needs squidclient binary)
  None of the stats you selected are available.
  twiggy:~# ls -la /usr/sbin/squidclient /usr/bin/squidclient
  ls: cannot access /usr/sbin/squidclient: No such file or directory
  -rwxr-xr-x 1 root root 43976 Oct 30  2010 /usr/bin/squidclient*
  
  Changing the path in /usr/share/dstat/dstat_squid.py (and removing ipv6
  localhost) makes it start at least, but does not give any real data..
  hrm.
  
  -- System Information:
  Debian Release: 6.0.1
APT prefers stable
APT policy: (500, 'stable')
  Architecture: amd64 (x86_64)
  
  Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
  Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
  Shell: /bin/sh linked to /bin/bash
  
  Versions of packages dstat depends on:
  ii  python  2.6.6-3+squeeze6 interactive high-level 
  object-orie
  ii  python-central  0.6.16+nmu1  register and build utility for 
  Pyt
  
  dstat recommends no packages.
  
  dstat suggests no packages.
  
  -- no debconf information
  
  




signature.asc
Description: Digital signature


Bug#629680: dstat_squid looks for squidclient in the wrong directory

2011-06-08 Thread Tomas ?gren
Package: dstat
Version: 0.7.2-1
Severity: normal


dstat_squid (as being used by 'dstat --squid') looks for squidclient in
the wrong directory.

twiggy:~# dstat --squid
Module dstat_squid failed to load. (Needs squidclient binary)
None of the stats you selected are available.
twiggy:~# strace -f -e access dstat --squid
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
access(/etc/terminfo/x/xterm, R_OK)   = -1 ENOENT (No such file or directory)
access(/lib/terminfo/x/xterm, R_OK)   = 0
access(/usr/sbin/squidclient, X_OK)   = -1 ENOENT (No such file or directory)
Module dstat_squid failed to load. (Needs squidclient binary)
None of the stats you selected are available.
twiggy:~# ls -la /usr/sbin/squidclient /usr/bin/squidclient
ls: cannot access /usr/sbin/squidclient: No such file or directory
-rwxr-xr-x 1 root root 43976 Oct 30  2010 /usr/bin/squidclient*

Changing the path in /usr/share/dstat/dstat_squid.py (and removing ipv6
localhost) makes it start at least, but does not give any real data..
hrm.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages dstat depends on:
ii  python  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-central  0.6.16+nmu1  register and build utility for Pyt

dstat recommends no packages.

dstat suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#629680: dstat_squid looks for squidclient in the wrong directory

2011-06-08 Thread Andrew Pollock
Hi Dag,

I have a number of thoughts on how you could tackle this, and would be happy
to provide a patch.

1) Just try looking for squiclient in /usr/bin and /usr/sbin
2) Use platform.dist() (or platform.linux_distribution()) to choose the
appropriate location of squidclient. In this vein, how tied to a specific
version of Python are you?

regards

Andrew

On Wed, Jun 08, 2011 at 04:24:04PM +0200, Tomas ?gren wrote:
 Package: dstat
 Version: 0.7.2-1
 Severity: normal
 
 
 dstat_squid (as being used by 'dstat --squid') looks for squidclient in
 the wrong directory.
 
 twiggy:~# dstat --squid
 Module dstat_squid failed to load. (Needs squidclient binary)
 None of the stats you selected are available.
 twiggy:~# strace -f -e access dstat --squid
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/etc/terminfo/x/xterm, R_OK)   = -1 ENOENT (No such file or 
 directory)
 access(/lib/terminfo/x/xterm, R_OK)   = 0
 access(/usr/sbin/squidclient, X_OK)   = -1 ENOENT (No such file or 
 directory)
 Module dstat_squid failed to load. (Needs squidclient binary)
 None of the stats you selected are available.
 twiggy:~# ls -la /usr/sbin/squidclient /usr/bin/squidclient
 ls: cannot access /usr/sbin/squidclient: No such file or directory
 -rwxr-xr-x 1 root root 43976 Oct 30  2010 /usr/bin/squidclient*
 
 Changing the path in /usr/share/dstat/dstat_squid.py (and removing ipv6
 localhost) makes it start at least, but does not give any real data..
 hrm.
 
 -- System Information:
 Debian Release: 6.0.1
   APT prefers stable
   APT policy: (500, 'stable')
 Architecture: amd64 (x86_64)
 
 Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
 Shell: /bin/sh linked to /bin/bash
 
 Versions of packages dstat depends on:
 ii  python  2.6.6-3+squeeze6 interactive high-level 
 object-orie
 ii  python-central  0.6.16+nmu1  register and build utility for 
 Pyt
 
 dstat recommends no packages.
 
 dstat suggests no packages.
 
 -- no debconf information
 
 


signature.asc
Description: Digital signature