Install Nagios Core 4.1.1 in Debian Jessie Part 2

We already have a Nagios Core installed. Now we want to add some very nice add ons to the platform.

Download additional software

Go to Mathias Kettner web and download the last version of Check_MK.

wget -O /usr/src/check_mk-1.2.6p16.tar.gz http://mathias-kettner.com/download/check_mk-1.2.6p16.tar.gz

We also need Nagvis and PNP4Nagios

wget -O /usr/src/nagvis-1.8.5.tar.gz http://www.nagvis.org/share/nagvis-1.8.5.tar.gz 
wget -O /usr/src/pnp4nagios-0.6.25.tar.gz  http://downloads.sourceforge.net/project/pnp4nagios/PNP-0.6/pnp4nagios-0.6.25.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fpnp4nagios%2Ffiles%2FPNP-0.6%2F&ts=1460394997&use_mirror=pilotfiber

PNP4Nagios

Prerequisites

Continue Reading

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.

Features

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.

Prerequisites

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_Linux_Apache_MySQL_PHP

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/.

Apache2-Ubuntu-Default-Page

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.

Imagen10

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:

Imagen11

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).

Imagen12

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).

Imagen13

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

Imagen14

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

Imagen15

… and the network parameters.

Imagen16

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

Imagen17

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:

http://www.proxmox.com/en/downloads/item/proxmox-ve-4-1-iso-installer

Boot and pick the installation process.

Imagen01

Agree with the EULA.

Imagen02

Select the Hard drive to install the OS.

Imagen03

 

Set up the TimeZone and the Location.

Imagen04

Set the root password and an email.

Imagen05

Specify the hostname (FQDN) and network parameters.

Imagen06

Wait until the installation process is finished.

Imagen08

 

Reboot the system and ready to start managing it through th GUI https://192.168.1.133:8006/

Imagen09

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
    • GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
  • 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
rdma_ucm
ib_umad
ib_uverbs

# 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