When monitoring the performance of your Apache web server, you should use system level tools such as top, vmstat, free, netstat and so on. In addition, Apache it’s self has a nice feature called “server-status” which allows you to monitor the Apache performance via a web browser. A screen shot
Read moreGet help with Linux, Automation, Cybersecurity and more. AGIX staff have the know-how and experience to help your organisation with best-practices, current technology in various Cloud environments including Amazon AWS. Our technicians support Ubuntu, Redhat, Databases, Firewalls, Ansible and Terraform, Storage and more.
This page shows examples of our work that AGIX shares freely with you. For a fully supported compute environment, contact our team to find out how we can help your organization move forward in the right way.
Contact our friendly team to get started.
Update OpenSSL on Ubuntu for the HeartBleed bug
On Ubuntu, issue the following commands to update the lest possible packages while patching the Heartbleed bug. apt-get update apt-get install openssl libssl1.0.0 And then restart any services that need it.
Read moreCreate your own Munin Plugin on Redhat/CentOS
This article explains how to create your own munin plugin. We will monitor the number of Apache and/or Nginx processors running. On the munin-node (client), create a file as “/usr/share/munin/plugins/webserver-count” and put the following content into it: #!/bin/sh case $1 in config) cat <<‘EOM’ graph_title Webserver Count graph_vlabel load
Read moreInstall Memcached for Magento (or any PHP site) on CentOS/Redhat
This article explains how to install and configure memcached for Magento (or any PHP site) on a Redhat or CentOS server. Install memcached: yum install memcached php-pecl-memcache -y Now edit your “/etc/sysconfig/memcached” file to look something like this: PORT=”11211″ USER=”memcached” MAXCONN=”1024″ CACHESIZE=”256″ ## Accept connections from another server (192.168.1.2)? #OPTIONS=”-l
Read moreEnabling Triggers within RDS (Amazon)
By default, Amazon’s AWS RDS databases don’t permit Triggers. This article explains how to change that. Source: “http://techtavern.wordpress.com/2013/06/17/mysql-triggers-and-amazon-rds/”. Open the RDS web console. Open the “Parameter Groups” tab. Create a new Parameter Group. On the dialog, select the MySQL family compatible to your MySQL database version, give it a name
Read moreInstall Composer on CentOS/Redhat
This article explains how to install Composer on a CentOS and Redhat system. curl -sS https://getcomposer.org/installer | php You should get something like this in return. Note that i have an old version of PHP on this system so it warns me about it: [root@server ~]# cd ~ [root@server ~]#
Read moreUse a ‘dd’ image as a disk for a VirtualBox guest
This article explains how to use a ‘dd’ image as the disk for a VirtualBox guest machine. The process is one step; convert the ‘dd’ image to ‘VDI’ format as i’ve done in the example below: VBoxManage convertdd dd-image.raw sda.vdi –format VDI –variant Fixed The above command will leave the
Read moreFix Munin Graphs – When they wont update
This article explains how to fix Munin graphs that wont update or have stopped updating. The official FAQ (http://munin-monitoring.org/wiki/faq#Q.Thegraphsarenotupdatinganymore) doesn’t really say much about it. So do this: More info: This is an interesting article related to the issue. “http://grokbase.com/t/sf/munin-users/1166b12gsk/increase-in-period-for-munin-cron-or-munin-update-results-no-graphs”. First, disable munin cron task: mv /etc/cron.d/munin ~/munin.cron Wait until
Read moreGet MySQL Database Sizes
Log into MySQL and issue the following command as it is: SELECT table_schema AS “Database name”, SUM(data_length + index_length) / 1024 / 1024 AS “Size (MB)” FROM information_schema.TABLES GROUP BY table_schema; And you’ll get something like the following: +——————–+————–+ | Database name | Size (MB) | +——————–+————–+ | my_db1 |
Read moreEncrypt Large Files With OpenSSL Using Public/Private Keys
This article explains how to encrypt large files with OpenSSL and Public/Private keys. Create your key-pair: openssl req -x509 -nodes -newkey rsa:2048 -keyout private.pem -out public_nopass.pem Encrypt your larger file: openssl smime -encrypt -aes256 -in bigfile.tar -binary -outform DEM -out bigfile.tar.ssl public.pem Decrypt your file: openssl smime -decrypt -in bigfile.tar.ssl
Read more