Using Grafana with InfluxDB

I’m using InfluxDB a lot lately, InfluxDB is a time-series database written in Go. InfluxDB is easy to setup and to use, it comes with a CLI like MySQL for example and the commands are very similar, also, you have a web UI to make things even easier. If you want to develop applications using InfluxDB there is a ton of client libraries(Go, Python, Java, Ruby, etc.) too. In this tutorial we are going use InfluxDB 0....

December 10, 2015 · 3 min · Danilo Fernando Chilene

Install Zabbix 2.4.6 from source on CentOS

I’m old fashion and in some cases I like to compile my stuff, Zabbix is one of these cases. You can add/remove features directly with ./configure, and mess around with some timeouts of zabbix_server and zabbix_agentd for example. In this tutorial, we will not change anything on the source code. We are going install Zabbix version 2.4.6 with MySQL, Nginx and PHP-FPM. This is the stack of what I use in production environments....

October 9, 2015 · 6 min · Danilo Fernando Chilene

Monitoring Microsoft SQL Server File Groups with Zabbix

In a previous post we installed the tools necessary to access Microsoft SQL Server, continuing our quest I needed to monitor some filegroups and decided to create something like Pyora. It only monitors filegroups (Primary used and Log used), but I plan to add more items like datasize, logcachehit, etc. The idea is pretty simple, ./pyssql.py fetch data from SQL Server via Zabbix. Follow the instructions below to install and use it:...

April 30, 2015 · 2 min · Danilo Fernando Chilene

Using Mustache template system with CFEngine

Mustache is a template system logic-less(no ifs, else’s or for loops) and can be used for HTML, config files, source code and so on. CFEngine 3.6.x have support for Mustache, in this tutorial we will create a template and a CFEngine rule to parse the template and generate the file that we want. Create the template file /tmp/template.mustache My hostname is: {{hostname}} My name is: {{name}} Fruits that I like: {{fruits}} Our CFEngine file /tmp/parse_template....

April 13, 2015 · 1 min · Danilo Fernando Chilene

Install Virtualenv and Virtualenvwrapper on Ubuntu 14.04

Virtualenv helps a lot when you work with various Python projects or when you have to use specific packages or different Python versions. In this tutorial, we are going to install Virtualenv on Ubuntu 14.04 and configure it on zsh. Install pip, virtualenv and virtualenvwrapper sudo apt-get install -y python-pip python-virtualenv virtualenvwrapper Create the directory for our virtual environments mkdir ~/.venvs Configure ZSH - .zshrc Edit the file ~/.zshrc and paste the content below:...

February 10, 2015 · 1 min · Danilo Fernando Chilene