community-templates
community-templates copied to clipboard
template_synology_diskstation Disk size/usage/percentage incorrect
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?
In the preprocessing step: total volume and occupied, you need to change the multiplier in JavaScript
return (parseInt(value) * parseInt("{#IFUNIT}"));