input file parsing
Status: Beta
Brought to you by:
xcherif
if I run a kSar session fed with "Data -> Launch SSH command" with proper credentials and remote command = sar -A, it works.
if I run on the remote machine "sar -A > /tmp/sar.txt" and if I give that file as input to kSar, it fails saying:
java.lang.NumberFormatException: For input string: "all"
I found a way to make it work now with kSar 5.1.0-beta4:
# set some envir. var. to get proper date format
export LC_ALL=C && export S_TIME_FORMAT=ISO
# generate sar report
sar -A -f /var/log/sysstat/sa0X > /tmp/sar.txt
java -jar kSar-5.1.0-beta4/kSar-5.1.0.jar -input /tmp/sar.txt
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Actually the workaround for this is:
/usr/bin/env LC_TIME=POSIX sar -A > /tmp/sar.txt
kSar does not like the AM/PM values in the output file.
This fix will work for any kSar version.
Hi,
Can you please forward the sar.txt file (changing the header to anonymize it), so i can find what happen.
Regards