All Projects → hengyunabc → zabbix-sender

hengyunabc / zabbix-sender

Licence: Apache-2.0 license
java zabbix-sender

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to zabbix-sender

zabbix-mini-IPMI
Disk and CPU temperature monitoring for Linux, FreeBSD and Windows. LLD, trapper.
Stars: ✭ 82 (+17.14%)
Mutual labels:  zabbix, zabbix-sender
zabbix-smartmontools
Disk SMART monitoring for Linux, FreeBSD and Windows. LLD, trapper.
Stars: ✭ 41 (-41.43%)
Mutual labels:  zabbix, zabbix-sender
libzbxmodbus
Loadable module to integrate Modbus (RTU, TCP and encapsulated) into Zabbix. Bulk data collection included.
Stars: ✭ 44 (-37.14%)
Mutual labels:  zabbix
alerta-contrib
Contributed integrations, plugins and custom webhooks
Stars: ✭ 107 (+52.86%)
Mutual labels:  zabbix
Zabbix-Network-Weathermap
Network weathermap for Zabbix
Stars: ✭ 83 (+18.57%)
Mutual labels:  zabbix
community.zabbix
Zabbix Ansible modules
Stars: ✭ 224 (+220%)
Mutual labels:  zabbix
monitor ce
OneOaaS Monitor Community Edition
Stars: ✭ 35 (-50%)
Mutual labels:  zabbix
zabbix-pgsql-partitioning
Partitioning scripts for Zabbix on PostgreSQL
Stars: ✭ 26 (-62.86%)
Mutual labels:  zabbix
zabbix-dynamic-pdf-report
No description or website provided.
Stars: ✭ 16 (-77.14%)
Mutual labels:  zabbix
zabbix 44x next
Zabbix Next: Continued development of Zabbix version 4.4.x (unofficial)
Stars: ✭ 12 (-82.86%)
Mutual labels:  zabbix
realopinsight
✔️ Measure and observe end-user applications availability - Define and track SLA/SLO targets through Prometheus-alike metrics and built-in reports - Kubernetes®, Zabbix®, Nagios®.
Stars: ✭ 55 (-21.43%)
Mutual labels:  zabbix
effluence
Zabbix loadable module for real-time export of history to InfluxDB
Stars: ✭ 26 (-62.86%)
Mutual labels:  zabbix
KSC
Kaspersky Security Center monitoring helper
Stars: ✭ 13 (-81.43%)
Mutual labels:  zabbix
zabbix-alerta
Forward Zabbix alerts to the alerta monitoring system
Stars: ✭ 94 (+34.29%)
Mutual labels:  zabbix
Zabbix-Extensions
Some plugins for using Zabbix
Stars: ✭ 15 (-78.57%)
Mutual labels:  zabbix
zabbix-jira
Python module that allows you to create tasks in Jira by the trigger from Zabbix
Stars: ✭ 40 (-42.86%)
Mutual labels:  zabbix
zabbix-discord
Alertscript for zabbix to enable discord notifications
Stars: ✭ 27 (-61.43%)
Mutual labels:  zabbix
zabbix-templates
Zabbix templates
Stars: ✭ 104 (+48.57%)
Mutual labels:  zabbix
php-weathermap-zabbix-plugin
PHP Weathermap plugin for Zabbix (using Zabbix API)
Stars: ✭ 24 (-65.71%)
Mutual labels:  zabbix
Zabbigot
Bukkit plugin for Zabbix monitoring.
Stars: ✭ 18 (-74.29%)
Mutual labels:  zabbix

zabbix-sender

java zabbix-sender

First you should know zabbix sender:

https://www.zabbix.org/wiki/Docs/protocols/zabbix_sender/2.0

https://www.zabbix.org/wiki/Docs/protocols/zabbix_sender/1.8/java_example

If you don't have a zabbix server, recommend use docker to setup test environment.

https://hub.docker.com/u/zabbix/

Support zabbix server 2.4/3.0.

##Example

Zabbix Sender do not create host/item, you have to create them by yourself, or try to use zabbix-api.

  1. Create/select a host in zabbix server.
  2. Create a item in zabbix server, which name is "testItem", type is "Zabbix trapper".
  3. Send data.
  4. If success, you can find data in web browser. Open "Monitoring"/"Latest data", then filter with Item name or Hosts.
		String host = "127.0.0.1";
		int port = 10051;
		ZabbixSender zabbixSender = new ZabbixSender(host, port);

		DataObject dataObject = new DataObject();
		dataObject.setHost("172.17.42.1");
		dataObject.setKey("test_item");
		dataObject.setValue("10");
		// TimeUnit is SECONDS.
		dataObject.setClock(System.currentTimeMillis()/1000);
		SenderResult result = zabbixSender.send(dataObject);

		System.out.println("result:" + result);
		if (result.success()) {
			System.out.println("send success.");
		} else {
			System.err.println("sned fail!");
		}

Maven dependency

<dependency>
    <groupId>io.github.hengyunabc</groupId>
    <artifactId>zabbix-sender</artifactId>
    <version>0.0.5</version>
</dependency>

Others

https://github.com/hengyunabc/zabbix-api

License

Apache License V2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].