Code Monkey home page Code Monkey logo

mamonsu's Introduction

mamonsu: Active zabbix agent

Build status

https://travis-ci.org/postgrespro/mamonsu.svg?branch=master

Installation

Install via pip:

$ pip install mamonsu

Install from git:

$ git clone ... && cd mamonsu && python setup.py build && python setup.py install

Build deb:

$ apt-get install make dpkg-dev debhelper python-dev python-setuptools
$ git clone ... && cd mamonsu && make deb && dpkg -i mamonsu*.deb

Build rpm:

$ yum install make rpm-build python2-devel python-setuptools
$ git clone ... && cd mamonsu && make rpm && rpm -i mamonsu*.rpm

Build exe:

$ pip install cx_freeze
$ git clone ... && cd mamonsu && python setup.py build

Configure

Export template for zabbix:

$ mamonsu -e template.xml

Import this file in web interface of zabbix: Configuration => Templates => Import.

Add this template like PostgresPro-Linux at your monitoring host.

Generate config on monitring host:

$ mamonsu -w /etc/mamonsu/agent.conf

Change previously zabbix server address and client hostname:

$ vim /etc/mamonsu/agent.conf

$ cat /etc/mamonsu/agent.conf

[zabbix]
client = zabbix_client_host_name
address = zabbix_server_ip

[postgres]
user = postgres
password = None
database = postgres
host = localhost
port = 5432
query_timeout = 10

[log]
file = /var/log/mamonsu/agent.log
level = INFO

Run

$ mamonsu -c /etc/mamonsu/agent.conf -p /var/run/mamonsu.pid

mamonsu's People

Watchers

 avatar  avatar  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.