Monitoring of the remained volume on local disks

Hello!

Question: How in The Dude 3.6 to adjust monitoring of the remained volume on local disks of a C and D?

What do you want to adjust?
Is your device capable to report used disk via SNMP?

For example, is ready function hdd_usage () in The Dude which shows what percent of the HDD is filled. Also it is function shows me what percent it is occupied on a system disk. And I want besides to watch of volume of local disk “D” via SNMP.

On my computer I have found the following:
iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr.1: C:
iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr.2: D:
iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr.3: E:
iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr.4: Virtual Memory
iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr.5: Physical Memory

But I don’t know as it to use… (

Check in the probe thread, there is a disk utilization probe that is very complete or use disk2 below, disk1 is here as early example.

This is a generic disk1 probe…
if((oid(“1.3.6.1.2.1.25.2.3.1.6.1”,10,5)/oid(“1.3.6.1.2.1.25.2.3.1.5.1”,10,5))*100>0, 1, 0)
if((oid(“1.3.6.1.2.1.25.2.3.1.6.1”,10,5)/oid(“1.3.6.1.2.1.25.2.3.1.5.1”,10,5)) *100 < 80, “”, “Disk usage > 96%%”)
(oid(“1.3.6.1.2.1.25.2.3.1.6.1”,10,5)/oid(“1.3.6.1.2.1.25.2.3.1.5.1”,10,5)) *100
Disk1 - Probe_2011-08-04_08-46-39.png
Here is a more complex disk2 probe based on a function and a probe… still the disk probes in the probe thread are slightly different, I thought they were better but alas memory not serve me…
function
if(array_size(oid_column(“1.3.6.1.2.1.25.2.3.1.6”,10,5)),round((oid(“1.3.6.1.2.1.25.2.3.1.6.2”,10,5)/oid(“1.3.6.1.2.1.25.2.3.1.5.2”,10,5))*100),“False”)
disk2test - Function_2011-08-04_08-49-41.png
Probe
if(disk2test()<>“False”,if(disk2test() < 80, “”, concatenate("Warning: Disk2 = ", disk2test(), “%”)), “Failed read Disk2”)
Disk2 - Probe_2011-08-04_08-48-18.png
Examine the oid you can see you just add 1 to get the next disk, I created disk1 through disk5 and added them manually where they made sense.
You should base all your probes on example disk2 it is much nicer than disk1.
HTH,
Lebowski

Thanks! I used disk1. Because disk2 shows an error “parse failed”.

Yeah you need to build both a function and a probe… Notice the function “disk2test” is called from the probe?

Anyhow at least you have a disk probe :slight_smile:
Lebowski