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

error with to many or new parameter outputs from diskstats #7

Open
gernotkrause opened this issue May 11, 2020 · 0 comments
Open

error with to many or new parameter outputs from diskstats #7

gernotkrause opened this issue May 11, 2020 · 0 comments

Comments

@gernotkrause
Copy link

Hallo
Description:
After upgrade from RasberryMatic, i found a bug on my check_mk check diskstats.
It seem, that it have now four additional parameters (... 0 0 0 0) on each line output from /proc/diskstats.
My temporary fix to them was following changing (diff/patch format) into addon/addon/server.tcl:

...
73c73
< puts $channelId "[exec egrep { (x?[shv]d[a-z]*|cciss/c[0-9]+d[0-9]+|emcpower[a-z]+|dm-[0-9]+|VxVM.*|mmcblk.*|dasd[a-z]*|bcache[0-9]+|nvme[0-9]+n[0-9]+|mtdblock.+) } < /proc/diskstats]"


> puts $channelId "[exec sed -e {s/ 0 0 0 0$/\n/} | egrep { (x?[shv]d[a-z]*|cciss/c[0-9]+d[0-9]+|emcpower[a-z]+|dm-[0-9]+|VxVM.*|mmcblk.*|dasd[a-z]*|bcache[0-9]+|nvme[0-9]+n[0-9]+|mtdblock.+) } < /proc/diskstats]"

this change have no impact to old RasberryMatic versions and is compatible with the new output from /proc/diskstats.

My current environment:

  • check_mk server: Odroid HC1 hardware, Linux hc101 4.14.157-171 Seems not to be compatible with FW 2.29.23 #1 SMP PREEMPT Wed Dec 4 08:21:54 -03 2019 armv7l armv7l armv7l GNU/Linux
  • RasberryMatic: RasberryPi 3B+, RasberryMatic 3.51.6.2020422

Best regards

Gernot Krause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant