Linux Admin Daily Usage

Published on Author gryzliLeave a comment

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”. find some_directory/ -type f -name ‘*.jpg’ -exec du -ch {} + |… 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 useradd nagios   Install openssl devel yum install openssl-devel   Install xinetd yum install xinetd     Install Nagios NRPE Current version of NRPE is… 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 yum install httpd php gd gd-devel gcc glibc glibc-common openssl perl perl-devel make mailx   Create nagios user/groups useradd nagios groupadd nagcmd usermod -a -G nagcmd nagios   Untar the source and install… Continue reading Nagios Core + Nagios plugins basic install from source on Centos 6.x