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

Storage check throws 'NOSUCHINSTANCE' #45

Open
ExeLeNtCrypt opened this issue Oct 12, 2022 · 0 comments
Open

Storage check throws 'NOSUCHINSTANCE' #45

ExeLeNtCrypt opened this issue Oct 12, 2022 · 0 comments

Comments

@ExeLeNtCrypt
Copy link

Hello,
First, thank you for this great check script. I am using it on the models DS918+ and DS920+.

The storage check did not work for me and gave me following error:
File "./check_synology", line 202, in <module> storage_size = int((int(allocation_units) * int(size)) / 1000000000) ValueError: invalid literal for int() with base 10: 'NOSUCHINSTANCE'

this is because we get an invalid or more over-useless value for oid in line 193.

i = item.oid.split('.')[-1]

So it simply needs to be changed to:
i = item.oid_index.split('.')[-1]

I hope this can help somebody else.

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