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

QNAP Template: QNAPs with SSD M2 support do not display HDDINDEX correctly on hdd.state key #313

Open
mguarienti opened this issue Dec 5, 2023 · 0 comments

Comments

@mguarienti
Copy link
Contributor

I'm testing the QNAP TS-873A using template_qnap_(snmpv2), which has the first two slots dedicated to SSD M2. However, there seems to be a bug with #HDDINDEX in the template, which is not displaying its correct state:

snmp_oid: '1.3.6.1.4.1.24681.1.3.11.1.4.{#HDDINDEX}'
key: 'hdd.state[{#HDDINDEX}]'

image

Testing with snmpget:
snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.1 (this is the m2 ssd slot (unused))
iso.3.6.1.4.1.24681.1.3.11.1.4.1 = INTEGER: -5
snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.2 (this is the m2 ssd slot (unused))
iso.3.6.1.4.1.24681.1.3.11.1.4.2 = INTEGER: -5

snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.3 (THIS IS THE 10TB HDD 1)
iso.3.6.1.4.1.24681.1.3.11.1.4.3 = INTEGER: 0
snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.4 (THIS IS THE 10TB HDD 2)
iso.3.6.1.4.1.24681.1.3.11.1.4.4 = INTEGER: 0

snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.5 (another unused slot)
iso.3.6.1.4.1.24681.1.3.11.1.4.5 = INTEGER: -5
snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.6 (another unused slot)
iso.3.6.1.4.1.24681.1.3.11.1.4.6 = INTEGER: -5
snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.7 (another unused slot)
iso.3.6.1.4.1.24681.1.3.11.1.4.7 = INTEGER: -5
snmpget -v2c -c public 10.182.100.3 1.3.6.1.4.1.24681.1.3.11.1.4.8 (another unused slot)
iso.3.6.1.4.1.24681.1.3.11.1.4.8 = INTEGER: -5

I'm getting INTEGER: 0 for HDDINDEX in all other keys (so much so that I can collect data as in print), but only for the key: 'hdd.state[{#HDDINDEX}]' the value displayed is -5, probably because it is getting the code from the first slots, which are the M2 SSDs (which I don't use).

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