Git Product home page Git Product logo

poshbot.zabbixps's Introduction

PoshBot.ZabbixPS

This plugin for PoshBot provides functions to interact with Zabbix via ChatOps (Slack, Teams, etc)

Key functions included in this plugin include

  • Getting Zabbix Problems
  • Getting Zabbix Maintenace
  • Acknowledging Zabbix Events

Configuration

In order to use this plugin you must have the following:

  • Working setup of PoshBot
  • A zabbix Service account (minimum below)
    • 'Zabbix User' is enough for acknowledging
    • 'Read' to the Host Groups you want it to read problems
  • Configure a secret under PluginConfiguration for PoshBot as a PSCredential (example below)
  • Uses the ZabbixPS module for all Zabbix calls

PluginConfiguration

The Zabbix API requires that you initally authenticate before receiving a Token for your session. As a result you need to store (or generate at runtime) the Service account credentials in the PoshBot configuration (as ZabbixAPI). Additionally you will want to include a configuration variable for your Zabbix InstanceData. There is already a Guide on this in the poshbot repo, but for those unfamiliar the final result should look like this:

Note: ZabbixAPI is the variable used in functions to autoload credentials, and InstanceData is a hashtable of the friendly name and URI to your specific instance. If you have more than one instance you may add addition key/value pairs to the hashtable

@{
...
    PluginConfiguration = @{
        PoshBot.ZabbixPS = @{
            ZabbixAPI = (PSCredential "ZabbixServiceAcct", "0100sdfg02452042....")
            Instance = @{dev = "https://<fqdn>/zabbix/api_jsonrpc.php"; prod = "https://<fqdn>/zabbix/api_jsonrpc.php"}
        }
    }
...
}

poshbot.zabbixps's People

Contributors

joshcorr avatar

Watchers

 avatar  avatar

poshbot.zabbixps's Issues

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.