Skip to content

Storage check throws 'NOSUCHINSTANCE'  #45

Description

@ExeLeNtCrypt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions