Class to generate passive checkresults
fixed indentation
unit test for nagios_checkresult.py
Fixed the import
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()
Merge pull request #1 from tomas-edwardsson/mirrorzresult

Simplify and make available pynag.Utils.CheckResult
Merge pull request #142 from MirrorZ/master

Class to generate passive checkresults