RSSAmplifier

Blog

bicofino.io

Recent content on bicofino.io

bicofino.ioRSS feed ↗21 posts

Latest posts

Pyora Updates

Hello all, If you used Pyora in the past, today I made some updates. Now it supports Python3 and the template was also updated to work with Zabbix 5.0, the 5.0 template is zabbix-template/Pyora.xml More info: https://github.com/danilochilene/Pyora

Migrating from Ghost to Hugo

Have to admit the blog was pretty outdated, with no new posts, lack of an SSL certificate. Being pretty busy lately, but now that I have some free time finally decided to migrate my blog from Ghost, it was running a pretty old version, and no way to upgrade to a new Ghost version without some hacking, so, I heard about Hugo before and since is Go and I’m using Go a lot lately, decided to…

Ubuntu 16.04 with Salt-API

Ubuntu 16.04 with salt-api 2018.3.2 Packages and configuration needed to get Salt-API running on Ubuntu 16.04. Salt ii salt-api 2018.3.2+ds-1 all Generic, modular network access system ii salt-common 2018.3.2+ds-1 all shared libraries that salt requires for all packages ii salt-master 2018.3.2+ds-1 all remote manager to administer servers via salt ii salt-minion 2018.3.2+ds-1 all client package…

OpenStack Ocata Deployment with OpenStack-Ansible using Ceph

OpenStack Ocata Deployment with OpenStack-Ansible using Ceph In this tutorial, we will deploy from zero a new OpenStack using OpenStack-Ansible. The purpose is to document all the steps that we did and the issues that we faced. We assume that you already have Ceph installed and configured, for Ceph deployment you can use https://github.com/ceph/ceph-ansible This tutorial is based on…

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…

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…

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…

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…

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}}…

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…

Install Kernel 3.10 on CentOS 6.5

CentOS 6.5 ships with kernel 2.6 and it’s a quite old for now(CentOS 7 already comes with 3.10), but compile a kernel on CentOS is a mess and it’s not recommended. But fear no more, guys from Elrepo took care of that for us and made a package, let’s see how we can install it. Enable ELRepo Project repository rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh…

Pyramboia - a simple way to test webservices

I’m learning Django 1.7 lately and nothing better than practice and create something from scratch. I have a bunch of scripts to tests webservices(XML, soap, etc.) in python using requests library, it works well so far. It returns the time it spent running, the result in an XML format and based on these data I make decisions(send email, feed it to a monitoring tool, etc.). When it’s 1…

Monitoring CFEngine with Zabbix

I created a template to monitor CFEngine with Zabbix, that monitor processes, memory use and the promise summary log. Below what is included on the template: Process CF-serverd Process CF-monitord Process CF-execd Memory use process CF-serverd Memory use process CF-monitord Memory use process CF-execd Log cf-engine - Log view of /var/cfengine/promise_summary.log CFEngine listen port 5308 and…

Using Python to access SQL Server

Install the required packages UnixODBC and FreeTDS packages yum install -y unixODBC unixODBC-devel freetds Configure unixODBC Add the content below to the file /etc/odbcinst.ini [FreeTDS] Description=ODBC for SQL Server Driver=/usr/lib/libtdsodbc.so Setup=/usr/lib/libtdsS.so FileUsage=1 Configure FreeTDS Add the content below to the file /etc/freetds.conf tds version = 8 client charset = UTF-8…

Zato Vagrant Box

Zato is the next generation ESB and application server written in Python and released under a commercial-friendly LGPL license. We are using Zato to implement a gateway to various XML services and to help the easy adoption of it we delivered a Vagrant box with Ubuntu 14.04 64 bits and Zato 1.1 pre-installed with PostgreSQL and Redis Click here to download it. Deploy it and start Zato vagrant box…

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…

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…

Almost new year and new blog

The past In the last year I was using Mezzanine as CMS that is built using the Django Framework, it’s clean and based on Twitter Bootstrap theme. For my needs it works, but for a reason that I don’t remember I never got syntax highlighting working on it. A whole new easy world It all began when I started using Gitlab as repository and use Markdown on a daily basis to write stuff on it.

Epel Repository on CentOS 6.x

Import the key [root@ambush ~]# rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6 Download the Epel package and install it [root@ambush ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [root@ambush ~]# rpm -ivh epel-release-6-8.noarch.rpm Preparing... ########################################### [100%] 1:epel-release…

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…

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…