Let's take the example of the supervision of an Exagrid appliance.
After analyzing the MIB, the disk space used is obtained by performing operations between values from different OIDs.
This documentation, which is based on the ExaGrid case, can be used for any other checkpoint.
According to the MIB of the equipment, there are two storage areas. The values are expressed in Mb. We will process the first space.
In addition to the percentage used, we want the space used in GB.
- % space 1 used : (Space1Configured - Space1Available) / Space1Configured * 100
- space 1 used in GB : (Space1Configured - Space1Available) / 1024
With the DIOs:
- % space 1 used : (.22.214.171.124.4.1.149126.96.36.199 – .188.8.131.52.4.1.149184.108.40.206) / .220.127.116.11.4.1.14918.104.22.168 * 100
- space 1 used in GB : (.22.214.171.124.4.1.149126.96.36.199 – .188.8.131.52.4.1.149184.108.40.206) /1024
Creation of the Exagrid-Espace-1 service model
Navigate to "Configuration", "Services", "Templates" and then "Add".
Fill in the name of the service model.
The categories will be useful for report generation. Here we supervise a disk space.
Thanks to this generic plugin we could monitor RAM, CPU, throughput, temperature, etc...
We need to perform 2 operations (one for the percentage and one for the value in GB) between values returned by OIDs but also with integers.
You have to:
- Fill in the OIDs used in the calculation, separated by semicolons. The first OID will be OID1, the second will be OID2, the nth will be OIDn.
- Write the two operations to be performed separated by the symbol Pipe |.
- It is not necessary to carry out two operations, in this case a 2nd formula is not filled in.
- We can very well write a formula like OID1|OID2, here no calculation, the plugin just returns the 2 raw values obtained from the OIDs.
- Only the result of the first operation is compared to the thresholds.
- Position the alert thresholds
- Fill in the output format consisting of two parts separated by the symbol Pipe |.
- The first part is for :
- Define the text to be displayed
- Choose the unit of the value from the first calculation
- Choose the unit of the value from the second calculation (not required if no second calculation)
- Here the visible output in Technical Operations will be: "Used space : value1 % (value2 Go) ».
- The second part is used to define the names of the performance data generated by the plugin. Here two names, separated by a semicolon, because two values are calculated.
Do not complete this section if you do not want graphics.
Giving a single name will create a graph for the value of the first calculation only.
- "used_prct" will be for the performance data of the first calculation.
- "used_Go" will be for the performance data of the second calculation.
- The first part is for :
Once the service template has been created, it can be used in a checkpoint :
Both performance data are visible in the metrics:
Improved version of the check_snmp_oidplugin, the check_snmp_operation plugin brings a higher degree of intelligence to data processing.
Its customization, (display of raw values or up to 2 calculations, text output, units, creation or not of graphs, names of performance data) makes it a tool adaptable to any type of control.
This makes it very easy to create service models to oversee new equipment.