Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ava57r/zbx-sender-rs
Implementation of Zabbix Sender Client.
https://github.com/ava57r/zbx-sender-rs
zabbix zabbix-sender
Last synced: 3 months ago
JSON representation
Implementation of Zabbix Sender Client.
- Host: GitHub
- URL: https://github.com/ava57r/zbx-sender-rs
- Owner: ava57r
- License: mit
- Created: 2018-04-08T18:41:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T06:58:20.000Z (over 2 years ago)
- Last Synced: 2024-10-12T02:15:09.915Z (3 months ago)
- Topics: zabbix, zabbix-sender
- Language: Rust
- Homepage:
- Size: 83 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# zbx-sender
[![](https://img.shields.io/crates/v/zbx_sender.svg)](https://crates.io/crates/zbx_sender)
## Synopsis
Modern Rust implementation of Zabbix Sender Client.
Working with Zabbix 2.0.8 and 2.1.7+ versions.## Code Example
Easy to use:
```rust
extern crate zbx_sender;use zbx_sender::{Response, Result, Sender};
use std::env;fn send_one_value(command: &str) -> Result {
let sender = Sender::new(command.to_owned(), 10051);
sender.send(("host1", "key1", "value"))
}fn main() {
let command = match env::args().nth(1) {
Some(cmd) => cmd,
None => {
let name = env::args().nth(0).unwrap();
panic!("Usage: {} [command]", name)
}
};match send_one_value(&command) {
Ok(response) => println!("{:?} is success {} ", response, response.success()),
Err(e) => println!("Error {}", e),
}
}
```See examples/sender.rs
## License
[The MIT License (MIT)](LICENSE)