0% found this document useful (0 votes)
50 views

Install Nagios 4

The document provides instructions to install Nagios 4 on a CentOS server for monitoring purposes. It involves installing required packages, creating users, downloading and compiling Nagios, installing the web configuration, creating an admin user, downloading and compiling plugins, verifying and starting the Nagios server process, and accessing the Nagios web interface.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Install Nagios 4

The document provides instructions to install Nagios 4 on a CentOS server for monitoring purposes. It involves installing required packages, creating users, downloading and compiling Nagios, installing the web configuration, creating an admin user, downloading and compiling plugins, verifying and starting the Nagios server process, and accessing the Nagios web interface.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Install Nagios 4

1. Connect internet, update atau upgrade centos


2. Install required packages

yum -y install httpd php gcc glibc glibc-common wget perl gd gd-devel
unzip zip

3. Create user

useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache

4. Download nagios

Root # cd /tmp/
Root # wget
https://assets.nagios.com/downloads/nagioscore/releases/nagios-
4.3.4.tar.gz
Root # tar -zxvf /tmp/nagios-4.*.tar.gz
Root # cd /tmp/nagios-4.*

5. Compile, install nagios

Root # ./configure --with-nagios-group=nagios --with-command-


group=nagcmd
Root # make all
Root # make install
Root # make install-init
Root # make install-config
Root # make install-commandmode

6. Install nagios web configuration

Root # make install-webconf

7. Create user

Root # htpasswd –s -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

8. Install plugins Nagios

Root # cd /tmp
Root # wget https://nagios-plugins.org/download/nagios-plugins-
2.2.1.tar.gz
Root # tar -zxvf /tmp/nagios-plugins-*.tar.gz
Root # cd /tmp/nagios-plugins-*/

FST/PLSJ/Monitoring Server Nagios Wednesday, May 9, 2018 Page 1


9. Compile, install plugin Nagios

./configure --with-nagios-user=nagios --with-nagios-group=nagios


make
make install

10. verify nagios Server

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

11. start nagios server

systemctl restart httpd


systemctl enable httpd

12. akses nagios

http://your-ip-add-ress/nagios/

FST/PLSJ/Monitoring Server Nagios Wednesday, May 9, 2018 Page 2

You might also like