Dec 28

How To Monitor PHP-FPM and Nginx With Zabbix

This is another quick tutorial, this time I’ll show you how to configure your server to allow zabbix to monitor Nginx and PHP-FPM. This tutorial assumes you’ve already installed zabbix on your monitoring server and also the server to be monitored. For simplicity sake, let’s call your zabbix server (the one doing the monitoring) zabbix_mon and let’s call the server you would like to monitor, server1. Zabbix is an open source monitoring solution available here, Nginx is an httpd and reverse proxy server, found here and php-fpm is an alternative PHP FastCGI found here.
Ok, with that out of the way, let set this up.
Continue reading

Dec 13

Distributed JMeter Testing Via SSH

JMeter is an open source application written in Java, developed by the folks from The Apache Software Foundation, which allows one to perform load tests against their webservers.
JMeter allows you to run tests from you workstation against your servers, but you can also setup virtual test servers that would allow you to run a heavier load.
If you run JMeter from your machine, you’ll probably end up consuming tons of cpu and memory, depending on how large your tests are, so, to avoid that, you can seetup your workstation as a JMeter MASTER and any number of virtual machines as JMeter SLAVES, which you will be able to control from your workstation. This setup is called Distributed JMeter Testing and that is what I’ll walk you through in this tutorial.

Continue reading

Jul 23

How To Setup Linux High Availability

To continue from where I’ve left off on my previous post, this time we’ll setup heartbeat to monitor both of our load balancers, thus allowing us to have what one may call high availability/ failover, between both our load balancers. This method can be used on any server you wish, you can for example have Heartbeat monitor mysql, apache or any other server. In this example, we’ll set up Heartbeat to monitor our crossroads load balancer.

Continue reading

Feb 17

Dynamic DNS with 1&1

I’ve been using FreeDNS as my dynamic dns servers for my domains registered with 1&1 for the past few years. They offer great service and have a large variety of options when it comes down to configuration and so forth. With that being said, just recently I started noticing their servers weren’t responding and my site all of a sudden went down since the dns data wasn’t getting updated. I’ve started doing searches on alternatives and found a few, but none as straight forward as FreeDNS from … until last night.

Continue reading

Sep 23

How to connect to Microsoft SQL server from Linux via command line

Although 95% of my work is done in Linux and MySQL, there are those unfortunate times I need to manipulate some data on a Microsoft SQL server. I didn’t want to install any apps on my computer that weren’t open source and I didn’t want to use a Micro$uck app through wine either. So after a few searches I came across an open source project called Sqsh. In this tutorial I’ll show you how to install sqsh and access a Microsoft SQL server from the Linux command line.

Continue reading