zabbix-cli

command module
v0.0.0-...-a82db70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 1 Imported by: 0

README

GitHub release Go Report Card GitHub Downloads Maintainability Test Coverage GoDoc License

zabbix-cli

zabbix-cli is a command line tool to interact with Zabbix API.

It is a work in progress.

Features

  • Export templates YAML
  • Import templates YAML

zabbix API

The API documentation is available here.

Getting started

Usage is quite simple :

A CLI tool to interact with Zabbix API

Usage:
  zabbix-cli [command]

Available Commands:
  config      describes how to configure zabbix-cli
  export      export template
  help        Help about any command
  import      import template
  version     print version of zabbix-cli

Flags:
  -h, --help   help for zabbix-cli

Use "zabbix-cli [command] --help" for more information about a command.

Install

From binary

Download the binary in the release section.

From Docker image

Docker registry is: sgaunet/zabbix-cli

  • The docker image is multi-arch
  • It contains only the binary, use multi stage build to copy zabbix-cli in your image
FROM sgaunet/zabbix-cli:latest as zabbix-cli

FROM alpine:latest
COPY --from=zabbix-cli /usr/bin/zabbix-cli /usr/local/bin/zabbix-cli

Development

This project is using:

There are hooks executed in the precommit stage. Once the project cloned on your disk, please install pre-commit:

brew install pre-commit

Install tools:

task dev:install-prereq

And install the hooks:

task dev:install-pre-commit

If you like to launch manually the pre-commmit hook:

task dev:pre-commit

Tests

Tests are done with venom.

cd tests
docker compose up -d
# Check that the stack is up before running the tests
task tests

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL