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
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
$ mamonsu -c /etc/mamonsu/agent.conf -p /var/run/mamonsu.pid