Install Nagios Core 4.1.1 in Debian Jessie Part 1

About Nagios

Nagios is an enterprise class, open source software that can be used for network and infrastructure monitoring. Using Nagios, we can monitor servers, switches, applications and services etc. It alerts the System Administrator when something goes wrong and also alerts back when the issues have been rectified.


Using Nagios, you can:

  • Monitor your entire IT infrastructure.
  • Identify problems before they occur.
  • Know immediately when problems arise.
  • Share availability data with stakeholders.
  • Detect security breaches.
  • Plan and budget for IT upgrades.
  • Reduce downtime and business losses.


Make sure your server have installed with fully working LAMP stack. If not, follow the below link to install LAMP server.

Then install the following prerequisites:

apt-get install build-essential libgd2-xpm-dev apache2-utils unzip curl
a2enmod rewrite
a2enmod cgi

Create Nagios User And Group

Create a new nagios user account:

useradd -m nagios
passwd nagios

Create a new

Continue Reading

Install LAMP on Debian Jessie


LAMP is a combination of operating system and open-source software stack. The acronym LAMP came from the first letters of Linux, Apache HTTP Server, MySQL or MariaDB database, and PHP/Perl/Python. This tutorial describes how to install it on a Debian Jessie distribution, but it should work on previous version of Debian and derivatives.

1. Install Apache

Apache is an open-source multi-platform web server. It provides a full range of web server features including CGI, SSL and virtual domains.

To install Apache, enter:

apt-get install apache2

Test Apache:
Open your web browser and navigate to http://localhost/ or http://server-ip-address/.


2. Install MariaDB


Under Debian systems, it’s highly recommended to install ‘python-software-properties‘ package, before heading up for the MariaDB installation from official repositories.

apt-get install python-software-properties

Next, import and regtister the GPG key, which enables apt to verify the integrity

Continue Reading

Create an LXC Container on Proxmox 4.1

With our server installed we are going to  create our first VM using LXC.


We have to select the node where we want to create the VM (if we have a cluster we could pick any node), the VMID, the hostname (FQDN or not) and the root password:


Next step is select the storage that contains the templates and pick one for the new machine (you can download from here or have your own).


Go next and put the disk and the storage that should contain the VM (be careful with this value, since you won’t be able to change it easily).


Next we have to set the CPU Limit and CPU Units for the machine.


We also have to set the memory assigned to the machine…


… and the network parameters.


We could set a different DNS Server or just leave the same of the host.


As final step

Continue Reading

Install Proxmox 4.1

First thing to do is download and burn the ISO file of Proxmox VE Server 4.1:

Boot and pick the installation process.


Agree with the EULA.


Select the Hard drive to install the OS.



Set up the TimeZone and the Location.


Set the root password and an email.


Specify the hostname (FQDN) and network parameters.


Wait until the installation process is finished.



Reboot the system and ready to start managing it through th GUI


Continue Reading

How to set IP over Infiniband.

With Infiniband be could gain more speed for data transfer between 2 nodes. There are a lot of ways to use Infiniband. In this particular case we will use it for TCP/IP connection. It’s not the fastest method for data transfer but it’s just a start. We could user iSCSI over Infiniband as well. We will work with QLE7342 Card on Debian Jessie.

  • First we will configure some kernel options on grub. We just need to modify this line in /etc/default/grub
  • for
    • GRUB_CMDLINE_LINUX_DEFAULT=”quiet options ib_qib singleport=1 krcvqs=2″
  • (Here you could find the configuration for your processor)


  • We update grub’s configuration:
    • update-grub
  • And reboot the server.


  • Once again on our server, we have to install the Infiniband tools and some dependencies:
    • apt-get install -y build-essential infiniband-diags opensm
  • Next we need to add the modules to /etc/modules:

# Protocol modules
# Common modules

# IP

Continue Reading

How to Mount an iScsi device.

These steps work with Debian Jessie and a Fibrechannel QLogic ISP2432 card.

  • Then we need to update:
    • apt-get update
  • And install the multpath package:
    • apt-get install multipath-tools
  • Once we have Multipath installed, we need to rescan looking for any device:
    •   for host in $(ls -1d /sys/class/fc_host/*); do echo “1” > ${host}/issue_lip; done
    •   for host in $(ls -1d /sys/class/scsi_host/*); do echo “- – -” > ${host}/scan ; done
  • After that we could check the devices:
    • multipath -ll
  • That command list all the devices detected.
  • To set the storage for autodetect and automont we have to find the ID with:
    • /lib/udev/scsi_id -g -u -d /dev/sdb
  • This is a simple example of the file /etc/multipath.conf that
  • Continue Reading