PitWenkin / check_snmp_synology

Check Synology via SNMP
1 stars 1 forks source link

Solving the problem having more than 9 volumes #4

Open FabianZihlmann opened 3 weeks ago

FabianZihlmann commented 3 weeks ago

Change the line 434, then the code is working with more than 9 volumes storageID[$i]=$(echo "$syno_diskspace" | grep "= \"\?/${storageName[$i]}\"\??" | cut -d "=" -f1 | rev | cut -d "." -f1 | rev)

=> additional ?

Hope that helps other people as well. Thanks for your work Best regards Fabian

PitWenkin commented 2 weeks ago

Hi @FabianZihlmann, I will take a look at this, but I currently have no environment with more then 5 volumes …

FabianZihlmann commented 2 weeks ago

With the codeline above it works. Feel free to update the code. Best regards Fabian