how to use two if statemens in probe

Hello,
i monitoring linux server with mounted partition. At the moment i monitoring disk usage:
if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100<75,“”,“Disk usage > 75%”)

and i want to monitor its status when it does not mount sucessfully:
if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100>0,“”,“Mount /backup partition”)

How i can combine to one function? Thank you for answers.

Try this:

if((oid("1.3.6.1.2.1.25.2.3.1.6.33")/oid("1.3.6.1.2.1.25.2.3.1.5.33"))*100>0,if((oid("1.3.6.1.2.1.25.2.3.1.6.33")/oid("1.3.6.1.2.1.25.2.3.1.5.33"))*100<75,"","Disk usage > 75%"),"Mount /backup partition")

ok, your suggested if statement works, but i have another problem on Dude 4.0beta3.
I have probe with name “Disk /backup Usage >75%”
if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100>0,if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100<75,“”,“Disk usage > 75%”),“Mount /backup partition”)
When i unmount /backup partition and open Services tag on pvt-bac01 server, on Problem field it writes “Mount /backup partition” but on server image on map it writes probes name. And this strange working i have with other probes too. maybe its a bug of 4.0beta3 version ? Any suggestions ?
bad problem name.png

I use Dude 4b2 and what you are seeing is tha same as what I see. I believe this is the normal behavior. If a probe goes into error it is listed on the device it is associated with and the device goes orange (or red if all probes are in error). You then have to open the device to see the error messages for each probe.

You can change what information is displayed on th edevice icon by right-clicking it and selecting the Appearance option. Not sure if you can display the info you wish to put there but it is probably possible with a bit of experimentation.

oo, so this is how it works…thank you for answer. This is how i solve this.
1.Created new function “backup_partition” and adde code:
if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100>0,if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100<75,“”,“Disk usage > 75%”),“Mount /backup partition”)

  1. open my item on map apearance and added [backup_partition()]
  2. Named my probe “/backup problem”
    Name: Problem
    Type: Function
    Available: if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100>0, 1, -1)
    Error (i know i can take somehow value from function using its name backup_partition(), dont know yet :slight_smile:):
    if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100>0,if((oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100<75,“”,“Disk usage > 75%”),“Mount /backup partition”)
    Value: oid(“1.3.6.1.2.1.25.2.3.1.6.33”)/oid(“1.3.6.1.2.1.25.2.3.1.5.33”))*100

And now, when my /backup partition umount i have a probe name on item with error from function.
/backup problem Mount /backup partition or Disk usage > 75%

Thanks :slight_smile: