Have Dude installed just few days ago, I like it, but still learning myself on how to use it.
I have Synology NAS in my network, and I have noticed disk usage is indicated wrong on the label.
The Dude reports 46% usage, but Synology OS reports 69%, see screenshot.
Did not really understand yet how things work in Dude, but seems like Dude’s function hdd_usage() returns wrong value for Synology…
See picture for device label.
Are there any way how to fix it?
p.s. Have only one volume on Synology.
Do not really sure I had understood you…
Your point is: disk_usage() function is not applicable for NASes and I need to use some Synology-specific snmp oid staff, is this correct?
I don’t know what device_performance () collects. What is the disk value that is used? And memory? It does not seem to be related to the NAS volumes?
.
.
In the NAS itself I find no correlation with the shown values for memory and disk.
Nothing seems to explain the values: AHA found it:
This function shows the % usage for the filesystem “/” , not for the mounted file system “/volume1”. In OID under number ending on 31, not numbers 54,55 and 56
.
.
The values in the OID are correct for all the mounted file systems, and there are many of them (even more detail than in the GUI)
.
Copying OID and put it in the label is simple … http://forum.mikrotik.com/t/device-serial-number-on-dude/127905/1
Attention: Edit the “.3.6” to the correct “1.3.6”
I hope there are enough functions in DUDE to do some math on the values.
Wow! Seems like I have done it! Thank you again!
In my case I’ve used index .51 for “/volume”, works for both my NASes.
Finally, label is: “Volume Usage: [round(oid(“1.3.6.1.2.1.25.2.3.1.6.51”)/oid(“1.3.6.1.2.1.25.2.3.1.5.51”)*100)]%”
Only one minor question, seems like round() function is not working correctly, with no rounding I have something like 43.77bla-bla-bla, with rounding it gives me 43, but I am expecting 44…
No idea how “round” is implemented. If it is just “taking integer value”, then in programming one tweaks it with things like [multiplying with 100 , adding 0.5, INT, divide by 100] to have rounded on 2 decimals.
Thanks for the label written out. Just copied it !
JFYI, have modified labels to fix rounding and to show total volume size…
Here is the label: *Volume Usage: [round(0.5 + oid(“1.3.6.1.2.1.25.2.3.1.6.51”)/oid(“1.3.6.1.2.1.25.2.3.1.5.51”)100)]% of [round(0.5 + oid(“1.3.6.1.2.1.25.2.3.1.5.51”)/1048576/1048576 * oid(“1.3.6.1.2.1.25.2.3.1.4.51”) * 10) / 10]TB
Here how it looks like:
P.S. What does first line report: [device_performance()][Device.ServicesDown] ?
I did not see any relevant parameter, seems like it does not really informative in case of Synology NASes…