nagios-check: Package for writing monitoring plugins

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.2.0, 0.2.1, 0.2.1, 0.3.0, 0.3.1, 0.3.2
Change log CHANGELOG.md
Dependencies base (>=4.5 && <5), bifunctors, exceptions, mtl, nagios-perfdata (>=0.2.2), text [details]
License MIT
Copyright 2014 Sharif Olorin
Author Sharif Olorin
Maintainer sio@tesser.org
Category System
Home page https://github.com/fractalcat/haskell-nagios-check
Source repo head: git clone git@github.com:fractalcat/haskell-nagios-check.git
Uploaded by fractalcat at 2015-03-05T00:51:12Z

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for nagios-check-0.2.1

[back to package description]

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)