community-templates icon indicating copy to clipboard operation
community-templates copied to clipboard

template_synology_diskstation Disk size/usage/percentage incorrect

Open matttb opened this issue 2 years ago • 1 comments

HI This script incorrectly pulls the correct sizes from my Synology NAS. On a 60TB disk named /volume1it only reports 7TB. However if I SNMPWALK using the OID from Synology for disk info, I get the correct raw values:

snmpwalk -v2c -c public ....* .1.3.6.1.4.1.6574.3 iso.3.6.1.4.1.6574.3.1.1.1.0 = INTEGER: 0 iso.3.6.1.4.1.6574.3.1.1.2.0 = STRING: "Volume 1" iso.3.6.1.4.1.6574.3.1.1.3.0 = INTEGER: 1 iso.3.6.1.4.1.6574.3.1.1.4.0 = Counter64: 2423850156032 iso.3.6.1.4.1.6574.3.1.1.5.0 = Counter64: 65697681559552

The script seems to be going a long way round when the values are presented on this ID in Bytes. Could you please correct this?

matttb avatar Apr 11 '22 13:04 matttb

In the preprocessing step: total volume and occupied, you need to change the multiplier in JavaScript return (parseInt(value) * parseInt("{#IFUNIT}"));

изображение

k008 avatar Jul 04 '22 14:07 k008