Archive for July, 2011

C++ Simple Stream Socket Client Class

So I’ve been working on this project that heavily uses Sockets in C++, for the base of this project I’ve created a TCP Socket class so I concentrate on the protocol I’m using rather than worrying about the socket itself and I thought I would share this class with your. Read the rest of this entry »

, , , , , , , , ,

No Comments

Installing and Configuring Nagios Ubuntu 11.04

Nagios Logo

Nagios is the Industry Standard Network Monitoring Engine. OK great so what’s that mean, well Nagios is a server that monitors your hosts and services and will inform you if something goes wrong and when it is fixed again. It can monitor network services, host resources and even network probes such as temperature and moisture.

These features as well as many more make Nagios, by far, the most complete open-source Network Monitoring tool on the market, however with all these features comes complexity and Nagios has obviously been designed with the experienced Network Administrator in mind. But don’t worry too much, its not that difficult to learn as long as you take it one step at a time, and in today’s tutorial we’re going to look at the first step, actually getting it installed Read the rest of this entry »

, , , , , , , , , ,

No Comments

CPU Limit Ubuntu Server 11.04 Command Line

I’ve was encrypting some files the other day with GPG and found that while the encryption was taking place my computer ground to a halt because GPG was taking up all of my CPU. Normally I wouldn’t mind this as I would just setup a few jobs and go make a cup of tea. Then I though what would happen if I run my encryption jobs on a webserver, well it grinds to a halt. So how do we run encryption jobs on our servers without affecting users, Read the rest of this entry »

, , , ,

No Comments

Setting up FTP for your website Ubuntu 11.04

File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another over a TCP-based network, such as the Internet. Its most common use is uploading your website files to your webserver, allowing you to develop your website, upload it via FTP then refresh the page to see the updated page. If you’re setting up your own webservers its essential you have some way of uploading files and the best way to do this is with FTP. First you need to setup and configure an ftp server on your webserver, in this tutorial we are going to be using ProFTP. ProFTPD is a proven, high-performance and scalable FTP server, with a focus toward simplicity, security, and ease of configuration. Read the rest of this entry »

, , , , , , , , , , ,

No Comments

Nagios Memeory Check Plugin – download & install

When I noticed that Nagios had no memory check plugin I decided to make a simple bash plugin for Nagios to check how much memory my machines were using. It works by reading /proc/meminfo so it should work on every system were you can read /proc/meminfo (most Linux and Unix based systems) Read the rest of this entry »

, , , , , , , , , , , ,

No Comments

Adding Swap to any EC2 Instance

Custom Swap IconHave you every worried about your EC2 instance running out of memory, especially when you’re running a EC2 Micro instance witch only comes with a total of 613MB of memory. Well If you’re planning on running anything other then a basic web page you may run out of RAM can cause all sorts of problems, mainly it will cause your instance to crash. Well there is a tried an tested method to get around this called paging or swap space. Read the rest of this entry »

, , , , , , , , , , , , ,

1 Comment