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

Update check_synology.py #52

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

dropthemic
Copy link
Contributor

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

Fixed oid showing name instead of oid numerical values
Copy link
Owner

@wernerfred wernerfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wernerfred wernerfred merged commit 1e704df into wernerfred:master Jan 8, 2024
@wernerfred
Copy link
Owner

@all-contributors add @dropthemic for code

Copy link
Contributor

@wernerfred

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

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 this pull request may close these issues.

None yet

2 participants