| 1 |
August 31, 2005 |
| 2 |
|
| 3 |
rpc.rstatd has been left to rot for some time, and its age started |
| 4 |
showed. E.g. it was unable to deal with the large numbers of ticks |
| 5 |
reported for multiprocesser machines, or it crashed if a system had |
| 6 |
no disks, or if it did not find any, which wasn't surprising as it |
| 7 |
looked in all the wrong places, at least for current kernels. |
| 8 |
|
| 9 |
This release changes the data acquisition layer of rpc.rstatd, making |
| 10 |
it simpler to adapt it to changes in the operation system. In principle, |
| 11 |
this code could even be ported more easily to other systems, by adding |
| 12 |
a new data acquisition functions for that particular platform. There are, |
| 13 |
however, currently no plans to do this. |
| 14 |
|
| 15 |
May 3, 2001 |
| 16 |
|
| 17 |
This is Sun's rpc.rstatd ported to linux with a new feature and a new client |
| 18 |
to exploit that new feature. |
| 19 |
|
| 20 |
Authors: Adam Migus ([email protected]) |
| 21 |
Andreas Klingler ([email protected]) |
| 22 |
Original: Sun MicroSystems. |
| 23 |
|
| 24 |
rpc.rstatd collects kernel information on the host machine, I have ported |
| 25 |
Sun's version of this daemon to use the proc file system. Output look similar |
| 26 |
Output look similar to mun-ruptime (found on ftp.cs.mun.ca). |
| 27 |
I have added the ability of extracting the number of users on the remote host |
| 28 |
and a new "rup" client which exploits that feature. |
| 29 |
|
| 30 |
* Both the new client and daemon remain backwardly compatible with |
| 31 |
previous versions. |
| 32 |
|
| 33 |
rpc.rstatd can be loaded from the command line but is usually executed via |
| 34 |
inetd(8). |
| 35 |
|
| 36 |
To Install: |
| 37 |
|
| 38 |
Edit the Makefile and add the option NORPCLIB if your rpc functions are built |
| 39 |
into libc (as they are on most linux machines). Also you will have to comment |
| 40 |
out the call -lrpclib. |
| 41 |
If you have a network interface other than "eth0" that appears in |
| 42 |
/proc/net/dev, like "tu0", "sl0" etc you can define it as the interface for |
| 43 |
rstatd to moniter by adding: |
| 44 |
-DNET_IFACE=\"<device>\" |
| 45 |
to the options line in the Makefile. |
| 46 |
|
| 47 |
Append the following line to your /etc/inetd.conf |
| 48 |
|
| 49 |
rstatd/1-5 dgram rpc/udp wait root /usr/sbin/rpc.rstatd rpc.rstatd |
| 50 |
|
| 51 |
Tested on SuSE Linux 7.0 (kernel 2.2.16-suse18) and 7.1 (kernel 2.4). |
| 52 |
Any bug reports, comments, etc. sent to the below address. |
| 53 |
|
| 54 |
Release 3.07 |
| 55 |
Patch from Daniel Vesely <[email protected]> to support protocol version 4 . |
| 56 |
Configuration now via GNU configure script. |
| 57 |
|
| 58 |
Release 3.06 |
| 59 |
Now works also with kernel 2.4 . |
| 60 |
Some cleanups. |
| 61 |
Added 'disk' info to rsysinfo |
| 62 |
|
| 63 |
Release 3.05 |
| 64 |
Added option to specify which interfaces to include into the packet count. |
| 65 |
|
| 66 |
Release 3.04 |
| 67 |
Adapted to /proc for kernel 2.2.x . |
| 68 |
Made /proc parsing code more fault tolerant. |
| 69 |
Writes messages to syslog and dies instead of returning false data if /proc parsing |
| 70 |
does not work. |
| 71 |
Some bug fixes. |
| 72 |
|
| 73 |
BUGFIXES 3.03 |
| 74 |
|
| 75 |
Fixed incorrect numbers in ipackets, opackets, etc. for 1.2.13, and for |
| 76 |
1.3.xx. Thanks for some help with the patch from: |
| 77 |
Jens Maurer ([email protected]) |
| 78 |
|
| 79 |
Fixed infinite loop problem if IFACE wasn't in /proc/net/dev all the time |
| 80 |
eg. ppp0. Stat's are now reinitialized to zero as well. Thanks for the |
| 81 |
patch from: |
| 82 |
Carlos Fonseca ([email protected]) |
| 83 |
|
| 84 |
I have also added a quick hack called "rsysinfo" to extract and print all |
| 85 |
the information collected by rstatd. This is also an idea of Jens Maurer |
| 86 |
who submitted code for the program as well. |
| 87 |
|
| 88 |
KNOWN BUGS (if you know how to fix them email me) |
| 89 |
|
| 90 |
With some versions of rpclib the compiled "rup" may not broadcast correctly. |
| 91 |
This is another reason why it is recommended to use built in libc rpc stuff. |
| 92 |
|
| 93 |
Adam Migus, [email protected] |
| 94 |
Andreas Klingler, [email protected] |
| 95 |
Andreas Mueller, [email protected] |
| 96 |
|
| 97 |
-- |
| 98 |
$Id: README,v 1.9 2005/09/19 07:20:33 afm Exp $ |