SevOne logo
You must be logged into the NMS to search.

Table of Contents (Start)

Calculation Editor

This documentation applies to NMS version 5.4. An online version of the software can be found here.

The Calculation Editor enables you to define objects that use the calculations of polled indicator data you define as variables. Variable calculations can combine data SevOne NMS polls from the indicators across multiple objects on multiple devices.

To access the Calculation Editor from the navigation bar, click the Administration menu, select Monitoring Configuration, and then select Calculation Editor.

images/download/attachments/6522959/calculationeditor.png

Prerequisites:

Object Browser

The Object Browser section on the left lists the devices for which you enable the Calculation plugin and for which you create calculation objects. As you add calculation objects, additional devices appear in the list.

  1. If needed, click on a device in the list to display the calculation objects the Calculation plugin polls on the device.

  2. Click Add Object or click images/download/attachments/6522959/editnew.png to display the Add/Edit Object pop-up.

  3. For a new object, click the Parent Device drop-down and select the device on which to discover and poll the object. This list displays all devices for which you enable the Calculation plugin. You cannot edit this field after you save an object.

  4. For a new object, click the Object Type drop-down and select a Calculation plugin object type. To add an object type to the list, click images/download/attachments/6522959/browse4.png to navigate to the Object Types page where you can manage the Calculation plugin object types. You cannot edit this field after you save an object.

  5. In the Object Name field, enter the name of the Calculation plugin object. This name cannot begin or end with spaces and must include at least one character.

  6. In the Object Description field, enter the object description.

  7. In the Default Value field, enter a numeric value to use in the calculation should the object type not poll data for the time span of the report. Leave clear for Null.

  8. Click Save.

Variable Browser

Click on an object in the Object Browser section to display the object's variables in the Variable Browser section and the object's expression in the Expression Browser section on the right.

  1. Click Add Variable or click images/download/attachments/6522959/editnew.png to display the Add/Edit Calculation Variable pop-up.

  2. In the Variable Name field, enter the name of the variable for the object to use.

  3. Click the Plugin drop-down and select the plugin that polls the object from which to calculate data.

  4. Click the Device drop-down and select the device from which the data to calculate is polled.

  5. Click the Object drop-down and select the object whose indicator data is to be calculated.

  6. Click the Indicator drop-down and select the indicator whose data is to be used in the calculation.

  7. Select the Default Value Null check box to make the value default to null if there is no poll data for the variable during the report time span. Leave clear and enter a value to use a specific value for time spans with no poll data.

  8. Click Save.

Expression Browser

Click on an object in the Object Browser section to display the object's variables in the Variable Browser section and the object's indicators in the Expression Browser section on the right.

  1. Click Edit Indicator Types to navigate to the Object Types page where you can add and edit indicator types.

  2. Click images/download/attachments/6522959/editnew.png next to display the Expression Editor pop-up.

  3. In the Source Variable field, click a variable and drag it to the Indicator Expression field.

  4. Enter applicable operators in the Indicator Expression field to formulate the calculation. See the Acceptable Operators section below.

  5. Drag additional source variables and enter additional mathematical symbols to create the expression in the Indicator Expression field.

  6. Repeat the previous steps in the Maximum Value Expression field to define a maximum value expression.

  7. Click Save.

Acceptable Operators

Your expression formula can include the following characters: Note: If the border around the field turns red, your calculation is invalid and your graph results will be erroneous.

  • + add

  • - subtract

  • multiply

  • / device

  • & & logical and

  • || logical or

  • <= less or equal

  • >= greater or equal

  • ! not equal

  • == equal

  • > greater than

  • < less than

  • ^ raise x to the power of y

  • % modulus

  • ?: if then else

If your calculation results in either of the following invalid values, there will be a gap in your graph: Not a Number (NAN) and Infinity (+/-INF). The following is how SevOne NMS attempts to prevent invalid values.
In sequence of processing:

  • Zero divided by zero results in NAN.

  • Any positive value divided by zero results in +INF.

  • Any negative value divided by zero results in -INF.

  • Zero multiplied by +/-INF results in NAN.

  • Any value added to, subtracted from, multiplied by, divided by, or divided from NAN results in NAN.

  • Any value compared to NAN (<, <=, ==, >=, >) results in 0. NAN != NAN.

  • Any value compared to +INF is less than +INF, except that +INF == +INF

  • Any value compared to -INF is greater than -INF, except that -INF == -INF

  • Any value added to or subtracted from +INF results in +INF

  • Any positive value multiplied by +/-INF results in +/-INF

  • Any value divided by +/-INF results in 0