Skip to content

olorin/haskell-nagios-check

Repository files navigation

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.

About

Write Nagios plugins in Haskell.

Resources

License

Stars

Watchers

Forks

Packages

No packages published