Archive for April, 2010

Nagios/NRPE Issue: Unable to read output

On Solaris you may met the following problem

“nagios – NRPE: Unable to read output”, may caused by the plugin, check the permission and libs

ldd /usr/local/nagios/libexec/check_disk , if it tell you “not found” , try to get the lib from =>  /usr/local/lib/ =>         /usr/local/lib/ =>   /usr/lib/ =>     /usr/lib/ =>       /usr/lib/ =>    /usr/lib/ =>         /usr/local/lib/ =>   /lib/ =>     /lib/

Read the rest of this entry »

No Comments

Nginx+php with fpm repository

Glad to announce we got nginx php fpm packaged.

Version: PHP 5.2.13 with Suhosin-Patch 0.9.7 + Nginx 0.7.65


Any advice/questions would be appericated

, ,

No Comments

Yum Repo problem : primary.sqlite.bz2: [Errno -1]

This proble happened a lot recently, no idea what’s wrong with CentOS.

updates/primary_db | 687 kB 00:02 [Errno -1] Metadata file does not match checksum

I try to clean the cache, but still doesn’t work

Solution: Remove the following lines in /var/cache/yum/updates/repomd.xml

<data type=”primary_db”>

<location href=”repodata/primary.sqlite.bz2″/>

<checksum type=”sha”>d36796c21c77035e68c2ae2e7dc486d75d4659cd</checksum>


<open-checksum type=”sha”>5c914da1b9b979b2097ff69062ca21783d5190d7</open-checksum>



No Comments

Install Php5.2 with Yum

Install Php5.2.x with yum.
1. Enable development repositories on CentOS, but only for i386
2. Only for Test Enviorment, not recommend for Prod. 🙂
$rpm –import
# create /etc/yum.repos.d/utterramblings.repo
$vi /etc/yum.repos.d/utterramblings.repo
# paste the following lines
name=Jason's Utter Ramblings Repo

$yum update php

No Comments

Build HA cluster with keepalived

OS: CentOS 5.4
keepalived, openssl097a, lighttpd
—————|–lb_master (
Visitors -(VIP) -|
—————|–lb_slave (

Read the rest of this entry »

No Comments

Change vdi UUID with VBoxManage

We can directly copy the vdi for new VirtualBox vms.but the UUID will be the same as old one. so we need to change the UUID

$VBoxManage internalcommands setvdiuuid /opt/vms/c52_master.vdi
VirtualBox Command Line Management Interface Version 3.0.10
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
UUID changed to: aa742648-c3f4-408f-bde8-827dadff5cca

if in Windows, find the installation directory of Virtualbox and then run the VBoxManager.exe command in cmd lines.


1 Comment