In the following post I will show how to monitor FreeNAS volumes using Paessler PRTG Network Monitor.
Currently I’m using FreeNAS version 11.3-U2 and Paessler PRTG Network Monitor version 20.3.0.
SNMP OID: 18.104.22.168.4.1.50522.214.171.124.1
First let’s find what is the allocation size unit, for this we will need to run snmpget for OID: 126.96.36.199.4.1.505188.8.131.52.1.3.1
We can use either SNMP Tester utility (can be download from Paessler site) or do snmpwalk on Linux machine.
Now we will use OID 184.108.40.206.4.1.505220.127.116.11.1.4.1 to get the size of the volume:
As you can see the value is: 1946157056, multiple this value in the allocation size unit (4096) will give us 7,971,459,301,376, divide it by 1,000,000,000 and you will get the volume size in GigaByte: 7971, which is 8TB – my current volume size.
Use OID: 18.104.22.168.4.1.50522.214.171.124.1.5.1 to get the used size, and OID: 126.96.36.199.4.1.505188.8.131.52.1.6.1 the get the free available size. Again, we will need to multiple the values in the allocation unit size and divide the result in 1,000,000,000 the get it in GBytes.
Now open PRTG desktop and add new sensor to your FreeNAS device, in the search line type “OID” and select SNMP Custom:
Type in the sensor name (Volume Use), and the OID value: 184.108.40.206.4.1.505220.127.116.11.1.5.1:
Scroll down, type Channel Name (Used In GB), Unit string (GBytes), in multiplication type the allocation unit (4096) and in Division type 1,000,000,000:
Repeat the same for OID 18.104.22.168.4.1.50522.214.171.124.1.6.1 to get the free available size in GBytes:
Now you got 2 new sensors, one which show how much GByte are used and the other how much free GBytes you got for your FreeNAS.