Home » Categories » Products » Nagios Plugins » Installation

Nagios Plugins - Installing Nagios Plugins From Source

Overview

This KB article provides instructions on installing Nagios Plugins from source. You will have observed that most of the existing documentation already includes steps on installing the plugins. However there are some plugins that require other libraries which are not included in those instructions. The goal of this documentation is to provide the instructions to install every possible plugin that exists.

Nagios Plugins 2.2.1 is what this guide instructs you to install, however future versions should also work fine with these steps.

Some considerations:

  • It is assumed that you are logged onto the machine you are installing Nagios Plugins as the root user, or a user with sufficient privileges.

  • All of the steps below were tested on the operating systems (OS) listed after a clean install of the OS.

  • Some OS's like Ubuntu and SUSE have stricter user permissions, in those cases the listed commands have sudo in front of them to ensure you are able to complete the steps.

  • A best effort has been made to ensure if you follow all the relevant steps you will end up with a working installation of Nagios Plugins.

 

The KB article is broken up into the following steps:

  • Install Prerequisites - Common

  • Install Prerequisites - Package XYZ

    • Some plugins (MySQL for example) require addtional libraries and have their own section. They are also in their own section as not everyone requires to monitor that specific item.

    • Some sections are only populated with a few OS's, this is becasue the required packages already exist in a base installation of the OS and hence do not require addtional steps.

  • Download Nagios Plugins

  • Compile and Install Nagios Plugins

 

Please select your OS:

 

 

 

RHEL | CentOS | Oracle Linux

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

 

CentOS 5.x

yum install -y gcc glibc glibc-common make gettext automake wget openssl-devel net-snmp net-snmp-utils epel-release
yum install -y perl-Net-SNMP
cd /tmp
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
tar xzf autoconf-2.60.tar.gz
cd /tmp/autoconf-2.60
./configure
make
make install

 

CentOS 6.x / 7.x

yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release
yum install -y perl-Net-SNMP

 

RHEL 5.x | Oracle Linux 5.x

cd /tmp
wget http://archives.fedoraproject.org/pub/archive/epel/epel-release-latest-5.noarch.rpm
rpm -ihv epel-release-latest-5.noarch.rpm
yum install -y gcc glibc glibc-common make gettext automake wget openssl-devel net-snmp net-snmp-utils
yum install -y perl-Net-SNMP
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
tar xzf autoconf-2.60.tar.gz
cd /tmp/autoconf-2.60
./configure
make
make install

 

RHEL 6.x | Oracle Linux 6.x

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -ihv epel-release-latest-6.noarch.rpm
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils
yum install -y perl-Net-SNMP

 

RHEL 7.x

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ihv epel-release-latest-7.noarch.rpm
subscription-manager repos --enable=rhel-7-server-optional-rpms
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils
yum install -y perl-Net-SNMP

 

Oracle Linux 7.x

yum install -y yum-utils
yum-config-manager --enable ol7_optional_latest
cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ihv epel-release-latest-7.noarch.rpm
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils
yum install -y perl-Net-SNMP

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

yum install -y postgresql-devel

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

CentOS | RHEL 5.x | Oracle Linux 5.x / 6.x

yum install -y libdbi-devel

 

RHEL 6.x

subscription-manager repos --enable=rhel-6-server-optional-rpms
yum install -y libdbi-devel

 

RHEL 7.x

subscription-manager repos --enable=rhel-7-server-optional-rpms
yum install -y libdbi-devel

 

Oracle Linux 7.x

yum install -y yum-utils
yum-config-manager --enable ol7_optional_latest
cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ihv epel-release-latest-7.noarch.rpm
yum install -y libdbi-devel

 

Prerequisites - check_radius

This is required for the check_radius plugin.

cd /tmp
wget -O freeradius-client.tar.gz https://github.com/FreeRADIUS/freeradius-client/archive/release_1_1_7.tar.gz
tar xzf freeradius-client.tar.gz
cd freeradius-client-release_1_1_7/
./configure
make
make install

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

yum install -y openldap-devel

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

CentOS 5.x / 6.x | RHEL 5.x / 6.x | Oracle Linux 5.x / 6.x

yum install -y mysql-devel mysql-libs

 

CentOS 7.x | RHEL 7.x

yum install -y mariadb-devel mariadb-libs

 

Oracle Linux 7.x

cd /tmp
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update -y
yum install -y mysql-community-devel mysql-community-libs

 

Prerequisites - check_dig check_dns

This is required for the check_dig and check_dns plugins.

yum install -y bind-utils

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

yum install -y samba-client

 

Prerequisites - check_game

This is required for the check_game plugin.

This package comes from the EPEL repository (EPEL was enabled in the "Prerequisites - Common" section).

yum install -y qstat

 

Prerequisites - check_fping

This is required for the check_fping plugin.

This package comes from the EPEL repository (EPEL was enabled in the "Prerequisites - Common" section).

yum install -y fping

 

Prerequisites - check_by_ssh

This is required for the check_by_ssh plugin.

yum install -y openssh-clients

 

Prerequisites - check_sensors

This is required for the check_sensors plugin.

yum install -y lm_sensors

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
make
make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/.
 

 

 

Ubuntu

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

sudo apt-get update
sudo apt-get install -y autoconf gcc libc6 libmcrypt-dev make libssl-dev wget bc gawk dc build-essential snmp libnet-snmp-perl gettext

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

sudo apt-get install -y libpqxx3-dev

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

sudo apt-get install -y libdbi-dev

 

Prerequisites - check_radius

This is required for the check_radius plugin.

Ubuntu 13.x

cd /tmp
wget https://github.com/FreeRADIUS/freeradius-client/archive/release_1_1_7.tar.gz
tar xzf release_1_1_7.tar.gz
cd freeradius-client-release_1_1_7/
sudo ./configure
sudo make
sudo make install

 

Ubuntu 14.x / 15.x / 16.x

sudo apt-get install -y libfreeradius-client-dev

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

sudo apt-get install -y libldap2-dev

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

sudo apt-get install -y libmysqlclient-dev

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

sudo apt-get install -y smbclient

 

Prerequisites - check_game

This is required for the check_game plugin.

This package comes from the EPEL repository (EPEL was enabled in the "Prerequisites - Common" section).

sudo apt-get install -y qstat

 

Prerequisites - check_fping

This is required for the check_fping plugin.

This package comes from the EPEL repository (EPEL was enabled in the "Prerequisites - Common" section).

sudo apt-get install -y fping

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

sudo apt-get install -y qmail-tools

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/.
 

 

 

SUSE SLES | openSUSE Leap

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

SUSE SLES 11.3

cd /tmp
wget 'https://nu.novell.com/repo/$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/rpm/x86_64/sle-sdk-release-11.3-1.69.x86_64.rpm'
wget 'https://nu.novell.com/repo/$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/rpm/x86_64/sle-sdk-release-SDK-11.3-1.69.x86_64.rpm'
sudo rpm -ivh sle-sdk-release-*
sudo suse_register
sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettext gettext-runtime automake net-snmp perl-Net-SNMP

 

SUSE SLES 11.4

cd /tmp
wget 'https://nu.novell.com/repo/$RCE/SLE11-SDK-SP4-Pool/sle-11-x86_64/rpm/x86_64/sle-sdk-release-11.4-1.55.x86_64.rpm'
wget 'https://nu.novell.com/repo/$RCE/SLE11-SDK-SP4-Pool/sle-11-x86_64/rpm/x86_64/sle-sdk-release-SDK-11.4-1.55.x86_64.rpm'
sudo rpm -ivh sle-sdk-release-*
sudo suse_register
sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettext gettext-runtime automake net-snmp perl-Net-SNMP

 

SUSE SLES 12

sudo SUSEConnect -p sle-sdk/12/x86_64
sudo SUSEConnect -p sle-module-web-scripting/12/x86_64
sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettext gettext-runtime automake net-snmp perl-Net-SNMP

 

SUSE SLES 12.1

sudo SUSEConnect -p sle-sdk/12.1/x86_64
sudo SUSEConnect -p sle-module-web-scripting/12/x86_64
sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettext gettext-runtime automake net-snmp perl-Net-SNMP

 

SUSE SLES 12.2

sudo SUSEConnect -p sle-sdk/12.2/x86_64
sudo SUSEConnect -p sle-module-web-scripting/12/x86_64
sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettext gettext-runtime automake net-snmp perl-Net-SNMP

 

openSUSE Leap 42.1

sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettext gettext-runtime automake net-snmp perl-Net-SNMP

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

sudo zypper --non-interactive install postgresql94-devel

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

SUSE SLES 11.x

cd /tmp
wget https://downloads.sourceforge.net/project/libdbi/libdbi/libdbi-0.9.0/libdbi-0.9.0.tar.gz
tar xzf libdbi-0.9.0.tar.gz
cd libdbi-0.9.0/
sudo ./configure
sudo make
sudo make install

 

SUSE SLES 12.x | openSUSE

sudo zypper --non-interactive install libdbi-devel

 

Prerequisites - check_radius

This is required for the check_radius plugin.

sudo zypper --non-interactive install freeradius-client-devel

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

sudo zypper --non-interactive install openldap2-devel

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

sudo zypper --non-interactive install libmysqlclient-devel

 

Prerequisites - check_dig check_dns

This is required for the check_dig and check_dns plugins.

sudo zypper --non-interactive install bind-utils

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

sudo zypper --non-interactive install samba-client

 

Prerequisites - check_game

This is required for the check_game plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_fping

This is required for the check_fping plugin.

This package comes from the EPEL repository (EPEL was enabled in the "Prerequisites - Common" section).

sudo zypper --non-interactive install fping

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/

 

 

Debian | Raspbian

All steps on Debian require to run as root. To become root simply run:

Debian:

su

 

Raspbian:

sudo -i

 

All commands from this point onwards will be as root. 

 

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

apt-get update
apt-get install -y autoconf gcc libc6 libmcrypt-dev make libssl-dev wget bc gawk dc build-essential snmp libnet-snmp-perl gettext

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

apt-get install -y libpqxx3-dev

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

apt-get install -y libdbi-dev

 

Prerequisites - check_radius

This is required for the check_radius plugin.

Debian 7.x

cd /tmp
wget https://github.com/FreeRADIUS/freeradius-client/archive/release_1_1_7.tar.gz
tar xzf release_1_1_7.tar.gz
cd freeradius-client-release_1_1_7/
./configure
make
make install

 

Debian 8.x

apt-get install -y libfreeradius-client-dev

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

sudo apt-get install -y libldap2-dev

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

apt-get install -y libmysqlclient-dev

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

apt-get install -y smbclient

 

Prerequisites - check_game

This is required for the check_game plugin.

apt-get install -y qstat

 

Prerequisites - check_fping

This is required for the check_fping plugin.

apt-get install -y fping

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

apt-get install -y qmail-tools

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
make
make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/.
 

 

Fedora

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

dnf install -y gcc glibc glibc-common openssl-devel perl wget gettext make net-snmp net-snmp-utils perl-Net-SNMP automake autoconf

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

dnf install -y libpqxx-devel

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

dnf install -y libdbi-devel

 

Prerequisites - check_radius

This is required for the check_radius plugin.

dnf install -y freeradius-client-devel

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

dnf install -y openldap-devel

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

dnf install -y community-mysql-devel

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

dnf install -y samba-client

 

Prerequisites - check_game

This is required for the check_game plugin.

dnf install -y qstat

 

Prerequisites - check_fping

This is required for the check_fping plugin.

dnf install -y fping

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
make
make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/.

 

 

Arch Linux

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

pacman --noconfirm -Syyu
pacman --noconfirm -S gcc glibc make wget unzip apache php gd traceroute php-apache

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

pacman --noconfirm -S postgresql

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

pacman --noconfirm -S libdbi

 

Prerequisites - check_radius

This is required for the check_radius plugin.

pacman --noconfirm -S freeradius-client

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

pacman --noconfirm -S openldap

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

pacman --noconfirm -S libmariadbclient

 

Prerequisites - check_dig check_dns

This is required for the check_dig and check_dns plugins.

pacman --noconfirm -S dnsutils

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

pacman --noconfirm -S smbclient

 

Prerequisites - check_game

This is required for the check_game plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_fping

This is required for the check_fping plugin.

pacman --noconfirm -S fping

 

Prerequisites - check_by_ssh

This is required for the check_by_ssh plugin.

pacman --noconfirm -S openssh

 

Prerequisites - check_sensors

This is required for the check_sensors plugin.

pacman --noconfirm -S lm_sensors

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

pacman --noconfirm -S postfix

qmail has been depreciated on Arch Linux and hence the qmail-qstat or eqivalent command cannot be found.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
make
make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/.

 

 

Gentoo

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

emerge --sync
emerge --noreplace sys-devel/gcc sys-libs/glibc net-misc/wget sys-devel/make sys-devel/gettext sys-devel/automake sys-devel/autoconf dev-libs/openssl net-analyzer/net-snmp dev-perl/Net-SNMP

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

emerge --noreplace dev-db/postgresql

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

emerge --noreplace dev-db/libdbi

 

Prerequisites - check_radius

This is required for the check_radius plugin.

emerge --noreplace net-dialup/freeradius-client

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

emerge --noreplace net-nds/openldap

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins. If you don't want to install the server component (client is only required) execute these commands first:

mkdir -p /etc/portage/package.use
echo "dev-db/mysql -server" >> /etc/portage/package.use/mysql

Install packages:

emerge --noreplace dev-db/mysql

 

Prerequisites - check_dig check_dns

The check_dig and check_dns plugin prerequisites will already be installed.

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

mkdir -p /etc/portage/package.use
echo "net-fs/samba client" >> /etc/portage/package.use/samba
echo "sys-libs/tdb python" >> /etc/portage/package.use/tdb
echo "sys-libs/tevent python" >> /etc/portage/package.use/tevent
emerge --noreplace net-fs/samba

 

Prerequisites - check_game

This is required for the check_game plugin.

emerge --noreplace games-util/qstat

 

Prerequisites - check_fping

This is required for the check_fping plugin.

emerge --noreplace net-analyzer/fping

 

Prerequisites - check_by_ssh

The check_by_ssh plugin prerequisites will already be installed.

 

Prerequisites - check_sensors

This is required for the check_sensors plugin.

emerge --noreplace sys-apps/lm_sensors

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
make
make install
chmod u+s /bin/ping
chmod u+s /bin/ping6

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/

 

 

FreeBSD

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins. SNMP and required modules are included here are they are one of the most common types of network monitoring.

pkg install -y wget autoconf automake gettext gcc openssl-devel net-snmp p5-Net-SNMP-Util

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

pkg install -y postgresql-libpqxx

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

pkg install -y libdbi

 

Prerequisites - check_radius

This is required for the check_radius plugin.

pkg install -y freeradius-client

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

pkg install -y openldap-client

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

pkg install -y mysql57-client

 

Prerequisites - check_dig check_dns

This is required for the check_dig and check_dns plugins.

pkg install -y bind-tools

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

pkg install -y samba44

 

Prerequisites - check_game

This is required for the check_game plugin.

pkg install -y qstat

 

Prerequisites - check_fping

This is required for the check_fping plugin.

pkg install -y fping

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
make
make install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/

 

 

Solaris

Prerequisites - Common

These are the common set of packages required for compiling most of the plugins.

Solaris 10.x

echo 'PATH=/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin:/opt/csw/sbin:$PATH' >> $HOME/.profile
echo 'export PATH' >> $HOME/.profile
. $HOME/.profile
pkgadd -d http://get.opencsw.org/now
answer all
answer y
perl -ni.bak -le 'print; print "mirror=http://mirrors.ibiblio.org/opencsw/stable" if /mirror=/' /etc/opt/csw/pkgutil.conf
pkgutil -y -i autoconf
pkgutil -y -i automake

 

Solaris 11.x

echo 'export PATH=$PATH:/opt/csw/bin:/usr/xpg4/bin:/usr/sfw/bin' >> ~/.profile
source ~/.profile
pkgadd -d http://get.opencsw.org/now
answer all
answer y
perl -ni.bak -le 'print; print "mirror=http://mirrors.ibiblio.org/opencsw/stable" if /mirror=/' /etc/opt/csw/pkgutil.conf
pkgutil -y -i autoconf
pkgutil -y -i automake
pkg install gcc-45

 

Solaris Note: Some of the plugins require the NET::SNMP perl module. Please refer to the following documentation:

http://www.net-snmp.org/docs/README.solaris.html

 

Prerequisites - check_pgsql

This is required for the check_pgsql plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_dbi

This is required for the check_dbi plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_radius

This is required for the check_radius plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_ldap

This is required for the check_ldap plugin.

pkgutil -y -i openldap_dev

 

Prerequisites - check_mysql check_mysql_query

This is required for the check_mysql and check_mysql_query plugins.

pkgutil -y -i mysql_dev

 

Prerequisites - check_disk_smb

This is required for the check_disk_smb plugin.

pkgutil -y -i samba_client

 

Prerequisites - check_fping

This is required for the check_fping plugin.

Solaris 10.x

pkgutil -y -i fping

 

Solaris 11.x

pkg install fping

 

Prerequisites - check_mailq

This is required for the check_mailq plugin.

Experienced problems getting this to work. If you have a solution please contact us.

 

Prerequisites - check_flexm

The check_flexm plugin requires lmstat from Globetrotter Software to monitor flexlm licenses. This a commercial product,  you will need to contact them for instructions on how to install lmstat on your OS.

 

Downloading the Source

Solaris 10

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
gunzip -c nagios-plugins.tar.gz | tar -xf -

 

Solaris 11.x

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios-plugins.tar.gz

 

Compile + Install

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure
gmake
gmake install

 

Plugin Installation Location

The plugins will now be located in /usr/local/nagios/libexec/.
 


 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
There are no related articles for this article.