Archive | Linux RSS feed for this section

13 April 2012 0 Comments

How to check if SSL v2 is enabled using openssl

SSL v2 is weak and outdated protocol. All modern browsers and applications support SSL v3 and that’s why you should disable SSL v2 where possible. Using this command you can check if SSL v2 is enabled: openssl s_client -connect www.example.org:443 -ssl2

11 April 2011 0 Comments

How to test disk performance in Linux

A lot of performance issues can be caused by poor disk performance. Here’s how to test the read and write performance on a Linux system using dd. 1. Write a file 2x the size of the RAM to make sure we get the real write rate. In this example the RAM of the server is [...]

Tags: , ,
27 January 2011 0 Comments

Generating 2048 bit CSR with OpenSSL

Today, all certificate authorities require 2048 bit private key when requesting SSL certificates. This is how it’s done: openssl req -nodes -newkey rsa:2048 -keyout cert.key -out cert.csr

Tags:
7 October 2010 0 Comments

MailScanner not working after upgrading from etch to lenny

I was just upgrading a spam filter from Debian etch to lenny. After the upgrade, MailScanner seemed to be running but wasn’t processing the queue. When running MailScanner in debug mode I noticed these errors: Variable “$FIELD_NAME” is not imported at /usr/share/MailScanner/MailScanner/Message.pm line 6064. Variable “$FIELD_NAME” is not imported at /usr/share/MailScanner/MailScanner/Message.pm line 6067. Global symbol [...]

7 October 2010 0 Comments

Hobbit doesn’t recognize last apt-get update

After installing the hobbit-plugins package, all my lenny servers were marked red on the hobbit server and the error message was: “Last apt update: 175.7 day(s) ago”. The reason is that the hobbit-client relies on the file: /var/lib/apt/lists/lock but apt isn’t updating that anymore. To fix this I created a cron job to update apt-get [...]

Tags: , , ,
12 August 2010 0 Comments

Debugging logrotate issues

If your log files aren’t automatically rotated by the logrotate program there are probably some errors in the config files located in /etc/logrotate.d. To find out where the error is, run this command: logrotate -d -f /etc/logrotate.conf You will see some debug messages on the console and hopefully a error that will lead you to [...]

Tags: ,
10 August 2010 1 Comment

Monitoring Proxmox OpenVZ container’s bandwidth

Use these scripts to collect bandwidth data for each container. You can view the data on a graph and total usage by months. The scripts are originally received from Hutzoft but modified to work with the Proxmox directory structure. 1. Install rrdtool and PHP support apt-get install rrdtool php5

Tags: ,