
I have seen many instructions for Dude from Mikrotik on the internet, but I couldn't find information on how to properly write and use scripts and functions. Now that I've partially figured it out, I'm ready to share with you. This won't include installation and minimal configuration details, as there are many detailed instructions available. Also, I won't discuss why I use Dude specifically, as this article isn’t for that. Let's proceed.
I have a monitoring wall that’s not finished; there will be nine monitors. Once it's complete, I will write a separate article.

I started gathering the necessary cards. In one of the Dude instructions, I saw that theoretically, it's possible to organize disk monitoring on servers using SNMP. We'll analyze the script using this example.
This is the final result.

I'll write in small pieces, and for those who are wondering, "Where's the final result?" at the bottom are the complete scripts for monitoring.
So the logic is as follows: we check for the disk's presence by OID. If it exists, we get the capacity, used space, calculate the free space, and if it's below a set threshold, we start alerting.
Starting simply. And the simplest way to check the capacity is to insert our server direct disk check command. Our server now looks like this.

You can insert the command by right-clicking on our server, selecting "Appearance" from the menu, and in the open window, we will be interested in the "Label" field. Let's insert the command there. For everything to work correctly, you need to put square brackets [ ] at the beginning and end of the command.
We use the following command [oid("1.3.6.1.2.1.25.2.3.1.5.1")*oid("1.3.6.1.2.1.25.2.3.1.4.1")/1024/1024/1024]. The output will look like this.

In simple terms, an OID is a name assigned to some hardware based on its type. More technically, here’s how it is — .
We've got that sorted out. Now, the obtained numbers represent the disk volume in GB without rounding.
Now we need to add conditions. In Mikrotik, it works like this: if(condition)=value, do this, else do that. In our case, we write it like this:
[if(oid("1.3.6.1.2.1.25.2.3.1.5.1")=0,"1",oid("1.3.6.1.2.1.25.2.3.1.5.1")
*oid("1.3.6.1.2.1.25.2.3.1.4.1")/1024/1024/1024)]
We get this string if oid = 0, that is, the disk is absent or empty, output 1; otherwise, get the disk space. Instead of 1, anything can be used, but for the example, it needs to be like this. Let’s continue. In the next code, only round for rounding has been added.
Code with added round
[if(oid("1.3.6.1.2.1.25.2.3.1.5.1")=0,"1",
round(oid("1.3.6.1.2.1.25.2.3.1.5.1")*oid("1.3.6.1.2.1.25.2.3.1.4.1")/1024/1024/1024))]

To combine commands in MikroTik, concatenate is used. The application is quite unexpected; after all, it’s not Excel, but it only worked with this. If anyone can achieve the same thing with simpler code, please write; it will be interesting to discuss. PS: First, familiarize yourself with the obtained results completely to avoid misunderstandings.
Code with concatenate
[if(oid("1.3.6.1.2.1.25.2.3.1.5.1")=0,"",
concatenate("C: ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.1")*oid("1.3.6.1.2.1.25.2.3.1.4.1")/1024/1024/1024),"Gb"
," / ", round(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),"Gb ","/ ",
round(((((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),"Gb")))]

With this code, we combined all available information about disk memory. Size/used/free in GB. It seems obvious and clear, but what about the other disks? Should code be added for each disk? There can be many disks, and that’s not why we are working—to write this all manually every time. I used functions. Initially, I faced problems; when adding code consecutively, you can add no more than 10 times in one function. Let’s not throw shoes; MikroTik is not familiar with loops, unfortunately. Concatenation will save us. In the functions tab, we will create a new one; it looks like this:
Function for viewing disk space in real-time
concatenate(concatenate(concatenate(if(oid("1.3.6.1.2.1.25.2.3.1.5.1")=0,"",
concatenate("C: ",round(((((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),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.1")*oid("1.3.6.1.2.1.25.2.3.1.4.1")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.2")=0,"",
concatenate("D: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.2")-oid("1.3.6.1.2.1.25.2.3.1.6.2"))*oid("1.3.6.1.2.1.25.2.3.1.4.2"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.2")*oid("1.3.6.1.2.1.25.2.3.1.4.2")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.3")=0,"",
concatenate("E: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.3")-oid("1.3.6.1.2.1.25.2.3.1.6.3"))*oid("1.3.6.1.2.1.25.2.3.1.4.3"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.3")*oid("1.3.6.1.2.1.25.2.3.1.4.3")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.4")=0,"",
concatenate("F: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.4")-oid("1.3.6.1.2.1.25.2.3.1.6.4"))*oid("1.3.6.1.2.1.25.2.3.1.4.4"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.4")*oid("1.3.6.1.2.1.25.2.3.1.4.4")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.5")=0,"",
concatenate("G: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.5")-oid("1.3.6.1.2.1.25.2.3.1.6.5"))*oid("1.3.6.1.2.1.25.2.3.1.4.5"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.5")*oid("1.3.6.1.2.1.25.2.3.1.4.5")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.6")=0,"",
concatenate("H: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.6")-oid("1.3.6.1.2.1.25.2.3.1.6.6"))*oid("1.3.6.1.2.1.25.2.3.1.4.6"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.6")*oid("1.3.6.1.2.1.25.2.3.1.4.6")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.7")=0,"",
concatenate("I: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.7")-oid("1.3.6.1.2.1.25.2.3.1.6.7"))*oid("1.3.6.1.2.1.25.2.3.1.4.7"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.7")*oid("1.3.6.1.2.1.25.2.3.1.4.7")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.8")=0,"",
concatenate("G: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.8")-oid("1.3.6.1.2.1.25.2.3.1.6.8"))*oid("1.3.6.1.2.1.25.2.3.1.4.8"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.8")*oid("1.3.6.1.2.1.25.2.3.1.4.8")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.9")=0,"",
concatenate("J: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.9")-oid("1.3.6.1.2.1.25.2.3.1.6.9"))*oid("1.3.6.1.2.1.25.2.3.1.4.9"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.9")*oid("1.3.6.1.2.1.25.2.3.1.4.9")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.10")=0,"",
concatenate("K: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.10")-oid("1.3.6.1.2.1.25.2.3.1.6.10"))*oid("1.3.6.1.2.1.25.2.3.1.4.10"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.10")*oid("1.3.6.1.2.1.25.2.3.1.4.10")\/1024\/1024\/1024),"Gb
")))),
(concatenate(if(oid("1.3.6.1.2.1.25.2.3.1.5.11")=0,"",
concatenate("C: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.11")-oid("1.3.6.1.2.1.25.2.3.1.6.11"))*oid("1.3.6.1.2.1.25.2.3.1.4.11"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.11")*oid("1.3.6.1.2.1.25.2.3.1.4.11")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.12")=0,"",
concatenate("D: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.12")-oid("1.3.6.1.2.1.25.2.3.1.6.12"))*oid("1.3.6.1.2.1.25.2.3.1.4.12"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.12")*oid("1.3.6.1.2.1.25.2.3.1.4.12")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.13")=0,"",
concatenate("E: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.13")-oid("1.3.6.1.2.1.25.2.3.1.6.13"))*oid("1.3.6.1.2.1.25.2.3.1.4.13"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.13")*oid("1.3.6.1.2.1.25.2.3.1.4.13")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.14")=0,"",
concatenate("F: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.14") - oid("1.3.6.1.2.1.25.2.3.1.6.14")) * oid("1.3.6.1.2.1.25.2.3.1.4.14")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.14") * oid("1.3.6.1.2.1.25.2.3.1.4.14") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.15") = 0, "",
concatenate("G: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.15") - oid("1.3.6.1.2.1.25.2.3.1.6.15")) * oid("1.3.6.1.2.1.25.2.3.1.4.15")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.15") * oid("1.3.6.1.2.1.25.2.3.1.4.15") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.16") = 0, "",
concatenate("H: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.16") - oid("1.3.6.1.2.1.25.2.3.1.6.16")) * oid("1.3.6.1.2.1.25.2.3.1.4.16")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.16") * oid("1.3.6.1.2.1.25.2.3.1.4.16") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.17") = 0, "",
concatenate("I: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.17") - oid("1.3.6.1.2.1.25.2.3.1.6.17")) * oid("1.3.6.1.2.1.25.2.3.1.4.17")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.17") * oid("1.3.6.1.2.1.25.2.3.1.4.17") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.18") = 0, "",
concatenate("G: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.18") - oid("1.3.6.1.2.1.25.2.3.1.6.18")) * oid("1.3.6.1.2.1.25.2.3.1.4.18")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.18") * oid("1.3.6.1.2.1.25.2.3.1.4.18") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.19") = 0, "",
concatenate("J: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.19") - oid("1.3.6.1.2.1.25.2.3.1.6.19")) * oid("1.3.6.1.2.1.25.2.3.1.4.19")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.19") * oid("1.3.6.1.2.1.25.2.3.1.4.19") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.20") = 0, "",
concatenate("K: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.20") - oid("1.3.6.1.2.1.25.2.3.1.6.20")) * oid("1.3.6.1.2.1.25.2.3.1.4.20")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.20") * oid("1.3.6.1.2.1.25.2.3.1.4.20") / 1024 / 1024 / 1024), "Gb"
")))))),
(concatenate(if(oid("1.3.6.1.2.1.25.2.3.1.5.21") = 0, "",
concatenate("W: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.21") - oid("1.3.6.1.2.1.25.2.3.1.6.21")) * oid("1.3.6.1.2.1.25.2.3.1.4.21")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.21") * oid("1.3.6.1.2.1.25.2.3.1.4.21") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.22") = 0, "",
concatenate("X: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.22") - oid("1.3.6.1.2.1.25.2.3.1.6.22")) * oid("1.3.6.1.2.1.25.2.3.1.4.22")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.22") * oid("1.3.6.1.2.1.25.2.3.1.4.22") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.23") = 0, "",
concatenate("Y: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.23") - oid("1.3.6.1.2.1.25.2.3.1.6.23")) * oid("1.3.6.1.2.1.25.2.3.1.4.23")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.23") * oid("1.3.6.1.2.1.25.2.3.1.4.23") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.24") = 0, "",
concatenate("Z: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.24") - oid("1.3.6.1.2.1.25.2.3.1.6.24")) * oid("1.3.6.1.2.1.25.2.3.1.4.24")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.24") * oid("1.3.6.1.2.1.25.2.3.1.4.24") / 1024 / 1024 / 1024), "Gb"
"))))))
Code is added to the function without square brackets. Thus, by incrementing oid by one, we will check all theoretically possible disks in the system. It should be noted that the disk letters are written in standard order; if your first disk letter is W, then for this hardware, everything will have to be done manually or through a separate function My_Funny_Computer. In the example, the beginning of the path; everyone can adjust it to their needs. Okay, let’s check. We take the name of the created function, enclose it in square brackets, put parentheses at the end, and add instead of the code in the Label tab. Example: [About_PC()]


Now we can see and enjoy, but our task is different: to automate the process.
For this, we need a function that will check the disks and provide information to the probe. We make a function, I will call it Monitor_Disc_Serv; its essence is this: if oid is not equal to 0, we will check the disk, and if the memory is more than 50 GB, we return 1; otherwise, 0.
Disk check function
if(oid("1.3.6.1.2.1.25.2.3.1.5.1")0,if(round(((((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)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.2")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.2")-oid("1.3.6.1.2.1.25.2.3.1.6.2"))*oid("1.3.6.1.2.1.25.2.3.1.4.2"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.3")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.3")-oid("1.3.6.1.2.1.25.2.3.1.6.3"))*oid("1.3.6.1.2.1.25.2.3.1.4.3"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.4")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.4")-oid("1.3.6.1.2.1.25.2.3.1.6.4"))*oid("1.3.6.1.2.1.25.2.3.1.4.4"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.5")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.5")-oid("1.3.6.1.2.1.25.2.3.1.6.5"))*oid("1.3.6.1.2.1.25.2.3.1.4.5"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.6")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.6")-oid("1.3.6.1.2.1.25.2.3.1.6.6"))*oid("1.3.6.1.2.1.25.2.3.1.4.6"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.7")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.7")-oid("1.3.6.1.2.1.25.2.3.1.6.7"))*oid("1.3.6.1.2.1.25.2.3.1.4.7"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.8")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.8")-oid("1.3.6.1.2.1.25.2.3.1.6.8"))*oid("1.3.6.1.2.1.25.2.3.1.4.8"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.9")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.9")-oid("1.3.6.1.2.1.25.2.3.1.6.9"))*oid("1.3.6.1.2.1.25.2.3.1.4.9"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.10")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.10")-oid("1.3.6.1.2.1.25.2.3.1.6.10"))*oid("1.3.6.1.2.1.25.2.3.1.4.10"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.11")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.11")-oid("1.3.6.1.2.1.25.2.3.1.6.11"))*oid("1.3.6.1.2.1.25.2.3.1.4.11"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.12")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.12")-oid("1.3.6.1.2.1.25.2.3.1.6.12"))*oid("1.3.6.1.2.1.25.2.3.1.4.12"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.13")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.13")-oid("1.3.6.1.2.1.25.2.3.1.6.13"))*oid("1.3.6.1.2.1.25.2.3.1.4.13"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.14")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.14")-oid("1.3.6.1.2.1.25.2.3.1.6.14"))*oid("1.3.6.1.2.1.25.2.3.1.4.14"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.15")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.15")-oid("1.3.6.1.2.1.25.2.3.1.6.15"))*oid("1.3.6.1.2.1.25.2.3.1.4.15"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.16")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.16")-oid("1.3.6.1.2.1.25.2.3.1.6.16"))*oid("1.3.6.1.2.1.25.2.3.1.4.16"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.17")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.17")-oid("1.3.6.1.2.1.25.2.3.1.6.17"))*oid("1.3.6.1.2.1.25.2.3.1.4.17"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.18")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.18")-oid("1.3.6.1.2.1.25.2.3.1.6.18"))*oid("1.3.6.1.2.1.25.2.3.1.4.18"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.19")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.19")-oid("1.3.6.1.2.1.25.2.3.1.6.19"))*oid("1.3.6.1.2.1.25.2.3.1.4.19"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.20")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.20")-oid("1.3.6.1.2.1.25.2.3.1.6.20"))*oid("1.3.6.1.2.1.25.2.3.1.4.20"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.21")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.21")-oid("1.3.6.1.2.1.25.2.3.1.6.21"))*oid("1.3.6.1.2.1.25.2.3.1.4.21"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.22")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.22")-oid("1.3.6.1.2.1.25.2.3.1.6.22"))*oid("1.3.6.1.2.1.25.2.3.1.4.22"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.23")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.23")-oid("1.3.6.1.2.1.25.2.3.1.6.23"))*oid("1.3.6.1.2.1.25.2.3.1.4.23"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.24")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.24")-oid("1.3.6.1.2.1.25.2.3.1.6.24"))*oid("1.3.6.1.2.1.25.2.3.1.4.24"))/1024)/1024)/1024)>50,1,0),1)
Okay, we have the function; let's process its value. In the Probes tab, we create a new one that looks like this:

In the Type field, select Function, indicating that we will process the value obtained from the function.
Monitor_Disc_Serv() = 1 in the Available tab means that if the Monitor_Disc_Serv function returns 1, everything is fine.
Error triggers if Available returns an error, that is, whenever its value is not equal to 1.
For the probe to work correctly, we write everything transparently and obviously: if(Monitor_Disc_Serv()=1,"", "Something happened") if the function returns 1, then there is nothing to do, otherwise output a string in the alarm. Now, to make this work, we need to add the configured probe to our server. For this, we will open the settings, go to the Services tab, and add the probe:

It has already triggered for me; this is what the alarm I set up looks like, you can set not 50 GB but as much as you need.

In the end, we got two functions. The first is for viewing disk space in real time and the second for sending information to the probe. And one probe as well.
Next, you can attach SMS or email notifications, beeping, seagull cries over the sea (I haven't checked, who will do it, write, it will be interesting). I think we can add something else here, but the most important things are already present. Next, we plan to hang the remaining monitors, set up all screens for Dude, and add Zabbix to some of these monitors. I'll tell you about the PC that handled nine monitors, the rack for building it, and what came of it when we finish. For now, we're moving the server room, and I wrote this article while I still remember something.
Good luck to everyone.
As promised.
Function for viewing disk space in real-time
concatenate(concatenate(concatenate(if(oid("1.3.6.1.2.1.25.2.3.1.5.1")=0,"",
concatenate("C: ",round(((((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),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.1")*oid("1.3.6.1.2.1.25.2.3.1.4.1")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.2")=0,"",
concatenate("D: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.2")-oid("1.3.6.1.2.1.25.2.3.1.6.2"))*oid("1.3.6.1.2.1.25.2.3.1.4.2"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.2")*oid("1.3.6.1.2.1.25.2.3.1.4.2")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.3")=0,"",
concatenate("E: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.3")-oid("1.3.6.1.2.1.25.2.3.1.6.3"))*oid("1.3.6.1.2.1.25.2.3.1.4.3"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.3")*oid("1.3.6.1.2.1.25.2.3.1.4.3")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.4")=0,"",
concatenate("F: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.4")-oid("1.3.6.1.2.1.25.2.3.1.6.4"))*oid("1.3.6.1.2.1.25.2.3.1.4.4"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.4")*oid("1.3.6.1.2.1.25.2.3.1.4.4")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.5")=0,"",
concatenate("G: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.5")-oid("1.3.6.1.2.1.25.2.3.1.6.5"))*oid("1.3.6.1.2.1.25.2.3.1.4.5"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.5")*oid("1.3.6.1.2.1.25.2.3.1.4.5")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.6")=0,"",
concatenate("H: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.6")-oid("1.3.6.1.2.1.25.2.3.1.6.6"))*oid("1.3.6.1.2.1.25.2.3.1.4.6"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.6")*oid("1.3.6.1.2.1.25.2.3.1.4.6")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.7")=0,"",
concatenate("I: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.7")-oid("1.3.6.1.2.1.25.2.3.1.6.7"))*oid("1.3.6.1.2.1.25.2.3.1.4.7"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.7")*oid("1.3.6.1.2.1.25.2.3.1.4.7")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.8")=0,"",
concatenate("G: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.8")-oid("1.3.6.1.2.1.25.2.3.1.6.8"))*oid("1.3.6.1.2.1.25.2.3.1.4.8"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.8")*oid("1.3.6.1.2.1.25.2.3.1.4.8")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.9")=0,"",
concatenate("J: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.9")-oid("1.3.6.1.2.1.25.2.3.1.6.9"))*oid("1.3.6.1.2.1.25.2.3.1.4.9"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.9")*oid("1.3.6.1.2.1.25.2.3.1.4.9")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.10")=0,"",
concatenate("K: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.10")-oid("1.3.6.1.2.1.25.2.3.1.6.10"))*oid("1.3.6.1.2.1.25.2.3.1.4.10"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.10")*oid("1.3.6.1.2.1.25.2.3.1.4.10")\/1024\/1024\/1024),"Gb
")))),
(concatenate(if(oid("1.3.6.1.2.1.25.2.3.1.5.11")=0,"",
concatenate("C: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.11")-oid("1.3.6.1.2.1.25.2.3.1.6.11"))*oid("1.3.6.1.2.1.25.2.3.1.4.11"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.11")*oid("1.3.6.1.2.1.25.2.3.1.4.11")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.12")=0,"",
concatenate("D: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.12")-oid("1.3.6.1.2.1.25.2.3.1.6.12"))*oid("1.3.6.1.2.1.25.2.3.1.4.12"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.12")*oid("1.3.6.1.2.1.25.2.3.1.4.12")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.13")=0,"",
concatenate("E: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.13")-oid("1.3.6.1.2.1.25.2.3.1.6.13"))*oid("1.3.6.1.2.1.25.2.3.1.4.13"))\/1024)\/1024)\/1024),"Gb"
," ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.13")*oid("1.3.6.1.2.1.25.2.3.1.4.13")\/1024\/1024\/1024),"Gb
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.14")=0,"",
concatenate("F: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.14") - oid("1.3.6.1.2.1.25.2.3.1.6.14")) * oid("1.3.6.1.2.1.25.2.3.1.4.14")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.14") * oid("1.3.6.1.2.1.25.2.3.1.4.14") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.15") = 0, "",
concatenate("G: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.15") - oid("1.3.6.1.2.1.25.2.3.1.6.15")) * oid("1.3.6.1.2.1.25.2.3.1.4.15")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.15") * oid("1.3.6.1.2.1.25.2.3.1.4.15") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.16") = 0, "",
concatenate("H: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.16") - oid("1.3.6.1.2.1.25.2.3.1.6.16")) * oid("1.3.6.1.2.1.25.2.3.1.4.16")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.16") * oid("1.3.6.1.2.1.25.2.3.1.4.16") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.17") = 0, "",
concatenate("I: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.17") - oid("1.3.6.1.2.1.25.2.3.1.6.17")) * oid("1.3.6.1.2.1.25.2.3.1.4.17")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.17") * oid("1.3.6.1.2.1.25.2.3.1.4.17") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.18") = 0, "",
concatenate("G: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.18") - oid("1.3.6.1.2.1.25.2.3.1.6.18")) * oid("1.3.6.1.2.1.25.2.3.1.4.18")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.18") * oid("1.3.6.1.2.1.25.2.3.1.4.18") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.19") = 0, "",
concatenate("J: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.19") - oid("1.3.6.1.2.1.25.2.3.1.6.19")) * oid("1.3.6.1.2.1.25.2.3.1.4.19")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.19") * oid("1.3.6.1.2.1.25.2.3.1.4.19") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.20") = 0, "",
concatenate("K: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.20") - oid("1.3.6.1.2.1.25.2.3.1.6.20")) * oid("1.3.6.1.2.1.25.2.3.1.4.20")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.20") * oid("1.3.6.1.2.1.25.2.3.1.4.20") / 1024 / 1024 / 1024), "Gb"
")))))),
(concatenate(if(oid("1.3.6.1.2.1.25.2.3.1.5.21") = 0, "",
concatenate("W: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.21") - oid("1.3.6.1.2.1.25.2.3.1.6.21")) * oid("1.3.6.1.2.1.25.2.3.1.4.21")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.21") * oid("1.3.6.1.2.1.25.2.3.1.4.21") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.22") = 0, "",
concatenate("X: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.22") - oid("1.3.6.1.2.1.25.2.3.1.6.22")) * oid("1.3.6.1.2.1.25.2.3.1.4.22")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.22") * oid("1.3.6.1.2.1.25.2.3.1.4.22") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.23") = 0, "",
concatenate("Y: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.23") - oid("1.3.6.1.2.1.25.2.3.1.6.23")) * oid("1.3.6.1.2.1.25.2.3.1.4.23")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.23") * oid("1.3.6.1.2.1.25.2.3.1.4.23") / 1024 / 1024 / 1024), "Gb"
"))),
if(oid("1.3.6.1.2.1.25.2.3.1.5.24") = 0, "",
concatenate("Z: ", round(((((oid("1.3.6.1.2.1.25.2.3.1.5.24") - oid("1.3.6.1.2.1.25.2.3.1.6.24")) * oid("1.3.6.1.2.1.25.2.3.1.4.24")) / 1024) / 1024) / 1024), "Gb"
, " / ", (round(oid("1.3.6.1.2.1.25.2.3.1.5.24") * oid("1.3.6.1.2.1.25.2.3.1.4.24") / 1024 / 1024 / 1024), "Gb"
"))))))
Function for sending to the probe
if(oid("1.3.6.1.2.1.25.2.3.1.5.1")0,if(round(((((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)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.2")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.2")-oid("1.3.6.1.2.1.25.2.3.1.6.2"))*oid("1.3.6.1.2.1.25.2.3.1.4.2"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.3")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.3")-oid("1.3.6.1.2.1.25.2.3.1.6.3"))*oid("1.3.6.1.2.1.25.2.3.1.4.3"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.4")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.4")-oid("1.3.6.1.2.1.25.2.3.1.6.4"))*oid("1.3.6.1.2.1.25.2.3.1.4.4"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.5")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.5")-oid("1.3.6.1.2.1.25.2.3.1.6.5"))*oid("1.3.6.1.2.1.25.2.3.1.4.5"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.6")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.6")-oid("1.3.6.1.2.1.25.2.3.1.6.6"))*oid("1.3.6.1.2.1.25.2.3.1.4.6"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.7")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.7")-oid("1.3.6.1.2.1.25.2.3.1.6.7"))*oid("1.3.6.1.2.1.25.2.3.1.4.7"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.8")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.8")-oid("1.3.6.1.2.1.25.2.3.1.6.8"))*oid("1.3.6.1.2.1.25.2.3.1.4.8"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.9")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.9")-oid("1.3.6.1.2.1.25.2.3.1.6.9"))*oid("1.3.6.1.2.1.25.2.3.1.4.9"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.10")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.10")-oid("1.3.6.1.2.1.25.2.3.1.6.10"))*oid("1.3.6.1.2.1.25.2.3.1.4.10"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.11")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.11")-oid("1.3.6.1.2.1.25.2.3.1.6.11"))*oid("1.3.6.1.2.1.25.2.3.1.4.11"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.12")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.12")-oid("1.3.6.1.2.1.25.2.3.1.6.12"))*oid("1.3.6.1.2.1.25.2.3.1.4.12"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.13")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.13")-oid("1.3.6.1.2.1.25.2.3.1.6.13"))*oid("1.3.6.1.2.1.25.2.3.1.4.13"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.14")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.14")-oid("1.3.6.1.2.1.25.2.3.1.6.14"))*oid("1.3.6.1.2.1.25.2.3.1.4.14"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.15")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.15")-oid("1.3.6.1.2.1.25.2.3.1.6.15"))*oid("1.3.6.1.2.1.25.2.3.1.4.15"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.16")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.16")-oid("1.3.6.1.2.1.25.2.3.1.6.16"))*oid("1.3.6.1.2.1.25.2.3.1.4.16"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.17")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.17")-oid("1.3.6.1.2.1.25.2.3.1.6.17"))*oid("1.3.6.1.2.1.25.2.3.1.4.17"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.18")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.18")-oid("1.3.6.1.2.1.25.2.3.1.6.18"))*oid("1.3.6.1.2.1.25.2.3.1.4.18"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.19")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.19")-oid("1.3.6.1.2.1.25.2.3.1.6.19"))*oid("1.3.6.1.2.1.25.2.3.1.4.19"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.20")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.20")-oid("1.3.6.1.2.1.25.2.3.1.6.20"))*oid("1.3.6.1.2.1.25.2.3.1.4.20"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.21")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.21")-oid("1.3.6.1.2.1.25.2.3.1.6.21"))*oid("1.3.6.1.2.1.25.2.3.1.4.21"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.22")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.22")-oid("1.3.6.1.2.1.25.2.3.1.6.22"))*oid("1.3.6.1.2.1.25.2.3.1.4.22"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.23")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.23")-oid("1.3.6.1.2.1.25.2.3.1.6.23"))*oid("1.3.6.1.2.1.25.2.3.1.4.23"))/1024)/1024)/1024)>50,1,0),1)*
if(oid("1.3.6.1.2.1.25.2.3.1.5.24")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.24")-oid("1.3.6.1.2.1.25.2.3.1.6.24"))*oid("1.3.6.1.2.1.25.2.3.1.4.24"))/1024)/1024)/1024)>50,1,0),1)
Function for CentOS
if(oid("1.3.6.1.2.1.25.2.3.1.5.31")=0,"",
concatenate("Disc: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.31")-oid("1.3.6.1.2.1.25.2.3.1.6.31"))*oid("1.3.6.1.2.1.25.2.3.1.4.31"))/1024)/1024)/1024),"Gb"
," / ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.31")*oid("1.3.6.1.2.1.25.2.3.1.4.31")/1024/1024/1024),"Gb
")))
Functions for network storage. In testing mode, need to be checked
Tequs
if(oid("1.3.6.1.2.1.25.2.3.1.5.46")=0,"",
concatenate("Disc: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.46")-oid("1.3.6.1.2.1.25.2.3.1.6.46"))*oid("1.3.6.1.2.1.25.2.3.1.4.46"))/1024)/1024)/1024),"Gb"
," / ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.46")*oid("1.3.6.1.2.1.25.2.3.1.4.46")/1024/1024/1024),"Gb
")))
For monitoring
if(oid("1.3.6.1.2.1.25.2.3.1.5.46")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.46")-oid("1.3.6.1.2.1.25.2.3.1.6.46"))*oid("1.3.6.1.2.1.25.2.3.1.4.46"))/1024)/1024)/1024)>10,1,0),1)
Qnap
if(oid("1.3.6.1.2.1.25.2.3.1.5.33")=0,"",
concatenate("Disc: ",round(((((oid("1.3.6.1.2.1.25.2.3.1.5.33")-oid("1.3.6.1.2.1.25.2.3.1.6.33"))*oid("1.3.6.1.2.1.25.2.3.1.4.33"))\/1024)\/1024)\/1024),"Gb"
," \/ ",(round(oid("1.3.6.1.2.1.25.2.3.1.5.33")*oid("1.3.6.1.2.1.25.2.3.1.4.33")\/1024\/1024\/1024),"Gb
")))
For monitoring
if(oid("1.3.6.1.2.1.25.2.3.1.5.33")0,if(round(((((oid("1.3.6.1.2.1.25.2.3.1.5.33")-oid("1.3.6.1.2.1.25.2.3.1.6.33"))*oid("1.3.6.1.2.1.25.2.3.1.4.33"))\/1024)\/1024)\/1024)>10,1,0),1)
Source: habr.com
