wernerfred / check_synology

This plugin will check a lot of different values on your Synology DiskStation.
MIT License
17 stars 25 forks source link

Update check_synology.py #52

Closed dropthemic closed 8 months ago

dropthemic commented 10 months ago

When running snmpwalk on synology server v7.2-64570, the item.oid returns the name instead of string on some calls.

Expected: <SNMPVariable value='/volume1' (oid='iso.3.6.1.2.1.25.2.3.1.3.53', oid_index='', snmp_type='OCTETSTR')>

Received: <SNMPVariable value='/volume1' (oid='hrStorageDescr', oid_index='53', snmp_type='OCTETSTR')>

Fixed code to use oid_index or the oid

wernerfred commented 8 months ago

@all-contributors add @dropthemic for code

allcontributors[bot] commented 8 months ago

@wernerfred

I've put up a pull request to add @dropthemic! :tada: