Giter Site home page Giter Site logo

vertica-zabbix-template's Introduction

Template App Vertica

This repo contains Zabbix template and zabbix-agent configuration for simple Vertica monitoring.
TODO: Cluster nodes discovery, separate performance monitoring for every node.

Setting up

On your Vertica server:

sudo apt-get install python-pip
pip install --pre pytz
pip install vertica-python

Create Vertica user zabbix with password SECRET, create role monitoring, then grant monitoring to zabbix and set it default for user. Note that password you set here also must be written into userparameter_vertica.conf.

CREATE ROLE monitoring;
CREATE USER zabbix IDENTIFIED BY 'SECRET';
GRANT monitoring TO zabbix;
ALTER USER zabbix DEFAULT ROLE monitoring;

Then connect to your database:

\c mydatabase

Grant neccessary privileges to monitoring:

CREATE VIEW active_events_mon AS SELECT * FROM active_events;
CREATE VIEW cpu_usage_mon AS SELECT * FROM cpu_usage_mon;
CREATE VIEW database_backups_mon AS SELECT * FROM v_monitor.database_backups;
GRANT SELECT ON activee_events_mon TO monitoring;
GRANT SELECT ON cpu_usage_mon TO monitoring;
GRANT SELECT ON database_backups_mon TO monitoring;

Put vertica_stats.py to directory where zabbix-agent can execute it, e.g. /home/zabbix/scripts, ang chmod+chown it:

chown zabbix:zabbix vertica_stats.py
chmod 755 vertica_stats.py`.

Then put userparameter_vertica.conf to your zabbix_agentd.d directory, e.g. /etc/zabbix/zabbix_agentd.d/ and restart your zabbix-agent.

vertica-zabbix-template's People

Contributors

thordendal avatar

Stargazers

 avatar mlsokolova avatar E.V. Moebius avatar

Watchers

James Cloos avatar  avatar E.V. Moebius 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.