Crates.io | zbx-webhook-proxy |
lib.rs | zbx-webhook-proxy |
version | 0.3.0 |
source | src |
created_at | 2022-07-18 20:30:33.680722 |
updated_at | 2022-07-29 17:49:13.707916 |
description | Accept HTTP GET params or POSTed JSON and send values to Zabbix Server as JSON |
homepage | https://github.com/overhacked/zbx-webhook-proxy/ |
repository | https://github.com/overhacked/zbx-webhook-proxy/ |
max_upload_size | |
id | 627908 |
size | 80,291 |
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.
std::net
json!()
happinessSee changes in CHANGELOG.md
Rust 2021 edition
cargo build --release
target/release/zbx-webhook-proxy
to any executable location and configure startupmake install
config.toml
fileSee example_config.toml
for full usage
Minimal configuration
zabbix_server = "zabbix.example.com"
[[route]]
path = "/hook"
item_host = "Monitored Host"
item_key = "event.json"
All command-line flags are optional but can be specified to override the configuration file or defaults
MUST be specified on the command line or in the configuration file
-z/--zabbix-server
: Address of Zabbix Server or Proxy-c/--config
: Path to config.toml
(default /etc/zbx-webhook-proxy.toml
)-p/--zabbix-port
: Zabbix trapper port (default: 10051)-l/--listen
: Proxy HTTP listening port (default: 3030)--access-log
: Path to a log file that will contain requests in Apache Common log format--test-mode
: Accept webhooks and print values that would be sent to Zabbix Server without actually sending-v/--verbose
: Increase logging to the console for troubleshooting purposesI use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the Modified BSD License - see the LICENSE file for details