Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Zabbix management command-line client

Project Description
===============================
zabbix-cli-ent
===============================

Zabbix management command-line client

* Free software: Apache license
* Source: https://github.com/orviz/zabbix-cli-ent
* Bugs: https://github.com/orviz/zabbix-cli-ent/issues


zabbix-cli-ent allows to perform actions on a Zabbix server
through command line.

Zabbix web interface usually is the most suitable way for
administration tasks, however there are times when you
need to modify settings non-interactively (scripts, ..) or
even certain actions easily done by command line.


Getting Started
---------------

Install `zabbix-cli-ent` using `pip`, either by getting the
version uploaded in PyPi:

# pip install zm

or the one from the current repo:

# git clone https://github.com/orviz/zabbix-cli-ent.git
# cd zabbix-cli-ent && pip install .


### Basic Usage

# zm --help

will list the current actions that can be performed.

Depending on the subcommand it will have different options;
rely on the `--help` option to learn about each one.


**NOTE**: You can provide the connection details as options or
via a configuration file. Either way, the login, password
and url must be provided in order to get a successfully
connection.

Use it programatically
----------------------

You can also use zabbix-cli-ent as a library to get data from a
Zabbix API.

For that you first need to provide the credentials to be able to
access any of the available functionality. As an example:

.. code:: Python

import zm.trigger
from oslo.config import cfg

CONF = cfg.CONF
CONF.username="foo"
CONF.password="bar"
CONF.url="https://example.com/zabbix"


print zm.trigger.list(host="host.example.com",
priority="DISASTER",
omit_ack=True,)

Extending Functionality
-----------------------

The code allows to easily extend the functionality. To do
so:
1. Create a new `Command` inherited class that will
handle the new functionality.
* (`__init__()`) Here you will define the new
action's options.
* (`run()`) The work to be done.
2. Add the brand new class to:
`commands.py` > `add_command_parsers()`

There you go!
Release History

Release History

History Node

1.0.5.g4c1c78c

History Node

1.0.3.gdafc207

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zm-1.0.tar.gz (13.8 kB) Copy SHA256 Checksum SHA256 Source Dec 11, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting