Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fails to get disk statistics on Ubuntu 18.04 due to changed iostat output format #12
iostat on Ubuntu 18.04 no longer prints "Device:" for the disk headers, but rather just "Device" (without the colon). This makes the regexp trying to find disks fail.
Not sure what exactly caused this (some update to the sysstat package?), just noticed it when the check didn't work on our 18.04 server.
This fix issues with the new version of iostat package in Ubuntu 18 and Fedora 28. The output of the command in the device session changes from `Device:` to `Device`. The new simple regexp include both cases.