Being Lazy With Fabric - Part 1

I’m lazy when come to do repetitive tasks and it’s nice when machines do the work for us, specially boring ones like us sysadmins have to do daily. Example: Check if that file exists for me at N servers. Install a package on hundreds of servers. Delete a user on all servers and so on... Haven't you heard of fabric yet? Fabric is a Python library that provides automation using SSH(Paramiko), from copy files, execute tasks(normal or using sudo), prompt the user for input, deploy and whatever you can think of....

March 26, 2014 · 6 min · Danilo Fernando Chilene

Installing Python 2.7.8 on CentOS 6.5

CentOS 6.5 still come with Python 2.6 and I need 2.7, below a simple tutorial how to achieve this with no pain and not messing with installed Python. Update CentOS and install development tools yum -y update yum groupinstall -y 'development tools' Also you need the packages below to enable SSL, bz2, zlib for Python and some utils: yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget Installing Python 2.7.8 from source Download Python and extract it...

January 16, 2014 · 1 min · Danilo Fernando Chilene

Monitoring Oracle with Zabbix

In the past I used Zabora to monitor Oracle, but for large environments was a pain to admin and let’s not talk about monitor tons of tablespaces. I tried to use other things like Orabbix but since is Java I preferred stay away. Today Zabbix have some nice improvements like macros and Discovery, so we can set the database settings(user,password,database and such) on the host using macros and not hard code it on a script that you have to access a server to change it....

December 9, 2013 · 3 min · Danilo Fernando Chilene

Application test with Python

Multi-Mechanize is an open source framework for performance and load testing. It runs concurrent Python scripts to generate load (synthetic transactions) against a remote site or service. Test output reports are saved as HTML or JMeter-compatible XML. I will use pip to install the package but you can download the source and install it manually: (bicofino.io)danilochilene@undead:~$ pip install multi-mechanize Downloading/unpacking multi-mechanize Downloading multi-mechanize-1.2.0.tar.gz Running setup.py egg_info for package multi-mechanize Downloading/unpacking Mechanize (from multi-mechanize) Downloading mechanize-0....

December 6, 2013 · 3 min · Danilo Fernando Chilene