wernerfred / check_synology

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

Getting "Wrong SNMP PDU digest" when executing a check #16

Open gkasKaR opened 2 years ago

gkasKaR commented 2 years ago

Hello there,

as the captions mentions, I receive an error when executing any check against a Synology NAS (7.0.1-42218 Update 2). On the other hand nwc_health gets a valid response with the same credentials.

wrong_pdu

Am I doing something wrong? Or ist this a bug?

Thanks for reply

wernerfred commented 2 years ago

hey @gkasKaR is this issue still present? Could you try with latest version (@master) as a lot did change in the last few weeks?

amotl commented 2 years ago

Hi there,

maybe this issue is related to #9 in any way? Currently, the protocols are hardcoded to auth_protocol="MD5" and privacy_protocol="AES128", with security_level="auth_with_privacy". Maybe the appliance Synology NAS (7.0.1-42218 Update 2) needs different settings?

https://github.com/wernerfred/check_synology/blob/7f37aa0e33eaabe6b73fc4dd3c80c4af25bb1622/check_synology.py#L46-L54

Other than sharing my thoughts on this topic, I also would like to encourage you to try the latest version of the program.

With kind regards, Andreas.

amotl commented 2 years ago

Hi again,

we have been able to find that the reason for this error is because check_synology does not support SHA as private key protocol, see https://github.com/wernerfred/check_synology/pull/9#issuecomment-1203587365. With the current version of the program, the error message is:

UNKNOWN - Authentication failure (incorrect password, community or key)

With kind regards, Andreas.