Skip to content

vadv/mamonsu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mamonsu: Active zabbix agent

Build status

image

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

About

Zabbix active agent for PostgreSQL monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.6%
  • Other 1.4%