Giter VIP home page Giter VIP logo

zabbix-macromate's Introduction

Overview

This is a command-line tool for managing host macros on a Zabbix server.

It allows you to:

  1. Manage host macros on a Zabbix server
  2. Update existing macros
  3. Authenticate with the Zabbix server

Prerequisites

  • Go version 1.15 or above
  • Zabbix API credentials (username and password)
  • Zabbix server link (e.g. https://zbx.example.com/zabbix/api_jsonrpc.php) Note: You need to replace the placeholders username, password, hostname, and zbxServerLink with your actual Zabbix API credentials and Zabbix server link.

Installing

  • Clone the repository
  • Run go build command to build the application

Usage

To run the tool, you can use the following command:

go run macromate.go -username example_username -password example_password -hostname example_hostname -zbxServerLink https://zbx.example.com/zabbix/api_jsonrpc.php

The -username and -password flags are used to authenticate with the Zabbix server. The -hostname flag is used to specify the host that the macros will be associated with. And, -zbxServerLink flag is used to specify the link of zabbix server.

You can also run the tool with logging, by using the following command:

go run macromate.go -username example_username -password example_password -hostname example_hostname -zbxServerLink https://zbx.example.com/zabbix/api_jsonrpc.php -enableLogging true

Note: -enableLogging flag is added for the logging

zabbix-macromate's People

Contributors

ku9nov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.