zbx-webhook-proxy

Accepts requests on a configurable set of URLs then forwards the GET query parameters or POSTed JSON body to Zabbix Server (as a JSON value), with optional JMESPath transformation.

Use with Zabbix 4.0 or later and Trapper Items of type log, then configure further processing of the JSON body in Zabbix using Dependent Items and JSON preprocessing.

Built With

Version History

See changes in CHANGELOG.md

Building

Prerequisites

Rust 2021 edition

Installation

  1. cargo build --release
  2. Copy target/release/zbx-webhook-proxy to any executable location and configure startup

TODO

Configuration

config.toml file

See example_config.toml for full usage

Minimal configuration ```toml zabbix_server = "zabbix.example.com"

[[route]] path = "/hook" itemhost = "Monitored Host" itemkey = "event.json" ```

Command Line

All command-line flags are optional but can be specified to override the configuration file or defaults

Flags with no default value

MUST be specified on the command line or in the configuration file - -z/--zabbix-server: Address of Zabbix Server or Proxy

Flags with a default value

Flags that enable additional features

Flags that enable features only available from the command line

Versioning

I use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the Modified BSD License - see the LICENSE file for details