Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.74 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.74 KB

Overview NuGet Actions Status Coverage Status

The package provides a tool to send data to Zabbix in the same way as zabbix_sender tool. It implements Zabbix Sender Protocol 4.4.

Installation

NuGet package is available here.

PM> Install-Package ZabbixSender.Async

Example

var sender = new ZabbixSender.Async.Sender("192.168.0.10");
var response = await sender.Send("MonitoredHost1", "trapper.item1", "12");
Console.WriteLine(response.Response); // "success" or "fail"
Console.WriteLine(response.Info);    // e.g. "Processed 1 Failed 0 Total 1 Seconds spent 0.000253"

Remarks

In order for the request above to be successfully processed, the host MonitoredHost1 should be configured. The same should be done for the item trapper.item1. The item(s) type should be Zabbix trapper. Also the value 12 should respect the type of information, configured for the item.

Try standalone out-of-the-box Zabbix server with Docker.