grundic / zabbix-disk-performance

Zabbix template for collecting IO statistics
MIT License
292 stars 152 forks source link

Rocky-linux 8.5 Ramdrive monitoring #34

Open sinanca opened 2 years ago

sinanca commented 2 years ago

Hello, I use the disks for monitoring on my rocky-linux 8.5 server. I can see the SDA mount disks, but I cannot monitor the RAM drive. This is the result when I run it manually with zabbi_get.

Does anyone know anything about the problem?

zabbix_get -s 127.0.0.1 -k "custom.vfs.discover_disks" File "/etc/zabbix/scripts/lld-disks.py", line 9 devices = (device for device in os.listdir("/sys/class/block") ^ IndentationError: unindent does not match any outer indentation level

Thanks.

kirkwor commented 2 years ago

The error denotes that the indentation was not respected when you've pasted the python script. You should be able to get the file locally directly instead of copy/paste:

curl https://raw.githubusercontent.com/grundic/zabbix-disk-performance/master/lld-disks.py -o /some/path/to/zabbix/scripts/lld-disks.py