Crate nagiosplugin

source ·
Expand description

This crate provides utilities to write Icinga/Nagios checks/plugins. If you want to use this library only for compatible output take a look at the Resource. If you also want error handling, take a look at safe_run.

Structs§

  • Represents a single item of a check. Multiple of these are used to form a Resource.
  • Defines a metric with a required name and value. Also takes optional thresholds (warning, critical) minimum, maximum. Can also be set to ignore thresholds and have a fixed ServiceState.
  • Represents a single performance metric.
  • Newtype wrapper around a string to ensure only valid strings end up in the final output. This is used for the performance data / metric part of the output.
  • Represents a single service / resource from the perspective of Icinga.
  • This error is returned by the FromStr implementation of ServiceState.
  • Newtype wrapper around a string to ensure only valid strings end up in the performance data.

Enums§

Traits§

  • Implement this if you have a value which can be converted to a performance metric value.

Functions§