This page is still under construction, if anything is missing or unclear send me a and I'll get in touch.
The /etc realtime charting system is a free, lightweight mechanism for generating Unix and Linux performance charts. The client reads the performance data direct from the kernel and sends updates across the network to a centralised charting server which generates the .bmp files.
The .bmp files are best displayed on a web page where, as they are only 340x150, it is possible to display 12 of them using 1024x768 resolution.
Displaying the charts this way has the following advantages:
The current version of rtc will generate two charts: a 24hr CPU chart and a 24hr memory chart (excluding swap). Each x position represents a 5 minute period. Owing to the different figures available for Solaris and Linux, the various clients generate different charts.
The charts bitmaps have the following characteristics
|Solaris CPU chart Solaris Memory chart|
Client & Daemon Setup
First you will need a Solaris or Linux machine with a web server. The charting daemon (rtcd) is installed on this machine (e.g. /opt/charts/bin/rtcd). If you haven't got a Unix webserver try installing Apache.
Next, start the daemon thus: /opt/charts/bin/rtcd -d directory, where directory is the target location for the charts. I'd suggest starting the daemon as the user sys (or adm on Linux) as sar runs as this user. It is best not to start it as root as it provides a incoming network port (6287 as default, changeable via the -p option).
Next, install the client software (rtc) on each client machine; e.g. /opt/charts/bin/rtc. Start the rtc process (as sys or adm preferably) but you will need to specify the server machine via the -c machine option. If the daemon was started on a different port to 6287, use -c machine:port. Rtc can send to two seperate daemons, just specify two -c options.
To check that updates are being received buy the daemon, start it with the -t option. This means it will print all updates on the stderr. The output directory will contain the actual .bmp files.
Building a Web Page
This system will generate two charts per client per day each of around 10k. In order to limit the amount of disk space these can comsume a cron job should be setup to clear down charts older than 30 days or how long you want.
Depending on take-up and feedback I will be expanding the chart capabilities to monitor, for example, run queue, paging, network etc. If nobody seems to be using the charts they are likely to remain as they are.
Other features of future revisions will include: