Posts

Showing posts from August, 2011

Basic Zenoss Install

Download Zenoss RPM-GPG key
wget http://dev.zenoss.com/yum/RPM-GPG-KEY-zenoss

Import key
rpm --import RPM-GPG-KEY-zenoss

Download Zenoss Core
wget http://sourceforge.net/projects/zenoss/files/zenoss-3.1/zenoss-3.1.0/zenoss-3.1.0.el5.x86_64.rpm/download

Install Zenoss Core
yum install zenoss-3.1.0.el5.x86_64.rpm

Perform first-boot initialization
/etc/init.d/zenoss start

Once completed, connect to http://<your_server_name>:8080 with a web browser and run through the initial setup wizard i.e. set admin username and password.

Check server for rootkits with rkhunter

Step 1. Download the source files
mkdir $HOME/rkhunter
cd $HOME/rkhunter
wget -q http://sourceforge.net/projects/rkhunter/files/rkhunter/1.3.8/rkhunter-1.3.8.tar.gz

Step 2. Untar the archive
gzip -d rkhunter-1.3.8.tar.gz
tar -xvf rkhunter-1.3.8.tar

Step 3. Installation
cd $HOME/rkhunter/rkhunter-1.3.8
./installer.sh --install

Step 4. Try it out
/usr/local/bin/rkhunter -c

Remove Files with Special Characters

If you ever create a file with special characters by accident e.g.

--strip-options

You can delete by using

rm -- --strip-options

The initial -- means that no more arguments will appear on the command line thus --strip-options is treated at the file name

Repair All MYI Files with a single command

cd /var/lib/mysql

find . -name *.MYI -exec myisamchk -r '{}' \;