No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.bundle
.circleci
.idea
build/kotlin-build
gradle/wrapper
src
.gitignore
Dangerfile
Gemfile
Gemfile.lock
README.md
build.gradle
docker-compose.yml
gradlew
gradlew.bat
kt-zabbix-sender.iml
settings.gradle

README.md

kt-zabbix-sender CircleCI

Zabbix Sender for kotlin

Implement Zabbix Sender for Java example
https://www.zabbix.org/wiki/Docs/protocols/zabbix_sender/1.8/java_example

Example.

val metrics = listOf<ZabbixMetric>(
    ZabbixMetric(host = "yourhost", key = "cpu", value = "2.9"),
    ZabbixMetric(host = "yourhost", key = "memory", value = "333", clock = System.currentTimeMillis() / 1000L)
)
        
val zabbixRequest = ZabbixRequest(metrics = metrics)
val zabbixConfig = ZabbixConfig(host = "127.0.0.1")
val zabbixSender = ZabbixSender(zabbixConfig)
val zabbixResponse = zabbixSender.send(zabbixRequest)