class Nagios::Check

Defined in:

nagios_check/check.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(params : Hash(String, String) = {} of String => String) #

[View source]

Class Method Detail

def self.check(params = {} of String => String) #

[View source]
def self.check_name #

[View source]
def self.run(method_name, params = {} of String => String) #

[View source]
def self.subclasses #

[View source]

Instance Method Detail

def always_output_ok? #

[View source]
def check(name : String | Nil, res, ok = nil, warn = nil, crit = nil, limits = nil) #

[View source]
def check #

[View source]
def check_name : String #

[View source]
def crit(msg, &) #

[View source]
def crit(msg) #

[View source]
def critical(msg, &) #

[View source]
def critical(msg) #

[View source]
def error(msg, &) #

[View source]
def error(msg) #

[View source]
def execute #

[View source]
def message_prefix #

[View source]
def ok(msg, &) #

[View source]
def ok(msg) #

[View source]
def other(msg, &) #

[View source]
def other(msg) #

[View source]
def result #

[View source]
def started_at : Time #

[View source]
def warn(msg, &) #

[View source]
def warn(msg) #

[View source]
def warning(msg, &) #

[View source]
def warning(msg) #

[View source]

Macro Detail

macro add_check(name, res_name) #

[View source]
macro chk(call, ok = nil, warn = nil, crit = nil, limits = nil) #

[View source]
macro params(*names) #

[View source]