Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dagwieers committed Sep 4, 2005
1 parent 3d311f0 commit 293475c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
5 changes: 3 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
* 0.6.1 - Fishkill - released ??/??/2005
* 0.6.1 - Fishkill - released 05/09/2005
- Look for plugins in ~/.dstat/ too
- Added -M list to show the list of available modules per path
- Added '-M list' to show the list of available modules per path
- Fixed a bug in dpopen causing gpfs/gpfsop to fail after a while
- Change terminal title (if terminal supports it)
- Don't trim the cpulist to 2 items when -f (S�bastien Prud'homme)
Expand All @@ -14,6 +14,7 @@
- Added external plugin dstat_nfs3op
- Added external plugin dstat_nfsd3
- Added external plugin dstat_nfsd3op
- Improvements to plugin error handling

* 0.6.0 - Bettiesbaai - released 29/05/2005
- Removed keyboard input prevention patch. (Dbt 304673, Marc Lehmann)
Expand Down
1 change: 0 additions & 1 deletion README.plugins
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Future possible external plugins:
dstat_dhcpd
dstat_dnsmasq
dstat_gfs
dstat_nfs
dstat_qla2300
dstat_samba (needs a python tdb implementation ?)
dstat_squid
Expand Down
3 changes: 0 additions & 3 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@
+ Look into interfacing with specific HW counters in /proc
+ Look at /proc/meminfo, /proc/mdstat, /proc/netstat, /proc/snmp, /proc/vmstat
+ Look at /proc/fs/cifs/stats
+ Look at /proc/net/rpc/nfsd and /proc/net/rpc/nfs
+ Add i2c plugin (see /sys/class/i2c-adapter/i2c-*/*/*/*/*/*)
+ Allow for SNMP counters to be added
+ Add LVM stats

### Documentation (help welcome!)
+ Improve manpage
+ Create document on general system performance tuning
(explaining the different values in /proc, especially the concerning ones)
+ Create document on general system performance tools
Expand All @@ -42,7 +40,6 @@
+ proc plugin (run and blk) does not work on 2.4.24+, to be confirmed
+ proc plugin seem to be off-by-one compared to vmstat (some of the time, this is what I get from /proc/stat)
+ /proc/partitions can have negative numbers, seen on systems with long uptime. dstat handles this except for calculating the very first stat, no work-around possible?
+ gpfs plugin seems to loose pipe with mmpmon after some time, seems to be an mmpmon issue

### Redesign (v2.0)
+ Create modules that can contain samples of different units
Expand Down
2 changes: 1 addition & 1 deletion dstat
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ try:
inspath(os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/') # binary path + /plugins/
inspath(os.getcwd() + '/plugins/') # current path + /plugins/
inspath(os.getcwd()) # current path
inspath(os.getenv('HOME') + '/.dstat/') # home + /.dstat/
inspath(os.path.expanduser('~/.dstat/')) # home + /.dstat/
except KeyboardInterrupt, e:
pass

Expand Down
2 changes: 1 addition & 1 deletion dstat.spec
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ confusion, less mistakes.
%{_datadir}/dstat/

%changelog
* Sun Sep 04 2005 Dag Wieers <dag@wieers.com> - 0.6.1-1
* Mon Sep 05 2005 Dag Wieers <dag@wieers.com> - 0.6.1-1
- Updated to release 0.6.1.

* Sun May 29 2005 Dag Wieers <dag@wieers.com> - 0.6.0-1
Expand Down
8 changes: 4 additions & 4 deletions dstat15
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ try:
inspath(os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/') # binary path + /plugins/
inspath(os.getcwd() + '/plugins/') # current path + /plugins/
inspath(os.getcwd()) # current path
inspath(os.getenv('HOME') + '/.dstat/') # home + /.dstat/
inspath(os.path.expanduser('~/.dstat/')) # home + /.dstat/
except KeyboardInterrupt, e:
pass

Expand Down Expand Up @@ -1589,8 +1589,8 @@ def main():
hostname = string.split(os.uname()[1], '.')[0]

### Write term-title
if re.compile('(screen*|xterm*)').match(os.getenv('TERM')):
sys.stdout.write('\033]0;(%s@%s) %s %s\007' % (user, hostname, os.path.basename(sys.argv[0]), ' '.join(op.args)))
if re.compile('(screen*|xterm*)').match(os.environ['TERM']):
sys.stdout.write('\033]0;(%s@%s) %s %s\007' % (user, hostname, os.path.basename(sys.argv[0]), string.join(op.args, ' ')))

### Check terminal capabilities
if sys.stdout.isatty():
Expand All @@ -1611,7 +1611,7 @@ def main():
outputfile.write('"Author:","Dag Wieers <dag@wieers.com>",,,,"URL:","http://dag.wieers.com/home-made/dstat/"\n')

outputfile.write('"Host:","%s",,,,"User:","%s"\n' % (hostname, user))
outputfile.write('"Cmdline:","dstat %s",,,,"Date:","%s"\n\n' % (' '.join(op.args), time.strftime('%d %b %Y %H:%M:%S %Z', time.localtime())))
outputfile.write('"Cmdline:","dstat %s",,,,"Date:","%s"\n\n' % (string.join(op.args, ' '), time.strftime('%d %b %Y %H:%M:%S %Z', time.localtime())))

rows, cols = getwinsize()

Expand Down

0 comments on commit 293475c

Please sign in to comment.