The nagios-check package

[maintain]

Implements Nagios plugin development guidelines within a Haskell framework for writing Nagios checks.


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.1, 0.3.2
Dependenciesbase (>=4.5 && <5), bifunctors, exceptions, mtl, nagios-perfdata (>=0.2.2), text [details]
LicenseMIT
Copyright2014 Sharif Olorin
AuthorSharif Olorin
Maintainersio@tesser.org
CategorySystem
Home pagehttps://github.com/fractalcat/haskell-nagios-check
Source repositoryhead: git clone git@github.com:fractalcat/haskell-nagios-check.git
UploadedFri May 29 01:08:47 UTC 2015 by fractalcat

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for nagios-check-0.3.1

Build Status

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)