Versions Compared

Key

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

...

  • The CommandFragment element is used to execute an operating system command that e.g. forwards notifications to a System Monitor.
  • This fragment type is frequently used to implement passive checks with a System Monitor.
  • In addition this fragment type can be used e.g. to write individual log files that can be parsed more easily by Log Analyzer products such as Splunk®, AWS® Elastic Search etc.

CommandFragment

  • The CommandFragment requires two nested elements:
    • MessageRef: specifies a reference to the Message element that holds a string that is forwarded to the System Monitor.
    • Command: the operating system command that is executed and parameterized with the content of the Message element that is available from the ${MESSAGE} Monitor Variable.

Examples

Nagios / op5

The following is an excerpt from an XML configuration for notification with passive checks for the Nagios® and op5® System Monitors using CommandFragment.

...