/ZabbixSender.Async

Provides tools to asynchronously send data to Zabbix.

Primary LanguageC#Apache License 2.0Apache-2.0

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(reponse.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.