• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..19-Mar-2019-

Makefile.amH A D19-Mar-20191.5 KiB323

PKG-INFOH A D19-Mar-2019220 109

READMEH A D19-Mar-2019622 2417

README.mdH A D19-Mar-2019622 2417

client.cH A D19-Mar-201911.2 KiB492385

client.hH A D19-Mar-20193 KiB8646

nscang.cH A D19-Mar-20197.6 KiB234174

setup.pyH A D19-Mar-2019602 2117

uthash.hH A D19-Mar-201967.9 KiB1,075872

README

1This is the `README` file of *python-nscang*.
2
3Description
4-----------
5
6The Python NSCA-ng client allows for sending host or service check results
7to NSCA-ng servers.
8
9Examples
10--------
11
12    from nscang import NSCAngNotifyer
13
14    n = NSCAngNotifyer(host="monitoring.example.com",
15                       port=5668,
16                       identity="foo.example.com",
17                       psk="secret")
18
19    n.svc_result(host_name="foo.example.com",
20                 svc_description="RAID status",
21                 return_code=0,
22                 plugin_output="OK: md126[raid1], md127[raid1]",
23                 timeout=5)
24

README.md

1This is the `README` file of *python-nscang*.
2
3Description
4-----------
5
6The Python NSCA-ng client allows for sending host or service check results
7to NSCA-ng servers.
8
9Examples
10--------
11
12    from nscang import NSCAngNotifyer
13
14    n = NSCAngNotifyer(host="monitoring.example.com",
15                       port=5668,
16                       identity="foo.example.com",
17                       psk="secret")
18
19    n.svc_result(host_name="foo.example.com",
20                 svc_description="RAID status",
21                 return_code=0,
22                 plugin_output="OK: md126[raid1], md127[raid1]",
23                 timeout=5)
24