Linux Admin Daily Usage

Published on Author gryzli

Shell   Calculate the size of all files from a given type/extension Recently I need something for doing such calculations and end up with the following command line (found on stackexchange), which will calculate the size summary for all “*.jpg” files in “some_directory”.

    Using Linux moreutils¬† Recently I found out the existence… Continue reading Linux Admin Daily Usage

Centos 6 – Install Nagios client from source

Published on Author gryzliLeave a comment

We are assuming that our Nagios Server has IP: 192.168.1.1 By default client NRPE will listen on port 5666, so make sure it’s enabled on IPTABLES. Prerequisities Add nagios user

  Install openssl devel

  Install xinetd

    Install Nagios NRPE Current version of NRPE is 2.15.

  Install Nagios… Continue reading Centos 6 – Install Nagios client from source

Nagios Core + Nagios plugins basic install from source on Centos 6.x

Published on Author gryzliLeave a comment

Download nagios core source In my case the latest stable nagios is nagios-4.0.8 Here’s the URL: http://www.nagios.org/download/core/thanks/?t=1414494536   Install some dependecy packages

  Create nagios user/groups

  Untar the source and install

  Copy event handlers

  Syntax check nagios.cfg configuration file

  Create htpasswd containing access credentials The credentials… Continue reading Nagios Core + Nagios plugins basic install from source on Centos 6.x