Crate perfdata

source ·
Expand description

This library was created to fit basic needs for parsing and creating Performance Data (Perfdata) commonly used by check commands from monitoring engines like Icinga2 or Nagios.

Usually the data will be turned into a time series, and - if defined - will be used to determine the status of a monitoring object based on ThresholdRanges.

Parsing and output is implemented to the Nagios Reference.

Structs

  • Perfdata is the core data structure of this crate. A Perfdata represents a named metric recurrently observed by a monitoring check. Almost every current monitoring engine is able to interpret Perfdata in its string representation.
  • A PerfdataSet is a collection of Perfdata. It can be built via PerfdataSet::new(), from Iterators with Item=<Perfdata>, or from a Vec<Perfdata>.
  • A ThresholdRange delimits a numerical range in which a Perfdata Value will be considered Warning or Critical ( See Perfdata::with_crit() and Perfdata::with_warn() )

Enums

  • Monitoring Status representing the Status reported to Monitoring Engines like Nagios, Naemon or Icinga.