Hi everyone, i'm new on the dude, Thanks a lots for the probes thread and so on, it really help me.
I try to make a probe for free space left on disk, but i have a little problem.
This is my probe :
Function:
Name : hdd_gb
Code : (((((oid("1.3.6.1.2.1.25.2.3.1.5.1")-oid("1.3.6.1.2.1.25.2.3.1.6.1"))*oid("1.3.6.1.2.1.25.2.3.1.4.1"))/1024)/1024)/1024)
Probe :
Nom : Free space left
Type : Function
Disponible : hdd_gb()<>"False"
Erreur : if(hdd_gb()<>"False",if(hdd_gb() > 20, "", concatenate(" Free space low C: =", hdd_gb(), "Gb Left")), "Failed to read Drive")
My problem is that i have a result like 19.523645 Gb when the space left is under 20.
But i just want to have 19 Gb.
Someone have an idea ?
Sorry for my english