Skip to content

jsl/nagios-check

 
 

Repository files navigation

nagios-check

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

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)

About

Write Nagios plugins in Haskell.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 88.6%
  • Makefile 11.4%