MIT licensed by Sharif Olorin
Maintained by [email protected]
This version can be pinned in stack with:nagios-check-0.3.2@sha256:7b15fb43dd10edfe575d283d7872913938552546a182159ef9b0ac64120431a3,1750

Module documentation for 0.3.2

Build Status

nagios-check

Write Nagios (or Icinga, Shinken, et cetera) plugins in Haskell.

Documentation

On Hackage.

Example usage

{-# LANGUAGE OverloadedStrings #-}

import System.Nagios.Plugin

universeCheck :: Double -> NagiosPlugin ()
universeCheck pi' = do
    addResult OK "universe passes basic consistency tests"
    if (pi' < (3.0 :: Double)) then addResult Critical "universe broken, π < 3" else return ()

main :: IO ()
main = runNagiosPlugin (universeCheck 3.1415)

Dependencies

nagios-check has been tested with GHC 7.8 and 7.10.

Changes

Changelog

v0.3.2

  • Deprecate UnknownUOM.
  • Remove unused Range type until it’s actually implemented.
  • Remove dependency on nagios-perfdata.

v0.3.1

  • Fix bug in perfdata rendering wherein scientific notation was used for large/small values.

v0.3.0

  • Added addPerfData function and ToPerfData typeclass for more convenient generation of perfdata from complex data structures.

v0.2.1

  • Support for GHC 7.4 (Justin S. Leitgeib, @jsl).
  • Fix bug in perfdata ordering (correct order is warn, crit, min, max; not min, max, warn, crit).

v0.2.0

  • add addBarePerfdatum convenience function