File: README

package info (click to toggle)
wmnd 0.4.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,160 kB
  • ctags: 509
  • sloc: ansic: 3,637; sh: 3,333; makefile: 96
file content (460 lines) | stat: -rw-r--r-- 18,298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
WMND - Window Maker Network Devices
----------------------------------------------------------------------
Current development: http://www.yuv.info/wmnd/
Old web site: http://wmnd.wingeer.org/
Copyright information:

  Reed "Reed Lai" <reed@wingeer.org> http://www.wingeer.org/bv4qo/
  Copyright (c) 2000-2001
  
  Timecop <timecop@japan.co.jp> http://www.ne.jp/asahi/linux/timecop/
  Copyright (c) 2001
  
  wave++ "Yuri D'Elia" <wavexx@yuv.info> http://www.yuv.info/
  Copyright (c) 2001-2004

WMND is licensed under the GNU General Public License. Read the
COPYING file for the complete GNU license description.


Description
----------------------------------------------------------------------
WMND (WindowMaker Network Devices) is a network monitoring
dockapp for Window Maker (and compatibles) for many operative systems.
Improved and based on WMiFS 1.3b, the version 0.2 of WMND is almost
totally written by Timecop, given the optimization and flexibility and
now consumes less cpu than wmmon. Version >= 0.3 WMND is now
maintained by wave++, which added new display modes and several new
drivers. Enjoy!


Files
----------------------------------------------------------------------
README		This file.
INSTALL		Configuration and Installation instructions.
		(The bottom of this file contains a brief summary)
ChangeLog	Description of changes.
NEWS		Summary of changes between releases.
TODO		Things we've already planned for WMND.
COPYING		GNU General Public License Version 2.
AUTHORS		Programmers that have contributed to WMND.


Bugs
----------------------------------------------------------------------
If you discover any bugs in this software, please submit a bug report
to the current maintainer: wave++ <wavexx@users.sf.net>. Please
describe the problems in as much in detail as you can.


Hints for WMND
----------------------------------------------------------------------
-- Generic -----------------------------------------------------------
WMND supports command-line options, 'wmnd -h' prints help about them.

Use option -i to monitor a particular interface at startup:

  wmnd -i eth0 &
  wmnd -i ppp0 &

Without the -i option, wmnd will auto-magically use the interface
that is first found in /proc/net/dev (or the current driver), but
skip the lo and irda.

Use the -I option to load only a specific interface into wmnd. By
default wmnd loads all available interfaces.

To monitor the lo or irda devices you must manually force wmnd as
shown below:

  wmnd -I lo &
  wmnd -I irda &

To monitor dialup interfaces under linux either use the -I ppp0 flag
or use the streams solaris_fpppd driver (-D solaris_fpppd -I ppp0).
The linux_proc driver supports multiple interfaces on the command line
through the -I flag:

  wmnd -D linux_proc -I eth0,eth1,ppp0

This way you can combine multiple interfaces (whether they're online
or not) on the same WMND instance. This trick allows also to create
handy dialup shortcuts using the button actions (by passing the active
interface name and status on the command line). Look at the example
wmndrc file for details.

-- GUI Usage ---------------------------------------------------------
You can cycle in real-time through all available active interfaces
by simply left-clicking on the interface name gadget on the
upper-left corner of wmnd.

By default, wmnd show device name in short term of four characters,
for example, the ippp0 will be displayed as ipp0.  You can toggle
the device name between short and long by right-click on it.

Left-click on the main graphic area to cycle the graphic mode.

Left-click to toggle the history max or screen max, default is
screen max when wmnd is startup.  Right-click to hide or display.

Left-click on the letter gadgeted on the right-top corner can switch
between the Byte or Packet counter mode. "B" for byte, "p" for packet.

Click on the bottom rate meter can invoke the user command defined in
resource file .wmndrc.

Be sure to drag WMND on it's outer edges, it's a bit picky due
to the large gfx pixmap it keeps ;-). You can also use a
keyboard+mouse shortcut (perhaps ALT+left-click) in your window
manager to drag it around.

If trend support is enabled (--enable-trend at configure time) and
trend is installed, the history can be viewed and inspected more
conveniently by clicking with the middle button on the scale meter.
See the "trend" section below.

-- Internals ---------------------------------------------------------
Sending a SIGUSR1 (pkill -USR1 wmnd) to wmnd will make itself to
restart the drivers subsystem. Drivers must be coded correctly to
support a 'real' restart, thus the only driver that does 'something'
on restart is the solaris_kstat one.

-- Transition from 0.2/0.3 -------------------------------------------
If you are coming from an old release of WMND (0.2/0.3 series) you
must be aware that some values/scales of the ~/.wmndrc file have
changed. Copy a fresh wmndrc from the source distribution
(examples/wmndrc) or erase your old wmndrc to get the new defaults.

-- Firing up WMND with sensible defaults -----------------------------
Default values are easily changed from the command line or through
the ~/.wmndrc file. The ~/.wmndrc file gets created automatically
the first time you execute WMND (unless you use -F) using the internal
defaults and command line flags. That is, if you want to change
"permanently" the defaults (so you can start it without command line
fuss) just remove ~/.wmndrc and launch WMND using all the flags
again. Beware however that internal defaults may change. Consider
reading the example wmndrc that comes with the distribution.


Window Managers
----------------------------------------------------------------------
-- WindowMaker -------------------------------------------------------

WindowMaker users simply drag and drop the WMND dock.app on the
WindowMaker Dock (preferred) or on the Fiend, and then press the
right mouse button on the outer edges of WMND and then enable
'Auto launch' from the Dock pop-up menu.

-- AfterSTEP ---------------------------------------------------------
AfterSTEP users put the following in their .steprc:

  "Wharf wmnd - MaxSwallow "wmnd" wmnd -i eth0 -w &".

Change the WMND's title name in order to not swallow multiple
instances into a single dock (see -n).

-- BlackBox or FluxBox -----------------------------------------------
You must enable the slit in other make wmnd visible. To add wmnd to
the slit simply run wmnd from the command line:

  wmnd &

and it will pop-up into a new slot.

-- Other Window managers ---------------------------------------------
For other windowmanagers, WMND runs nicely as 64x64 pixel shaped icon
on your desktop.

Under gnome add the "swallow" applet and set it to run wmnd. The same
thing can be done under KDE using the kdeswallow applet.

PS: FVWM can swallow it too, so we've heard ;-)


Creating PPP dialup scripts
----------------------------------------------------------------------
Because a very good PPP HowTo already exists, it's quite pointless for
us to explain to you how you should and can make them.

Read the PPP HowTo, and you'll see that it's very easy to create your
own PPP scripts.


Display modes
----------------------------------------------------------------------
-- Traditional -------------------------------------------------------
Tx and Rx are piled on the same line within a single graph
(like wmifs original behavior)

-- MGraph ------------------------------------------------------------
Tx and Rx scale is calculated uniquely and the slower channel is shown
in front of the other one.

-- Waveform ----------------------------------------------------------
Tx and Rx are piled on the same line and mirrored using the central
line, in way to generate a "waveform like" silhouette

-- WmWave ------------------------------------------------------------
Tx and Rx are opposite to the central line, however the scale is
calculated using both values

-- WmNet -------------------------------------------------------------
This graph shows a reversed wmwave mode without the central line.
(like wmnet behavior)

-- Sepgraphs ---------------------------------------------------------
Tx and Rx are shown on separated graphs. Tx in top and Rx in bottom,
divided by a central line. Scales are calculated separately.

-- Twisted -----------------------------------------------------------
This mode displays two vertical "waveform like" graphs flowing in
reverse directions. The scale is unique.

-- Charts ------------------------------------------------------------
Displays four charts disposed in this manner:

  TX Current Speed Indicator
  TX Average Speed Indicator
  RX Current Speed Indicator
  RX Average Speed Indicator

The range is from 0 to the maximal value in history. The average speed
is calculated using the lastest 58 samples for each channel.

-- Needle ------------------------------------------------------------
Displays three needles. The arrangement is as follows:

  TX Average Needle

       Bandwidth utilization Needle

  RX Average Needle

The range For TX and RX needles is between 0 and the maximal value in
history. The bandwidth utilization one uses this formula:

 (tx_med+rx_med)/(tx_max+rx_max)

_med: average speed
_max: maximal value in history

I particularly like this mode :), the needles speed are slow and
smooth like a real analog display.

-- Lines -------------------------------------------------------------
Displays a trend graph using two lines.


Building WMND 0.4
----------------------------------------------------------------------
Since release 0.4 WMND is now compliant to the GNU Packaging
standards and enables to use the GNU autotools to automagically build
WMND for your box with little or no difficulty.

First of all, unpack the source tarball:

  $ gzcat wmnd-0.4.8.tar.gz | tar xf -

WMND will unpack into the wmnd-0.4.8 directory. Create now a build
directory that will contain objects:

  $ mkdir wmnd-build
  $ cd wmnd-build

You can now launch configure to 'configure' wmnd as follows:

  $ ../wmnd-0.4.8/configure

And finally make/install it:

  $ make
  $ make install

Configure accepts several options to enchange/minimize wmnd
functionality and size.  To forcely disable the dummy driver:

  $ ../wmnd-0.4.8/configure --without-dummy-driver

To select only some display modes:

  $ ../wmnd-0.4.8/configure --with-display-modes="traditional wmwave"

To forcely build specified drivers (beware that the dummy driver should
be disabled with --wihout-dummy-driver, also, extra libraries that may
be needed by the driver won't be checked automatically):

  $ ../wmnd-0.4.8/configure --with-drivers="linux_proc"

To enchange the dummy driver (shows a sine function instead of a plain
empty graph):

  $ ../wmnd-0.4.8/configure --enable-sine-dummy

To use an innacurate (but smoother, if you don't mind about stats)
timing method:

  $ ../wmnd-0.4.8/configure --enable-inexact-timing

The --help flag will show you a complete list of command line flags
that the configure script supports.

-- Autodetection flaws -----------------------------------------------
The configure autodetection stuff has only been tested on solaris and
linux due to lack of FreeBSD machines. Report any autodetection
problem to the current mantainer.

automake 1.5 doesn't seem to cooperate with autoconf 2.5 and so it
might cause problems if you have it installed. The only thing that you
can do is making configure failing to find automake:

  $ cd wmnd-0.4.8
  $ sed -e "s/\<automake\>/fake-automake/" configure > configure.tmp
  $ mv configure.tmp configure
  $ chmod +x configure

and then proceed as above. You'll notice this big improvement:

  -checking for working automake... found
  +checking for working fake-automake... missing

This will prevent for make to recall automake later for regenerating
makefiles (and this happens regardless the date of files!). automake
1.4 no longer works. automake >= 1.7 and autoconf >= 2.5 are now
_required_ to regenerate the configure script.

Also, on some platforms (linux actually) the solaris_fpppd driver
would be detected only when the ppp kernel module is installed. To
forcedly enable specified drivers use the --with-drivers="list" flag.

-- Available drivers/display modes -----------------------------------
Actually WMND supports these drivers/display modes (these names should
be used with configure, they're case sensitive):

  * display modes: traditional mgraph waveform wmwave wmnet sepgraphs
  twisted charts needle lines

  * drivers: linux_proc freebsd_sysctl solaris_fpppd solaris_kstat
  irix_pcp generic_snmp

-- GCC 2.96 sucks ----------------------------------------------------
WMND 0.4 won't compile with RedHat's gcc 2.96. Either downgrade to
2.95 or upgrade to 3. DON'T SEND bug reports about INLINE not working
under gcc 2.96, it's a RedHat-only bug.

-- IRIX MIPSPro 7.3 / AIX VaCPP 5.0 ----------------------------------
These compilers ignores what variable arguments macros are! A
work-around has been found so WMND can be built with these compilers
now. MIPSPro 7.4 works correctly. Drivers for AIX, however, are still
missing (and I'll probably never code them unless someone asks).

Actually, the IRIX driver is based on the PCP API 2.x (Performance
Co-Pilot). You'll need `pcpd' running for WMND to work. These filesets
are required:

  pcp_eoe.sw.eoe
  pcp.sw.base

If you don't have these, you can download PCP directly from here:
http://www.sgi.com/software/co-pilot/ (pcp_eoe.* filesets are into
"IRIX Overlays, 2/4" and "Foundation 2").

In some cases WMND may fail to compile due to the presence of Motif
XPM headers: be sure to have freeware's XPM installed (see
http://freeware.sgi.com/) and have "/usr/freeware/include" paths
before any other.

There seems to be a Linux version of PCP, but I can't (don't) want to
try it. It will probably work.

-- IF-MIB snmp driver ------------------------------------------------
Since 0.4.5 wmnd adds a new snmp driver for local and/or remote IF-MIB
compliant devices. This driver requires the NET-SNMP library,
available at http://www.net-snmp.org/, version 5 or higher. The
drivers name is generic_snmp. It uses the parameters sent through the
-I flag to initialize the device/s list. The format is as follows:

  [community@]host[:interface]

Parameters inside [] are optional. If you do not explicitly supply
these parameters, generic_snmp will use "public@localhost".

To monitor an entire switch, you can usually do:

  wmnd -D generic_snmp -I public@switch

(or "-I switch", which is shorter).
To monitor only a specific interface:

  wmnd -D generic_snmp -I public@switch:1

Interface numbers start at 1 (0 means all interfaces, like an empty
interface specification). Beware that EACH remote interface, at the
default refresh speed, burns AT LEAST 2kB/s of continuous data stream
through your network. Monitoring a complete switch (24 ports), always
at the default refresh speed, burns circa 30kB/s. You can slow down
the refresh speed (-r) to reduce this traffic. The extremely fast
queries done by wmnd can also reduce the available cpu of your snmp
server/hardware and decrease overall performance.

Also beware that using the -I flag on the command-line can potentially
expose the community name of your remote snmp server. Better to use
~/.wmndrc and chmod it to 600 in this case.

WMND will use ifName to display interface names, which is usually
shorter. DLINK switches seems to hang (or even flood the network) with
this, so you can switch back to ifDescr using the --enable-snmp-descr
option at the configure command line.

Personal note: this driver shows both the potential and the side
effects of the current driver layout. You can make drivers for almost
anything, but as you need initialization parameters, you'll loose the
ability to have multiple interfaces/drivers inside a single wmnd
instance, that has always been a nice feature of wmnd.

WMND now needs a mayor rewrite, definitively! The snmp driver itself
needs more work to the able to monitor non IF-MIB devices. But I want
your comments. I won't do any larger work on WMND as it is without
YOUR feedback, without SOMEONE that will ever use it. Do you like
WMND? Do you want to use multiple drivers and/or parameters without
leaving WMND simply guessing? Do you want better snmp support? Please
drop me a line, I don't ask anything more. I don't have much time to
dedicate to myself anymore, so I want to do something really useful
instead of guessing what you'd like. Thanks to everyone that have done
it so far. These comments greatly improved WMND over time.

-- Packager's notes --------------------------------------------------
I'm not a professional packager, but you may want to consider these
notes to improve the WMND package.

The irix_pcp and generic_snmp drivers depends upon libraries that are
not installed on a distribution/OS by default. Both these drivers are
supported by different operating systems. I suggest you to build
three different packages of WMND, respectively:

 - wmnd-pcp: built with irix_pcp and OS's drivers.
 - wmnd-snmp: built with generic_snmp and OS's drivers.
 - wmnd: standard WMND, built without generic drivers
   (actually only irix_pcp and generic_snmp)

Finally, --enable-sine-dummy should be really a default :).

-- Trend support -----------------------------------------------------
If proper support has been compiled-in (with --enable-trend) and trend
is installed[1], you can examine the current history in a larger
window by clicking with the middle mouse button on the scale meter
(the panel under the device name). A middle-click on the left side
will inspect RX, TX on the right side. Bytes/Packets mode affects the
counters involved.

[1] http://www.yuv.info/~wavexx/hacks/trend/

Upon click, WMND will execute trend as a separate process and feed the
latest 59 sampled values to it.

Since this feature requires additional software, it's disabled by
default. Enabling trend support however does not cause any slow-down
or runtime-dependencies so it's still safe to enable it in packages.
If trend support is enabled but trend isn't installed, WMND will
simply print a warning on the console when clicking.

Any version of trend starting with Rev #11 21/09/2004 should work.