Documentation

Creating a service template from the generic plugin check_snmp_operation

On the page

Need some help?

Background

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.

MIB analysis

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 : (.1.3.6.1.4.1.14941.4.1.1 – .1.3.6.1.4.1.14941.4.1.3) / .1.3.6.1.4.1.14941.4.1.1 * 100
  • space 1 used in GB : (.1.3.6.1.4.1.14941.4.1.1 – .1.3.6.1.4.1.14941.4.1.3) /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.

 

Once the service template has been created, it can be used in a checkpoint :

Both performance data are visible in the metrics:

In conclusion

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.

This may also be of interest to you

word image 10

Using the Global-Plugin-Execution service template

ps 1

Using generic PowerShell - GLOBAL-PS-Values models

Configuring a ServiceNav Box to receive traps

en_US
fr_FR en_US

Welcome to ServiceNav!

Need help? More information about our products? Write to us!
You have taken note of our privacy policy.

[COVID - 19 ] - TELEWORKING, TARGET AVAILABILITY 100% !

While the epidemic lasts, ensure the availability and performance of your IT services for teleworking, with ServiceNav!

Following the government's call to mobilize to help businesses overcome the current health and economic context, we help you, free of charge, to ensure the complete monitoring of your teleworking environments: VPN, VDI, Teams, Skype Enterprise, Citrix... Objectives: collection, availability and usage indicators, dashboards to support your communication.
We use cookies to ensure that you have the best possible experience on our site, and if you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.