NAME sar2rrd collector DESCRIPTION Script for creation of graphic reports of work of system on the basis of a package sysstat. SYNOPSIS Quick Install: - Execute `generate_rrd.pl` with the follow options: ./generate_rrd.pl %step% %img_dir% %rrd_dir% \ %img_web_dir% %cgi_dir% %cgi_pref% where: step Specifies the base interval in seconds with which data will be fed into the RRD. [ 600 ] img_dir Image directory. [ /var/www/html/image ] rrd_dir RRD files directory. [ /var/www/rrd ] img_web_dir WWW path to image directory. [ /image ] cgi_dir WWW path to cgi-bin directory. [ /cgi-bin ] cgi_pref Prefix output script. [ sar ] - Change permision for the created *.cgi and *.pl files chmod +x *.cgi chmod +x *.pl - At desire, load data from files /var/log/sa/sarXX. Attention loaded files should be transferred a script by way of time of creation - from older to newer. find /var/log/sa -name 'sar*' | perl -e \ '@fn = ; chomp @fn; print join "\n", sort { (stat $a)[9] <=> (stat $b)[9] } @fn' | \ xargs perl load_from_file.pl 2> /dev/null - Copy update_sysstat.pl to /usr/local/bin/ cp update_sysstat.pl /usr/local/bin/ - Copy update_rrd.cron to /etc/cron.d/ cp update_rrd.cron /etc/cron.d/ - Restart cron daemon. rccron restart #( For SuSE users ) - Copy *.cgi to %your_http_server_cgi-bin_directory% - Copy sar.html to %your_http_server_document_directory% - Type `http://yuor.host.name/sar.html` in your web browser to view statistics... AUTHOR Igor Okunev mailto:igor@prv.mts-nn.ru http://www.mts-nn.ru/~gosha ICQ 106183300