nagios-check

Package for writing monitoring plugins https://github.com/olorin/haskell-nagios-check

Version on this page:0.3.2
LTS Haskell 9.5:0.3.2
Stackage Nightly 2017-09-20:0.3.2
Latest on Hackage:0.3.2
MIT licensed by Sharif Olorin
Maintained by sio@tesser.org

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
Used by 2 packages:
comments powered byDisqus