Giter Site home page Giter Site logo

zabbix-scripts's Introduction

zabbix_get_events

Perl script which recollects zabbix events, run zabbix_get_events --help to see which parameters take. Configure user / password / zabbix server at head of the script

zabbix_monit_active_pasive

Configuration

User, password y server of zabbix are configured on /etc/zabbix/zabbix_api.conf or ~/.zabbix_api.conf or the file passed at --config parameter The config file have a ini format: [zabbixapi] user=user password=password server=ip_or_name

Parameters

Python script which take 3 parameter (item, value and template), optionally a config file.

Use

Having any host with the template applied, and with an item which tell us if the host is in active mode or pasive mode, this script will enable or disable all the items belong to the template when the item have the value passed by parameter. It will never disable the item which say if the host is master or slave. Note that the value is the value of the item when the host is in active mode

Example

We are using it on production, for monitoring ActiveMQ (I will publish zabbix template (for the moment in spanish)):

python /opt/scripts/zabbix_monit_active_pasive \
	--item-key 'jmx["org.apache.activemq:type=Broker,brokerName={$BROKER}",Slave]' \
	--value false \
	--template Plantilla_ActiveMQ_MasterSlave \
	>> /var/log/zabbix/activemq.log 2>&1 

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.