Java-based mathematical expression examples

(jrockitRuntimeFreeHeap / jrockitRuntimeTotalHeap) *100

zySysMemoryPoolUtilization

100 - jrockitRuntimeHeapFreePercent

sysUpTime/100

PARSER(sonusSystemHardDiskUsageUsedDiskSpace,'{0}','(\d+(\.\d+)*)')

if(sonusSystemPowerSupplyStatusPresent==1,sonusSystemPowerSupplyStatusPowerFault,-1)

(totalBytesIn *8) / 1024

if(hpStackPortNeighbor ne "0.0", hpStackPortOperStatus, 0)

if((nsResSessMaxium > 0),(nsResSessAllocate/nsResSessMaxium)*100,0)

if (ifAdminStatus != 1,0,ifOperStatus)

if(cfwHardwareStatusDetail_6 eq "Failover Off",0,cfwHardwareStatusValue_6)

PARSER(currentOduTcmC1dayBbe,'{0}','\d+')

MATCHER(ibNode2ServiceDesc, '(\+|\-){1}(\d+\.\d)')

if(isDef(bwHCAggInLan),bwHCAggInLan,bwAggInLan)

Object identifiers (OIDs)

OIDs are unique identifiers to classify objects defined in MIB files for each managed device. For example: sysUpTime (1.3.6.1.2.1.1.3.0).

Types of OIDs are:

  • Scalar objects: A single instance in a managed device. Scalar objects contain only a single instance with a 0 sub-identifier appended to the object identifier. For example, sysUpTime (1.3.6.1.2.1.1.3.0) indicates the time (in hundredths of a second) when the network management portion of the system was last re-initialized.
  • Tabular/Columnar objects: Multiple instances in a managed device. Tabular or Columnar objects contain multiple instances in a managed device. These instances are identified using a sequence of sub-identifiers appended to the object identifier. For example, ifOperStatus(1.3.6.1.2.1.2.2.1.8) indicates the current operational state of the interface.

Administrators can easily retrieve object details using OIDs from the MIBs stored on the SNMP agent.

OID lookup index

The Lookup Index gets the OID index that is appended to the end of the Lookup OID.
For example, provide 1.3.6.1.2.1.99.1.1.1.5 as OID and 1.3.6.1.2.1.47.1.1.1.1.7 as Lookup OID.

Lookup Index

OID lookup value

The Lookup Value gets the OID value that is appended to the end of the Lookup OID.
For example, provide 1.3.6.1.2.1.99.1.1.1.5 as OID and 1.3.6.1.2.1.47.1.1.1.1.7 as Lookup OID.

Lookup Value

Tokens

TokenDescription
${severity}Alert state. For example, Critical, Warning, and OK.
${metric.name}Metric name
${component.name}Component name
${metric.value}Value of the metric or component.
${resource.name}Device hostname.
${resource.ip}IP address of the device.
${threshold}Threshold value configured for the alert state.
${repeat.count}Configured repeat count for the respective alert state.
${resource.ipaddress}IP address of the device.
${resource.mac}MAC address of the device.
${resource.serialno}Serial Number of the device.
${resource.make}Make of the device.
${resource.model}Device model.
${resource.hostname}Device hostname.
${resource.uniqueid}Unique ID/UUID of the device.
${resource.os}Operating system of the device