Tags » Nagios

ERROR: Got error on installing nagios-plugin on centos7 "In file included from localcharset.c:26:0:"

Build failure on installing nagios plugin on centos7,


In file included from localcharset.c:26:0:
./stdio.h:456:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
make[4]: ***  Error 1
make[4]: Leaving directory `/opt/installer/nagios-plugins-1.4.16/gl'
make[3]: ***  Error 1
make[3]: Leaving directory `/opt/installer/nagios-plugins-1.4.16/gl'
make[2]: ***  Error 2
make[2]: Leaving directory `/opt/installer/nagios-plugins-1.4.16/gl'
make[1]: ***  Error 1
make[1]: Leaving directory `/opt/installer/nagios-plugins-1.4.16'
make: ***  Error 2… 109 more words

Monitoring free inodes on Linux with Nagios/Adagios

This howto assumes:

  • nrpe is installed and working on the client
  • CentOS 6/7 on both sides
  • Nagios/Adagios server with pynag installed and working
  • 213 more words

Nagios directory Structure

Nagios Directory Structure

Main Config File

Log File

Object Config Files

Nagios Plugins

/usr/local/nagios/libexec // defined in /usr/local/nagios/etc/resource.cfg file

Nagios Web interface… 48 more words


Creating custom okconfig templates

For this example I have a host (google.com) with HTTP, HTTPS, DNS, and Ping checks.

I’ve customized some of the service checks and want to create a template called “Google Server” from this host and it’s services. 609 more words


Postgresql 9.2 monitoring with Adagios on CentOS 7

On the PostgreSQL server:

Note: You may need to deal with SELinux.

Install some needed perl modules, download the check script and make it executable: 1,052 more words


Varnish 4 monitoring with Adagios on CentOS 7

On the Varnish server:

Install prerequisites:

yum install git automake libtool varnish-libs-devel

Clone the varnish-nagios repo, autogen, configure, and make:

git clone https://github.com/varnish/varnish-nagios.git
cd varnish-nagios
… 538 more words

Nginx 1.6.3 status monitoring with Adagios on CentOS 7

Download check_nginx_status.pl:

cd /usr/lib64/nagios/plugins/
wget https://raw.githubusercontent.com/regilero/check_nginx_status/master/check_nginx_status.pl

Install prerequisites:

yum install perl-libwww-perl nagios-plugins-perl

Create a check command:

pynag add command command_name="2ks-check_nginx_status" command_line='$USER1$/check_nginx_status.pl -H $HOSTADDRESS$ -p $_SERVICE_PORT$ -s $_SERVICE_SERVER_NAME$ $_SERVICE_OPTIONAL_ARGUMENTS$'
… 194 more words