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

Zero Division Error with mode Storage & Docker Container Volumes #5

Closed
Byolock opened this issue Apr 13, 2020 · 0 comments · Fixed by #6
Closed

Zero Division Error with mode Storage & Docker Container Volumes #5

Byolock opened this issue Apr 13, 2020 · 0 comments · Fixed by #6

Comments

@Byolock
Copy link
Contributor

Byolock commented Apr 13, 2020

I have got a ZeroDivisionError with the storage check :
File "/etc/icinga2/scripts/check_synology.py", line 149, in <module> storage_used_percent = int(storage_used * 100 / storage_size) ZeroDivisionError: integer division or modulo by zero

I was able to trace it back to the following volume :
STRING: "/volume2/@docker/containers/782c5829828d901c73d57e223e84300ea4f95bf0005024912aea33de85e618f7/mounts/shm"
So its apparently some kind of docker configuration which is able to create a volume with size 0.
Disabling checks for Volumes with storage_size 0 would be an easy fix i guess? I don't know python but i will try to implement a fix myself when i got some spare time. If anybody else would provide a fix, that would be much appreciated.

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

Successfully merging a pull request may close this issue.

1 participant