check_synology icon indicating copy to clipboard operation
check_synology copied to clipboard

Getting "Wrong SNMP PDU digest" when executing a check

Open gkasKaR opened this issue 3 years ago • 3 comments

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

gkasKaR avatar Feb 24 '22 08:02 gkasKaR

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

wernerfred avatar Apr 22 '22 18:04 wernerfred

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 avatar Aug 03 '22 01:08 amotl

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.

amotl avatar Aug 03 '22 22:08 amotl