How to convert an raw saXX file to human readable sar file so that it is kSar compatible?
The /var/log/sa folder on APMs or CPMs contains the sarXX and saXX files, where XX is the day of the month.
The tool kSar helps convert the human readable sarXX files to a graphical format and even allows one to generate PDF's from the command line.
However, the saXX files are still in binary/raw format and are not human readable, thus cannot be processed by kSar.
The saXX file for the current day "rolls" over at the end of the day and generates a matching sarXX file that is human readable and kSar compatible.
Example: One can crunch the sa28 from a system so that it is kSar compatible:
# LANG=C sar -A -f sa28 > sar28