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.4.10 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 additional 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 because the required packages already exist in a base installation of the OS and hence do not require additional steps.
Download Nagios Plugins
Compile and Install Nagios Plugins
Please select your OS:
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
CentOS 8.x
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release
yum config-manager --enable powertools
yum install -y perl-Net-SNMP
CentOS Stream 9.x
dnf install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release
dnf config-manager --set-enabled crb
dnf 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
RHEL 8.x
cd /tmp
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-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
Oracle Linux 8.x
yum install -y yum-utils
cd /tmp
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
This is required for the check_pgsql plugin.
yum install -y postgresql-devel
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
RHEL 8.x +
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
Oracle Linux 8.x
yum install -y libdbi-devel
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
This is required for the check_ldap plugin.
yum install -y openldap-devel
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
CentOS 8.x +| RHEL 8.x +
yum install -y mysql-devel mysql-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
Oracle Linux 8.x
yum install -y mysql-devel mysql-libs
This is required for the check_dig and check_dns plugins.
yum install -y bind-utils
This is required for the check_disk_smb plugin.
yum install -y samba-client
This is required for the check_game plugin.
This package comes from the EPEL repository (EPEL was enabled in the "Prerequisites - Common" section).
CentOS 6.x / 7.x
yum install -y qstat
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
This is required for the check_by_ssh plugin.
yum install -y openssh-clients
This is required for the check_sensors plugin.
yum install -y lm_sensors
This is required for the check_mailq plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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.
cd /tmp
wget --output-document="nagios-plugins.tar.gz" $(wget -q -O - https://api.github.com/repos/nagios-plugins/nagios-plugins/releases/latest | grep '"browser_download_url":' | grep -o 'https://[^"]*')
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-*
./configure
make
make install
The plugins will now be located in /usr/local/nagios/libexec/.
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
===== RHEL 5/6 | CentOS 5/6 | Oracle Linux 5/6 =====
service nagios start
service nagios stop
service nagios restart
service nagios status
===== RHEL 7/8/9 | CentOS 7 | Oracle Linux 7/8/9 | CentOS Stream 8/9=====
systemctl start nagios.service
systemctl stop nagios.service
systemctl restart nagios.service
systemctl status nagios.service
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
This is required for the check_pgsql plugin.
sudo apt-get install -y libpqxx3-dev
This is required for the check_dbi plugin.
sudo apt-get install -y libdbi-dev
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
This is required for the check_ldap plugin.
sudo apt-get install -y libldap2-dev
This is required for the check_mysql and check_mysql_query plugins.
sudo apt-get install -y libmysqlclient-dev
This is required for the check_dig and check_dns plugins.
sudo apt-get install -y dnsutils
This is required for the check_disk_smb plugin.
sudo apt-get install -y smbclient
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
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
This is required for the check_mailq plugin.
sudo apt-get install -y qmail-tools
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install
The plugins will now be located in /usr/local/nagios/libexec/.
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
This is required for the check_pgsql plugin.
sudo zypper --non-interactive install postgresql94-devel
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
This is required for the check_radius plugin.
sudo zypper --non-interactive install freeradius-client-devel
This is required for the check_ldap plugin.
sudo zypper --non-interactive install openldap2-devel
This is required for the check_mysql and check_mysql_query plugins.
sudo zypper --non-interactive install libmysqlclient-devel
This is required for the check_dig and check_dns plugins.
sudo zypper --non-interactive install bind-utils
This is required for the check_disk_smb plugin.
sudo zypper --non-interactive install samba-client
This is required for the check_game plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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
This is required for the check_mailq plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install
The plugins will now be located in /usr/local/nagios/libexec/.
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.
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 automake gcc libc6 libmcrypt-dev make libssl-dev wget bc gawk dc build-essential snmp libnet-snmp-perl gettext
This is required for the check_pgsql plugin.
apt-get install -y libpqxx3-dev
This is required for the check_dbi plugin.
apt-get install -y libdbi-dev
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
This is required for the check_ldap plugin.
sudo apt-get install -y libldap2-dev
This is required for the check_mysql and check_mysql_query plugins.
apt-get install -y libmysqlclient-dev
On Debian 10.x, you need these packages instead:
apt-get install -y libmariadbclient-dev libmariadbclient-dev-compat
This is required for the check_dig and check_dns plugins.
apt-get install -y dnsutils
This is required for the check_disk_smb plugin.
apt-get install -y smbclient
This is required for the check_game plugin.
apt-get install -y qstat
This is required for the check_fping plugin.
apt-get install -y fping
This is required for the check_mailq plugin.
apt-get install -y qmail-tools
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
./tools/setup
./configure
make
make install
The plugins will now be located in /usr/local/nagios/libexec/.
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
This is required for the check_pgsql plugin.
dnf install -y libpqxx-devel
This is required for the check_dbi plugin.
dnf install -y libdbi-devel
This is required for the check_radius plugin.
dnf install -y freeradius-client-devel
This is required for the check_ldap plugin.
dnf install -y openldap-devel
This is required for the check_mysql and check_mysql_query plugins.
dnf install -y community-mysql-devel
This is required for the check_disk_smb plugin.
dnf install -y samba-client
This is required for the check_game plugin.
dnf install -y qstat
This is required for the check_fping plugin.
dnf install -y fping
This is required for the check_mailq plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
./tools/setup
./configure
make
make install
The plugins will now be located in /usr/local/nagios/libexec/.
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
This is required for the check_pgsql plugin.
pacman --noconfirm -S postgresql
This is required for the check_dbi plugin.
pacman --noconfirm -S libdbi
This is required for the check_radius plugin.
pacman --noconfirm -S freeradius-client
This is required for the check_ldap plugin.
pacman --noconfirm -S openldap
This is required for the check_mysql and check_mysql_query plugins.
pacman --noconfirm -S libmariadbclient
This is required for the check_dig and check_dns plugins.
pacman --noconfirm -S dnsutils
This is required for the check_disk_smb plugin.
pacman --noconfirm -S smbclient
This is required for the check_game plugin.
Experienced problems getting this to work. If you have a solution please contact us.
This is required for the check_fping plugin.
pacman --noconfirm -S fping
This is required for the check_by_ssh plugin.
pacman --noconfirm -S openssh
This is required for the check_sensors plugin.
pacman --noconfirm -S lm_sensors
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.
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
./tools/setup
./configure
make
make install
The plugins will now be located in /usr/local/nagios/libexec/.
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
This is required for the check_pgsql plugin.
emerge --noreplace dev-db/postgresql
This is required for the check_dbi plugin.
emerge --noreplace dev-db/libdbi
This is required for the check_radius plugin.
emerge --noreplace net-dialup/freeradius-client
This is required for the check_ldap plugin.
emerge --noreplace net-nds/openldap
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
The check_dig and check_dns plugin prerequisites will already be installed.
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
This is required for the check_game plugin.
emerge --noreplace games-util/qstat
This is required for the check_fping plugin.
emerge --noreplace net-analyzer/fping
The check_by_ssh plugin prerequisites will already be installed.
This is required for the check_sensors plugin.
emerge --noreplace sys-apps/lm_sensors
This is required for the check_mailq plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
./tools/setup
./configure
make
make install
chmod u+s /bin/ping
chmod u+s /bin/ping6
The plugins will now be located in /usr/local/nagios/libexec/.
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 gmake gettext gcc openssl net-snmp p5-Net-SNMP-Util
This is required for the check_pgsql plugin.
pkg install -y postgresql-libpqxx
This is required for the check_dbi plugin.
pkg install -y libdbi
This is required for the check_radius plugin.
pkg install -y freeradius-client
This is required for the check_ldap plugin.
pkg install -y openldap-client
This is required for the check_mysql and check_mysql_query plugins.
pkg install -y mysql57-client
This is required for the check_dig and check_dns plugins.
pkg install -y bind-tools
This is required for the check_disk_smb plugin.
pkg install -y samba44
This is required for the check_game plugin.
pkg install -y qstat
This is required for the check_fping plugin.
pkg install -y fping
This is required for the check_mailq plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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.
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
./tools/setup
./configure
make
make install
The plugins will now be located in /usr/local/nagios/libexec/.
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
This is required for the check_pgsql plugin.
Experienced problems getting this to work. If you have a solution please contact us.
This is required for the check_dbi plugin.
Experienced problems getting this to work. If you have a solution please contact us.
This is required for the check_radius plugin.
Experienced problems getting this to work. If you have a solution please contact us.
This is required for the check_ldap plugin.
pkgutil -y -i openldap_dev
This is required for the check_mysql and check_mysql_query plugins.
pkgutil -y -i mysql_dev
This is required for the check_disk_smb plugin.
pkgutil -y -i samba_client
This is required for the check_fping plugin.
Solaris 10.x
pkgutil -y -i fping
Solaris 11.x
pkg install fping
This is required for the check_mailq plugin.
Experienced problems getting this to work. If you have a solution please contact us.
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.
Solaris 10
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.4.10.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.4.10.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.4.10/
./tools/setup
./configure
gmake
gmake install
The plugins will now be located in /usr/local/nagios/libexec/.
For any support related questions please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Article ID: 569
Created On: Sun, Mar 12, 2017 at 8:28 PM
Last Updated On: Thu, Jan 9, 2025 at 9:26 AM
Authored by: tlea
Online URL: https://support.nagios.com/kb/article/nagios-plugins-installing-nagios-plugins-from-source-569.html