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”. find some_directory/ -type f -name ‘*.jpg’ -exec du -ch {} + |… Continue reading Linux Admin Daily Usage

Nagios 4.x + Nagstamon / Nagios Checker plugin not showing all services

Published on Author gryzli

The problem Suddenly I had to update one nagios server from 3.x to 4.x. After the update there was some strange condition, when we had more then 100 services in a Warning/Critical state, Nagstamon or Nagios Checker were unable to show certain alerts.   It turned out that by default Nagios 4.0 split Warning/Critical results… Continue reading Nagios 4.x + Nagstamon / Nagios Checker plugin not showing all services

Centos 6.x / RHEL 6.x – Apache / Nagios 4.x – Install nagiosgraph plugin

Published on Author gryzli

Nagiosgraph gets performance data from Nagios and by using RRDtool generates nice graphics for this data. The plugin’s home page is here: http://nagiosgraph.sourceforge.net/ Prerequisites Here I assume that you already have Nagios Core 4.x installed with the appropriate Apache configurations.   Installing yum packages yum install perl-CGI rrdtool-perl perl-Time-HiRes perl-GD perl-CPAN perl-Module-Build   Install Nagios::Config… Continue reading Centos 6.x / RHEL 6.x – Apache / Nagios 4.x – Install nagiosgraph plugin

Centos 6 – Install Nagios client from source

Published on Author gryzli

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 gryzli

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