Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 753 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 753 Bytes

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.