That time of year again

It’s almost new year and the urge to upgrade my blog comes back. Well, has been a while since I’m using Octopress and so far was working great, but the lack of updates(I know Octopress 3.0 is coming) and plugins make me wanted something new, I started searching for a replacement, I tried Pelican, Hexo and Ghost. The standard choice would be Pelican, since it’s Python. But Ghost was the chosen one, because it’s simple, fits my needs and the writing/preview post looks bad ass....

December 7, 2015 · 2 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