Closed pbowditch closed 8 years ago
Hi,
Unfortunately, I cannot use this:
is_linux_iostat() {
which iostat >/dev/null 2>&1
}
because iostat exist for both BSD and Linux but option and result are very different. I will install a redhat VM tonight and do some tests. I'll keep you in touch.
@pbowditch This is a bug from early versions of linux iostat. I use another detection technique. Let me know if you're encounter trouble again.
I am running a Red Hat system with the following details
The cpu calculated always appears to be static. The cpu percentage is being calculated by the following logic which always returns the same static value.
However this code path should not have been followed, this is a linux system with iostat installed. The is_linux_iostat function should have returned a zero return code in helpers.sh. However the iostat command does not appear to work that way.
The current function:
On testing
Can we change this function to something like the following?
I'm not entirely sure however on the need to background the iostat call as per the original solution