1 Star 9 Fork 6

Bromine0x23 / zabbix-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
WTFPL

Zabbix Java

模块

一般用法

import cn.bromine0x23.zabbix.sender.ZabbixSender;
import cn.bromine0x23.zabbix.sender.ZabbixSenderResponse;

public class ZabbixSenderExample {

	private static final String SERVER_HOST = "132.102.99.115"; // Zabbix服务器地址

	private static final String HOST = "example"; // 主机名

	public static void main(String[] arguments) {

		ZabbixSender sender = ZabbixSender.create(SERVER_HOST, HOST);

		ZabbixSenderResponse response; 

		response = sender.send(sender.requestBuilder().datum("java.test", "test").build());

		System.out.println(response);

		response = sender.send(
			sender.requestBuilder()
				.datum("java.test.0", "test0")
				.datum("java.test.1", "test1")
				.datum("java.test.2", "test2")
				.build()
		);

		System.out.println(response);
	}
}
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.

简介

Zabbix客户端Java实现 展开 收起
Java
WTFPL
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/bromine0x23/zabbix-java.git
git@gitee.com:bromine0x23/zabbix-java.git
bromine0x23
zabbix-java
zabbix-java
master

搜索帮助