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

Synology DiskStation SNMPv3: returned disk bad sector value is -1, template data type is unsigned #380

Open
szpeter80 opened this issue Jul 28, 2024 · 0 comments

Comments

@szpeter80
Copy link
Contributor

I have a DS920+ with latest DSM released.
I'm using Zabbix 7.0.1 with the latest version of the template "Synology DiskStation SNMPv3" from 6.4

There is a discovery rule "Synology Disk(s)" which discovers physical disks plugged to the chassis.
It has an item prototype '{#SNMPVALUE} Bad sectors count'

The data type for this is unsigned integer, but my box returns "-1" as a value, so the intem is in error state with the message:

Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "-1"

Two solutions come to my mind:

  1. Add a preprocessing step to turn everything below zero to zero
  2. change the data type to signed integer

What would be the correct resolution ?

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

No branches or pull requests

1 participant