MirrorZ/pynag — pull request #1 by tomas-edwardsson (2014-06-13 14:42:32+00:00)
Title: Simplify and make available pynag.Utils.CheckResult

Basic initialization

from pynag.Utils import CheckResult

check_result = CheckResult('/tmp')

check_result.service_result(
host_name="testhost",
service_description="test service",
output="OK This is nice!",
)

check_result.service_result(
host_name="testhost",
service_description="bad service",
output="Oh darn!",
return_code=2,
)

check_result.submit()