Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A quick note on stringwise versy versus numerical comparison:  in numeric mode, the expressions will be converted to numbers (i.e. string "0003" becomes the number 3 for comparison). In string mode the expressions' characters are compared one by one. If $r is "0003", $r == 3 is true, but $r eq 3 is false.

...

Code Block
'cipSecGlobalActiveTunnels' => {
  'oid' => 'cipSecGlobalActiveTunnels',
  'title' => 'Global Active Tunnels',
  'alert' => {
    'test' => '$r == 0',
    'event' => 'No tunnels present',
    'level' => 'Critical'
  }
}       

You can also use the 'calculate' expression with alerts, handy for when you want the value to be transformed into something more understandable. This should be inserted in line where the 'oid' and 'title' attributes are within their alert definition.

More Advanced Alerts

Alerts can also be created in the 'alerts' section of the model.  lerts created in this section have the advantage of being able to use values from a whole section of data to determine if the alert should be triggered or not; however, such alerts can NOT access variables collected/modelled in the 'system' section and as such are mostly useful for systemHealth modelling.

...