Varnish Nagios Plugin

Install

To use this plugin you need to have varnishstat installed which is installed by default when you install varnish.

Perl is also required for this plugin. If you don’t have Perl installed you can install in by running the command below
sudo apt-get install perl
or
sudo yum install perl

Now you can download the file above and extract it:
wget <a href="http://www.toms-blog.com/wp-content/uploads/2013/07/check_varnish-v1.0.tar.gz">http://www.toms-blog.com/wp-content/uploads/2013/07/check_varnish-v1.0.tar.gz</a>
tar -xzf check_varnish-v1.0.tar.gz

Read more

Share

Configure NFS shares in Openfiler

In this article I’ll explain how-to configure a NFS share in Openfiler and then add it as a datastore to your vSphere servers. I’ll take for granted that you already have an Openfiler server up and running.

1 – Enable NFS service

As always point your browser to https://<openfiler_address&gt;:446, login and from the main screen go to the Services tab and enable the NFSv3 service as shown below.
Share

Install PHPize on Debain-Ubuntu

Just install a bunch of package-

apt-get install autoconf automake libtool m4
apt-get install php5-dev
apt-get install libcurl3 php5-dev libcurl4-gnutls-dev libmagic-dev
apt-get install php-http make
pecl install pecl_http

And adding "extension=http.so" to php.ini (Normally located at /etc/php5/apache2/php.ini)

Then restart Apache (sudo service apache2 restart).

If in doubt, check your apache logs:
sudo su —
cd /var/log/apache2
tail -25 error.log

Share

PXE Boot Server of CentOS 5 on a CentOS setup

Setting up PXE Server

Install some packages that is required for PXE server.
[root@dlp ~]# yum -y install system-config-netboot syslinux xinetd tftp-server

Run TFTP server
[root@dlp ~]# vi /etc/xinetd.d/tftp

# line 14: change
disable =no
[root@dlp ~]# /etc/rc.d/init.d/xinetd start

Starting xinetd: [ OK ]

[root@dlp ~]# chkconfig xinetd on

Install DHCP server-

Read more

Share

Install Openmediavault On Debian Squeeze

Introduction

This guide is for people that have used the Debian Squeeze Standard Installation or Debian Squeeze Gnome Installation guide to install Debian onto their microserver. If you're looking to install OpenMediaVault as a standalone system then see install OpenMediaVault instead.
Prerequisites
Debian Squeeze installed on your microserver

Installation

Configuring The Sources
If you're on Gnome then start the Root Terminal
Type: nano /etc/apt/sources.list to edit your package source file
At the bottom of the file add all of the following:

# Deb Multimedia
deb http://www.deb-multimedia.org squeeze main non-free
deb-src http://www.deb-multimedia.org sid main

Read more

Share

Creating Custom Built Debian 6 (Squeeze)

There is a well documented official way to create standard Debian CDs. However, sometimes it is nice to have a CD or DVD which just contains a subset of Debian Packages to fit personal needs. The following script is made for creation of such a CD image. By default, it fetches all packages installed on the local computer from the configured apt package sources.

Download the Shell Script from here-

make-debian-cd

Bevor running the script make sure all packages installed on your system are available for apt-get. If in doubt update the package repository and clear the apt cache by running

# apt-get update && apt-get upgrade -y && apt-get clean

Call the script with the -h flag to get all avaliable options:

$ ./make-debian-cd.sh -h

Usage: make-debian-cd.sh [Options]

Options:

-i Image name [debian-squeeze-20110528]
-c CD-Rom mount point [/media/cdrom0]
-s Selection [localhost]
-v Installer version [current]
-m Install dir medium [network]
-d Debian mirror [http://ftp.de.debian.org/debian]
-e Path to extra packages [.]
-a List of additional packages (Comma separated)
-O Don't use override files
-I Don't include install dir
-M Don't create CD image
-V Verify CD image size before making the image

Selection may be a text file generated by "dpkg –get-selections".

Read more

Share

Installing MondoArchive in Debian 6

MondoArchive is an excellent backup tool found in Linux. However, the installation process is not obviously clear in debain- it lacks of a simple clue to let you know how to install in the easiest way in debian by using 'apt-get'.

All you need is to add this simple repository to add in your /etc/apt/sources.list file-

deb ftp://ftp.mondorescue.org/debian 6.0 contrib

Then hit-

apt-get update
apt-get install mondo

There you go… it is installed 🙂

Share

Install Openmediavault On Debian Squeeze

OpenMediaVault is the next generation network attached storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP media server, RSync, BitTorrent client and many more. Thanks to the modular design of the framework it can be enhanced via plugins.

Prerequisites

Debian Squeeze installed on your server.

Installation

Configuring The Sources
If you're on Gnome then start the Root Terminal
Type: nano /etc/apt/sources.list to edit your package source file
At the bottom of the file add all of the following:
# Deb Multimedia
deb http://www.deb-multimedia.org squeeze main non-free
deb-src http://www.deb-multimedia.org sid main

# OpenMediaVault
deb http://packages.openmediavault.org/public omnius main
Press CTRL+X to exit
Press Y when prompted if you want to save the modified buffer
Press ENTER on File Name to Write to overwrite the existing file
Type apt-get update to fetch package lists from the sources we just added
Type apt-get install deb-multimedia-keyring to install the public keys for the Deb Multimedia repository
Type apt-get install openmediavault-keyring to install the public keys for the OpenMediaVault repository
Type y if you're asked if you want to install the packages without verification

Read more

Share