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 www.sunfreeware.com
libintl.so.8 => /usr/local/lib/libintl.so.8
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libavl.so.1 => /lib/libavl.so.1
libm.so.2 => /lib/libm.so.2
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
Details: http://www.linuxdict.com/lemp/readme.txt
Any advice/questions would be appericated
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
http://mirror.nus.edu.sg/centos/5/updates/x86_64/repodata/primary.sqlite.bz2: [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>
<timestamp>1269791791</timestamp>
<open-checksum type=”sha”>5c914da1b9b979b2097ff69062ca21783d5190d7</open-checksum>
<database_version>10</database_version>
</data>
Install Php5.2 with Yum
Install Php5.2.x with yum.
1. Enable development repositories on CentOS, but only for i386
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
2. Only for Test Enviorment, not recommend for Prod. ![]()
$rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# create /etc/yum.repos.d/utterramblings.repo
$vi /etc/yum.repos.d/utterramblings.repo
# paste the following lines
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
$yum update php
http://www.jasonlitka.com/yum-repository/
Build HA cluster with keepalived
OS: CentOS 5.4
Software:
keepalived, openssl097a, lighttpd
Arch:
—————|–lb_master (192.168.1.101/24)
Visitors -(VIP) -|
—————|–lb_slave (192.168.1.102/24)
VIP: 192.168.1.100/24
Install
Read the rest of this entry »
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.