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
|
Contributed Programs - User Defined Statistics
----------------------------------------------
It is now possible to add in your own statistics and get them displayed on
ProcMeter. These are indicated by the -data command line parameter (of which
there can be any number). Each file must be always readable, a named pipe or a
regular file or ProcMeter will lock up waiting. The format of the data in the
data file is one statistic per line, integer valued. A definition file (with
the same name as the datafile with .def appended, or replacing .dat) contains
the information that ProcMeter needs to be able to display the information.
Each line in the definition file that is not a comment ('#' in column zero) must
contain three values, the name of the statistic for the menu, the name of the
units and the interval for the graph.
An example is in the pipedemo program, you can do the following to try it out:
make demo
start-procmeter.sh pipedemo -- cpu sine
The start-procmeter.sh script starts up ProcMeter with any number of other
programs (specified as command line arguments) feeding data to it via temporary
pipes that are created in /tmp. Exiting ProcMeter or interrupting the script
will kill all of the pipe programs and delete the temporary pipes that were used
for the connections.
Contents
--------
This contrib directory contains a number of programs / scripts that can be used
with ProcMeter to provide statistics.
users - A simple shell script that displays the number of users
logtail - A perl script that monitors a specified log file.
Author and Copyright
--------------------
These programs / scripts are all copyright by the various authors and released
under the GPL. IF you write any programs / scripts that you would like to see
included in future versions of PrcMeter then let me know.
email: amb@gedanken.demon.co.uk [Please put procmeter in the subject line]
|