Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates

  • Loading branch information...
commit 293475ccbee68af5329ff2e0a3324e31f05dd84f 1 parent 3d311f0
@dagwieers authored
View
5 ChangeLog
@@ -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)
@@ -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)
View
1  README.plugins
@@ -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
View
3  TODO
@@ -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
@@ -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
View
2  dstat
@@ -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
View
2  dstat.spec
@@ -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
View
8 dstat15
@@ -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
@@ -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():
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.