Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Makefile.am
PKG-INFO
README
README.md
client.c
client.h
nscang.c
setup.py
uthash.h

README.md

This is the README file of python-nscang.

Description

The Python NSCA-ng client allows for sending host or service check results to NSCA-ng servers.

Examples

from nscang import NSCAngNotifyer

n = NSCAngNotifyer(host="monitoring.example.com",
                   port=5668,
                   identity="foo.example.com",
                   psk="secret")

n.svc_result(host_name="foo.example.com",
             svc_description="RAID status",
             return_code=0,
             plugin_output="OK: md126[raid1], md127[raid1]",
             timeout=5)