Menu

#8 input file parsing

open
nobody
parser (12)
5
2015-02-09
2010-10-05
Phil Martin
No

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"

Discussion

  • Phil Martin

    Phil Martin - 2010-10-06

    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

     
  • Anonymous

    Anonymous - 2010-10-07

    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.

     
  • Alexandre Cherif

    Hi,

    Can you please forward the sar.txt file (changing the header to anonymize it), so i can find what happen.

    Regards

     

Log in to post a comment.