ppalucha / ksar2

Fork of ksar - a sar grapher
Other
29 stars 15 forks source link

ksar2 only showing CPU info #18

Open delta160 opened 5 years ago

delta160 commented 5 years ago

Hi, thanks for kSar2! I am using a command like sar -A -f /var/log/sa/sa07 -s 18:13:00 -e 18:18:00

I am getting data for 24 cores OK, but CPU data is the only thing kSAR2 shows I downloaded the latest kSar2 V 0.0.5 and still only CPU data I verified the command on the host and created a text file, and that text file contains all other metrics I am using a Red Hat Enterprise Linux Server release 7.5 (Maipo) system any idea or workaround to show all the other metrics?

delta160 commented 5 years ago

Hi I just found a workaround 1) manually create a text file, e.g. sar -A -f /var/log/sa ..... > sar_A.txt 2) scp the text file to the desktop maskin 3) in ksar2 Append from a local file

this way I get all the data I need

awkohr commented 5 years ago

It my experience if is not a problem with ksar2 itself, it is some kind of problem with the configuration of the box or the user account on the box you are connecting to.
I have found that for boxes that only return cpu data with the default 'sar -A' command, that sending without the single quotes 'bash -c “sar -A”' returns all of the data. I havn't really investigate this far. However this seems to be a problem for some users even if they have bash as there default shell and the exact same bashrc and .bash_profile as other boxes where it works. Might be something to do with the shell configurations at the global level.