Description
Package for writing monitoring plugins.
Description
Implements Nagios plugin development guidelines within a Haskell framework for writing Nagios checks.
README.md
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.