{"id":17920744,"url":"https://github.com/hengyunabc/zabbix-sender","last_synced_at":"2025-03-24T00:32:21.301Z","repository":{"id":27114212,"uuid":"30582139","full_name":"hengyunabc/zabbix-sender","owner":"hengyunabc","description":"java zabbix-sender","archived":false,"fork":false,"pushed_at":"2023-12-25T03:33:56.000Z","size":25,"stargazers_count":74,"open_issues_count":5,"forks_count":46,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-16T07:34:50.887Z","etag":null,"topics":["java","zabbix","zabbix-sender"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"StephenGrider/ReduxSimpleStarter","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hengyunabc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T08:20:40.000Z","updated_at":"2024-04-03T06:55:38.000Z","dependencies_parsed_at":"2022-07-07T20:42:45.113Z","dependency_job_id":null,"html_url":"https://github.com/hengyunabc/zabbix-sender","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengyunabc%2Fzabbix-sender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengyunabc%2Fzabbix-sender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengyunabc%2Fzabbix-sender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengyunabc%2Fzabbix-sender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hengyunabc","download_url":"https://codeload.github.com/hengyunabc/zabbix-sender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221929014,"owners_count":16903327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","zabbix","zabbix-sender"],"created_at":"2024-10-28T20:27:07.351Z","updated_at":"2024-10-28T20:27:07.847Z","avatar_url":"https://github.com/hengyunabc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zabbix-sender\njava zabbix-sender\n\nFirst you should know zabbix sender:\n\nhttps://www.zabbix.org/wiki/Docs/protocols/zabbix_sender/2.0\n\nhttps://www.zabbix.org/wiki/Docs/protocols/zabbix_sender/1.8/java_example\n\nIf you don't have a zabbix server, recommend use docker to setup test environment.\n\nhttps://hub.docker.com/u/zabbix/\n\nSupport zabbix server 2.4/3.0.\n\n\n##Example\n\nZabbix Sender do not create host/item, you have to create them by yourself, or try to use [zabbix-api](https://github.com/hengyunabc/zabbix-api).\n\n1. Create/select a host in zabbix server.\n1. Create a item in zabbix server, which name is \"testItem\", type is \"Zabbix trapper\".\n1. Send data.\n1. If success, you can find data in web browser. Open \"Monitoring\"/\"Latest data\", then filter with Item name or Hosts.\n\n```java\n\t\tString host = \"127.0.0.1\";\n\t\tint port = 10051;\n\t\tZabbixSender zabbixSender = new ZabbixSender(host, port);\n\n\t\tDataObject dataObject = new DataObject();\n\t\tdataObject.setHost(\"172.17.42.1\");\n\t\tdataObject.setKey(\"test_item\");\n\t\tdataObject.setValue(\"10\");\n\t\t// TimeUnit is SECONDS.\n\t\tdataObject.setClock(System.currentTimeMillis()/1000);\n\t\tSenderResult result = zabbixSender.send(dataObject);\n\n\t\tSystem.out.println(\"result:\" + result);\n\t\tif (result.success()) {\n\t\t\tSystem.out.println(\"send success.\");\n\t\t} else {\n\t\t\tSystem.err.println(\"sned fail!\");\n\t\t}\n```\n\n## Maven dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.hengyunabc\u003c/groupId\u003e\n    \u003cartifactId\u003ezabbix-sender\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Others\n\nhttps://github.com/hengyunabc/zabbix-api\n\n## License\nApache License V2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhengyunabc%2Fzabbix-sender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhengyunabc%2Fzabbix-sender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhengyunabc%2Fzabbix-sender/lists"}