Nagios Core - Installing Nagios Core From Source
Nagios Core - Installing Nagios Core From Source
Ubuntu Nagios Core 4.4.6 and Nagios Plugins 2.3.3 are the versions used in this guide, however future versions should also work fine with these
Nagios Core - Quickstart Installation
NOTE: As of Nagios Core 4.4.7, openssl is a required prerequisite. This command has been added in the documentation below for the mo
Guides to run the appropriate command to install openssl in the prerequisite section.
Nagios XI - What Platforms Does Nagios This documentation is broken up into two distinct sections:
XI Run On
Install Nagios Core
Troubleshooting (15)
Install Nagios Plugins
Nagios Fusion (52)
This separation is to make a clear distinction as to what prerequisite packages are required by the OS it is being installed on. For exampl
Nagios Log Server (104)
Arch Linux
Gentoo
FreeBSD
Solaris
Apple OS X
This guide is based on SELinux being disabled or in permissive mode. Steps to do this are as follows.
Prerequisites
yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel perl postfix
yum install openssl-devel
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 1/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
dnf install -y gcc glibc glibc-common perl httpd php wget gd gd-devel
dnf install openssl-devel
dnf update -y
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure
make all
This creates the nagios user and group. The apache user is also added to the nagios group.
make install-groups-users
usermod -a -G nagios apache
Install Binaries
This step installs the binary files, CGIs, and HTML files.
make install
This installs the service or daemon files and also configures them to start on boot. The Apache httpd service is also configured at this p
make install-daemoninit
chkconfig --level 2345 httpd on
===== RHEL 7/8 | CentOS 7/8 | Oracle Linux 7/8 | CentoOS Stream 8=====
make install-daemoninit
systemctl enable httpd.service
make install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
make install-config
This installs the Apache web server configuration files. Also configure Apache settings if required.
make install-webconf
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 2/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Configure Firewall
You need to allow port 80 inbound traffic on the local firewall so you can reach the Nagios Core web interface.
===== RHEL 7/8 | CentOS 7/8 | Oracle Linux 7/8 | CentOS Stream 8=====
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
===== RHEL 7/8 | CentOS 7/8 | Oracle Linux 7/8 | CentOS Stream 8=====
===== RHEL 7/8 | CentOS 7/8 | Oracle Linux 7/8 | CentOS Stream 8=====
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 3/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
yum install -y gcc glibc glibc-common make gettext automake wget openssl-devel net-snmp net-snmp-utils epe
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
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-
yum install -y perl-Net-SNMP
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-
yum --enablerepo=powertools,epel install perl-Net-SNMP
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
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-
yum install -y perl-Net-SNMP
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-
yum install -y perl-Net-SNMP
At the time of writing this EPEL for RHEL 8 was not released, affected commands are struck out but *should* work if EPEL 8 was availab
cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
rpm -ihv epel-release-latest-8.noarch.rpm
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 4/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
subscription-manager repos --enable=rhel-8-server-optional-rpms
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-
yum install -y perl-Net-SNMP
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
make
make install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
===== RHEL 7/8 | CentOS 7/8 | Oracle Linux 7/8 | CentOS Stream 8=====
Ubuntu
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 5/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. SELinux is not enabled by default on Ubuntu. If you would like to s
Prerequisites
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled
sudo make all
This creates the nagios user and group. The www-data user is also added to the nagios group.
Install Binaries
This step installs the binary files, CGIs, and HTML files.
This installs the service or daemon files and also configures them to start on boot.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 6/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
sudo make install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
This installs the Apache web server configuration files and configures Apache settings.
Configure Firewall
You need to allow port 80 inbound traffic on the local firewall so you can reach the Nagios Core web interface.
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 7/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
sudo apt-get install -y autoconf gcc libc6 libmcrypt-dev make libssl-dev wget bc gawk dc build-essential s
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 8/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
SUSE SLES | openSUSE Leap
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. SELinux is not enabled by default on SUSE. If you would like to see
ls -la /etc/selinux/config
Prerequisites
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.6
wget 'https://nu.novell.com/repo/$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/rpm/x86_64/sle-sdk-release-SDK-11.3
sudo rpm -ivh sle-sdk-release-*
sudo suse_register
sudo zypper --non-interactive install autoconf gcc glibc make wget unzip apache2 apache2-utils php53 apach
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.5
wget 'https://nu.novell.com/repo/$RCE/SLE11-SDK-SP4-Pool/sle-11-x86_64/rpm/x86_64/sle-sdk-release-SDK-11.4
sudo rpm -ivh sle-sdk-release-*
sudo suse_register
sudo zypper --non-interactive install autoconf gcc glibc make wget unzip apache2 apache2-utils php53 apach
sudo zypper --non-interactive install autoconf gcc glibc make wget unzip apache2 apache2-utils php5 apache
sudo zypper --non-interactive install autoconf gcc glibc make wget unzip apache2 apache2-utils php7 apache
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 9/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Compile
cd /tmp/nagioscore-nagios-4.4.6/
sudo ./configure --with-httpd-conf=/etc/apache2/vhosts.d
sudo make all
This creates the nagios user and group. The apache user is also added to the nagios group.
Install Binaries
This step installs the binary files, CGIs, and HTML files.
This installs the service or daemon files and also configures them to start on boot.
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
This installs the Apache web server configuration files. Also configure Apache settings if required.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 10/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
===== openSUSE Leap 15.x =====
Configure Firewall
You need to allow port 80 inbound traffic on the local firewall so you can reach the Nagios Core web interface.
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
Test Nagios
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 11/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
sudo zypper --non-interactive install autoconf gcc glibc libmcrypt-devel make libopenssl-devel wget gettex
sudo zypper --non-interactive install autoconf gcc glibc libgcrypt-devel make libopenssl-devel wget gettex
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 12/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
sudo /sbin/service nagios restart
sudo /sbin/service nagios status
Debian | Raspbian
All steps on Debian require to run as root. To become root simply run:
Debian:
su
Raspbian:
sudo -i
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. SELinux is not enabled by default on Debian. If you would like to s
dpkg -l selinux*
Prerequisites
apt-get update
apt-get install -y autoconf gcc libc6 make wget unzip apache2 apache2-utils php5 libgd2-xpm-dev
apt-get update
apt-get install -y autoconf gcc libc6 make wget unzip apache2 apache2-utils php libgd-dev
apt-get install openssl libssl-dev
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/etc/apache2/sites-enabled
make all
This creates the nagios user and group. The www-data user is also added to the nagios group.
make install-groups-users
usermod -a -G nagios www-data
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 13/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Install Binaries
This step installs the binary files, CGIs, and HTML files.
make install
This installs the service or daemon files and also configures them to start on boot.
make install-daemoninit
make install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
make install-config
This installs the Apache web server configuration files and configures the Apache settings.
make install-webconf
a2enmod rewrite
a2enmod cgi
Configure Firewall
You need to allow port 80 inbound traffic on the local firewall so you can reach the Nagios Core web interface.
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 14/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Start Service / Daemon
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
apt-get install -y autoconf gcc libc6 libmcrypt-dev make libssl-dev wget bc gawk dc build-essential snmp l
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
make
make install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 15/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
Fedora
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. Steps to do this are as follows.
Prerequisites
dnf install -y gcc glibc glibc-common perl httpd php wget gd gd-devel
dnf update -y
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure
make all
This creates the nagios user and group. The apache user is also added to the nagios group.
make install-groups-users
usermod -a -G nagios apache
Install Binaries
This step installs the binary files, CGIs, and HTML files.
make install
This installs the service or daemon files and also configures them to start on boot. The Apache httpd service is also configured at this p
make install-daemoninit
systemctl enable httpd.service
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 16/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
make install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
make install-config
This installs the Apache web server configuration files. Also configure Apache settings if required.
make install-webconf
Configure Firewall
You need to allow port 80 inbound traffic on the local firewall so you can reach the Nagios Core web interface.
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 17/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
dnf install -y gcc glibc glibc-common openssl-devel perl wget gettext make net-snmp net-snmp-utils perl-Ne
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
make
make install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
Arch Linux
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. SELinux is not installed on a base build of Arch Linux. If you would
ls -la /etc/selinux/config
Prerequisites
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 18/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Downloading the Source
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/etc/httpd/conf/extra
make all
This creates the nagios user and group. The http user is also added to the nagios group.
make install-groups-users
usermod -a -G nagios http
Install Binaries
This step installs the binary files, CGIs, and HTML files.
make install
This installs the service or daemon files and also configures them to start on boot. The Apache httpd service is also configured at this p
make install-daemoninit
systemctl enable httpd.service
make install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
make install-config
make install-webconf
As well as installing the Apache web server configuration files, there are additional changes required to the Apache config file httpd.co
Commands that do all of these changes are below, but first is a list of the changes being made.
Change this:
To this:
Change this:
To this:
Change this:
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 19/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
<IfModule !mpm_prefork_module>
#LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
#LoadModule cgi_module libexec/apache24/mod_cgi.so
</IfModule>
To this:
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
</IfModule>
Change this:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
To this:
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm AddType application/x-httpd-php .phpAddType application/
</IfModule>
Configure Firewall
Arch Linux does not have a firewall enabled in a fresh installation. Please refer to the Arch Linux documentation on allowing TCP port 80
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 20/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
systemctl start httpd.service
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
pacman --noconfirm -S autoconf gcc glibc make openssl wget perl gettext net-snmp perl-net-snmp automake au
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
make
make install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 21/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
Gentoo
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. SELinux is not installed on a base build of Gentoo. If you would like
ls -la /etc/selinux/config
Prerequisites
emerge --sync
mkdir -p /etc/portage/package.use
echo "www-servers/apache dir cgi cgid event prefork apache2_modules_version" >> /etc/portage/package.use/a
echo "dev-lang/php apache2" >> /etc/portage/package.use/php
echo "app-eselect/eselect-php apache2" >> /etc/portage/package.use/eselect-php
echo "media-libs/gd gd png jpeg" >> /etc/portage/package.use/gd
emerge --noreplace sys-devel/gcc sys-libs/glibc net-misc/wget app-arch/unzip www-servers/apache dev-lang/p
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/etc/apache2/vhosts.d --sysconfdir=/usr/local/nagios/etc
make all
This creates the nagios user and group. The http user is also added to the nagios group.
make install-groups-users
usermod -a -G nagios apache
Install Binaries
This step installs the binary files, CGIs, and HTML files.
make install
This installs the service or daemon files and also configures them to start on boot. The apache2 service also needs to be configured to s
make install-daemoninit
rc-update add apache2 default
make install-daemoninit
systemctl enable apache2.service
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 22/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Install Command Mode
make install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
make install-config
make install-webconf
As well as installing the Apache web server configuration files, there are additional changes required to the Apache config file apache2 t
Commands that do all of these changes are below, but first is a list of the changes being made.
To this:
Configure Firewall
Gentoo does not have a firewall enabled in a fresh installation. Please refer to the Gentoo documentation on allowing TCP port 80 inboun
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 23/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
===== systemd =====
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
make
make install
chmod u+s /bin/ping
chmod u+s /bin/ping6
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
The different init systems have different methods of starting / stopping / restarting / status Nagios.
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 24/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
rc-service nagios start
rc-service nagios stop
rc-service nagios status
rc-service nagios restart
FreeBSD
Security-Enhanced Linux
This guide is based on SELinux being disabled or in permissive mode. SELinux is not enabled by default on FreeBSD. If you would like to
ls -la /etc/selinux/config
Prerequisites
pkg install -y wget autoconf automake gmake gettext gcc apache24 php73 php73-extensions mod_php73 libgd gp
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/usr/local/etc/apache24/Includes
gmake all
This creates the nagios user and group. The www user is also added to the nagios group.
gmake install-groups-users
pw group mod nagios -m www
Install Binaries
This step installs the binary files, CGIs, and HTML files.
gmake install
chown nagios:nagios /usr/local/nagios/bin/*
This installs the service or daemon files and also configures them to start on boot.
gmake install-daemoninit
echo '/usr/local/etc/rc.d/nagios start' >> /etc/rc.local
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 25/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
This installs and configures the external command file.
gmake install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
gmake install-config
gmake install-webconf
As well as installing the Apache web server configuration files, there are additional changes required to the Apache config file httpd.co
Commands that do all of these changes are below, but first is a list of the changes being made.
Change this:
<IfModule !mpm_prefork_module>
#LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
#LoadModule cgi_module libexec/apache24/mod_cgi.so
</IfModule>
To this:
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
</IfModule>
Change this:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
To this:
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm AddType application/x-httpd-php .phpAddType application/
</IfModule>
<FilesMatch ".php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
echo 'apache24_enable="YES"' >> /etc/rc.conf
sed -i '' 's/DirectoryIndex index.html/DirectoryIndex index.php index.html index.htm AddType application\/
sed -i '' 's/#LoadModule cgid_module/LoadModule cgid_module/g' /usr/local/etc/apache24/httpd.conf
sed -i '' 's/#LoadModule cgi_module/LoadModule cgi_module/g' /usr/local/etc/apache24/httpd.conf
printf '\n<FilesMatch ".php$">\n' >> /usr/local/etc/apache24/httpd.conf
printf '\tSetHandler application/x-httpd-php\n' >> /usr/local/etc/apache24/httpd.conf
printf '</FilesMatch>\n' >> /usr/local/etc/apache24/httpd.conf
printf '<FilesMatch ".phps$">\n' >> /usr/local/etc/apache24/httpd.conf
printf '\tSetHandler application/x-httpd-php-source\n' >> /usr/local/etc/apache24/httpd.conf
printf '</FilesMatch>\n' >> /usr/local/etc/apache24/httpd.conf
Configure Firewall
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 26/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Please refer to the FreeBSD documentation for information on how to enable or configure IP Filter to allow TCP port 80 inbound.
Documentation - Firewalls
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
Make sure that you have the following packages installed. In the steps below, when installing FreeBSD packages you will be prompted w
pkg install -y wget autoconf automake gettext gcc openssl-devel net-snmp p5-Net-SNMP-Util
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 27/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
gmake
gmake install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
Different Linux distributions have different methods of starting / stopping / restarting / status Nagios.
Solaris
Tested with Solaris 11.
Security-Enhanced Linux
Prerequisites
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/etc/apache2/2.2/conf.d --with-gd-inc=/usr/include/gd2
gmake all
This creates the nagios user and group. The webservd user is also added to the nagios group.
gmake install-groups-users
usermod -G nagios webservd
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 28/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Install Binaries
This step installs the binary files, CGIs, and HTML files.
gmake install
This installs the service or daemon files and also configures them to start on boot. The Apache httpd service is also configured at this p
gmake install-daemoninit
svcbundle -o /lib/svc/manifest/site/nagios.xml -s service-name=application/nagios -s rc-script=/etc/init.d
gmake install-commandmode
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
gmake install-config
This installs the Apache web server configuration files. Also configure Apache settings if required.
gmake install-webconf
Configure Firewall
On a manually networked system, IP Filter is not enabled by default. Please refer to the Solaris documentation for information on how to
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 29/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. The following steps will walk you through installing Nagios Plugins.
These steps install nagios-plugins 2.3.3. Newer versions will become available in the future and you can use those in the following
Please note that the following steps install most of the plugins that come in the Nagios Plugins package. However there are some plugins
installation instructions:
Prerequisites
Already completed as part of the Nagios installation. Some of the plugins require the NET::SNMP perl module. Please refer to the followin
http://www.net-snmp.org/docs/README.solaris.html
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/arch
tar zxf nagios-plugins.tar.gz
Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup
./configure
gmake
gmake install
Test Plugins
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 30/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Apple OS X
Security-Enhanced Linux
Prerequisites
First, make sure Xcode is installed. If it is not installed visit the App Store and install Xcode (3.8GB download).
Then you need to download and install MacPorts, instructions for doing this can be found here:
https://www.macports.org/install.php
You will be prompted on your Mac display to install the component, click install
Click Agree
Continue in your terminal session (you may need to close and open your terminal session):
sudo /opt/local/bin/port install zlib libpng jpeg gd2 apache2 php70 php70-apache2handler
cd /tmp
curl -L -o nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagioscore.tar.gz
Compile
cd /tmp/nagioscore-nagios-4.4.6/
sudo ./configure --with-httpd-conf=/opt/local/apache2/conf/extra --with-gd-lib=/opt/local/lib --with-gd-in
sudo make all
Currently Nagios Core does not have a built in script for creating the nagios user and group. However NRPE v3 does have this script, so w
Install Binaries
This step installs the binary files, CGIs, and HTML files.
This installs the script in /etc/rc.d/init.d/nagios which is not the correct way it should be run in OS X however a native OS X lau
You will configure it to start at boot using a Global Daemon property list.
sudo vi /Library/LaunchDaemons/org.nagios.nagios.plist
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 31/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.nagios.nagios</string>
<key>UserName</key>
<string>nagios</string>
<key>GroupName</key>
<string>nagios</string>
<key>Program</key>
<string>/etc/rc.d/init.d/nagios</string>
<key>ProgramArguments</key>
<array>
<string>nagios</string>
<string>start</string>
</array>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
<key>NetworkState</key>
<true/>
</dict>
<key>RunAtLoad</key>
<true/>
<key>ProcessType</key>
<string>Background</string>
</dict>
</plist>
The file has been saved and Nagios will automatically start on the next boot.
This installs the *SAMPLE* configuration files. These are required as Nagios needs some configuration files to allow it to start.
As well as installing the Apache web server configuration files, there are additional changes required to the Apache config file httpd.co
Commands that do all of these changes are below, but first is a list of the changes being made.
Change this:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
To this:
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm AddType application/x-httpd-php .phpAddType application/
</IfModule>
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 32/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Include conf/extra/nagios.conf
Include conf/extra/mod_php70.conf
Configure Firewall
The firewall in OS X is turned off by default. Please refer to the Apple documentation for information on how to enable or configure TCP
You'll need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing
Test Nagios
Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the passwor
Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
Currently you have only installed the Nagios Core engine. You'll notice some errors under the hosts and services along the lines of:
These errors will be resolved once you install the Nagios Plugins, which is covered in the next step.
Nagios Core needs plugins to operate properly. These steps are going to install the Nagios Plugins that are available via MacPorts. Future
These get installed to /opt/local/libexec/nagios/ so the /usr/local/nagios/etc/resource.cfg file also needs to be upd
Test Plugins
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 33/34
05/12/2022, 14:18 Nagios Core - Installing Nagios Core From Source
Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
http://10.25.5.143/nagios
http://core-013.domain.local/nagios
Go to a host or service object and "Re-schedule the next check" under the Commands menu. The error you previously saw should now d
Final Thoughts
For any support related questions please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Posted by: jolson on Wed, May 20, 2015 at 2:07 PM. This article has been viewed 502998 times.
Filed Under: Installation
418 0 9 Google + 1 0
Print Article
Rate this article
Select One Rate Email Article to Friend
Attachments
There are no attachments for this article.
Related Articles
Nagios Core - Installing Nagios Core on Ubuntu
Viewed 40353 times since Wed, May 20, 2015
Nagios XI - What Platforms Does Nagios XI Run On
Viewed 5974 times since Wed, Jul 19, 2017
Nagios Core - Quickstart Installation Guides
Viewed 17241 times since Sun, Jan 31, 2016
https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html 34/34