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

Rocky-linux 8.5 Ramdrive monitoring #34

Open
sinanca opened this issue Feb 18, 2022 · 1 comment
Open

Rocky-linux 8.5 Ramdrive monitoring #34

sinanca opened this issue Feb 18, 2022 · 1 comment

Comments

@sinanca
Copy link

sinanca commented Feb 18, 2022

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
Copy link

kirkwor commented Feb 18, 2022

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

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

2 participants