zmstat.out mentioned issues with uninitialized variable $list in the /opt/zimbra/libexec/zmstat-io perl script on line 76.
After checking the line and comparing the output of /usr/bin/iostat, I figured the latter had no : after the Device entry.
Code: Select all
zimbra@sol:~$ iostat
Linux 4.15.0-50-generic (sol) 05/29/2019 _x86_64_ (2 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
20.41 8.96 9.80 7.28 0.00 53.55
Device tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sdc 27.82 1117.57 4601.60 119308677 491252548
sda 74.38 4111.18 2056.85 438896128 219582696
sdb 46.77 2488.03 4601.61 265614472 491253852
md1 0.00 0.04 0.00 4528 60
md3 65.43 3585.30 4580.76 382754949 489026940
md2 15.71 21.68 41.18 2314220 4396760
Example:
Wrong code:
Code: Select all
while ($line !~ /^avg-cpu/ && $line !~ /^Device:/) {
Code: Select all
while ($line !~ /^avg-cpu/ && $line !~ /^Device/) {