Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to get disk statistics on Ubuntu 18.04 due to changed iostat output format #12

Closed
jonaslm opened this issue Sep 13, 2018 · 1 comment · Fixed by dmichelotto/sensu-plugins-io-checks#1

Comments

@jonaslm
Copy link

@jonaslm jonaslm commented Sep 13, 2018

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.

iostat -x output on Ubuntu 14.04:


avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.87    0.00    0.10    0.39    0.00   98.64

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.00    17.34    0.75   51.82    26.02   612.08    24.28     0.00    0.68    0.99    0.67   0.57   3.01
dm-0              0.00     0.00    0.75   58.95    26.01   612.07    21.38     0.00    0.04    0.99    0.03   0.51   3.02
dm-1              0.00     0.00    0.00    0.00     0.01     0.01     8.00     0.00    5.38    1.54    7.87   0.26   0.00

iostat -x output on Ubutun 18.04 (note the lack of colon after "Device"):


avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.40    0.00    0.08    0.01    0.00   99.51

Device            r/s     w/s     rkB/s     wkB/s   rrqm/s   wrqm/s  %rrqm  %wrqm r_await w_await aqu-sz rareq-sz wareq-sz  svctm  %util
nvme0n1          9.56  647.89    158.28   5024.43     0.00    22.81   0.00   3.40    0.08    0.08   0.05    16.56     7.76   0.00   0.06
dm-0             9.46  663.13    158.22   5023.83     0.00     0.00   0.00   0.00    0.08    0.02   0.01    16.72     7.58   0.01   0.66

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.

@dmichelotto

This comment has been minimized.

Copy link
Contributor

@dmichelotto dmichelotto commented Oct 18, 2018

+1

dmichelotto added a commit to dmichelotto/sensu-plugins-io-checks that referenced this issue Oct 18, 2018
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.
dmichelotto added a commit to dmichelotto/sensu-plugins-io-checks that referenced this issue Oct 18, 2018
Fix issues sensu-plugins#12
majormoses added a commit that referenced this issue Oct 26, 2018
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.