0% found this document useful (0 votes)
147 views3 pages

Installing Nagios Core From Source

This document provides instructions for installing Nagios Core and Nagios plugins from source on CentOS and Ubuntu servers. It describes downloading and unpacking the necessary tarballs, adding the Nagios user and group, configuring and installing Nagios Core and the plugins, setting up Nagios services, and accessing the Nagios web interface.

Uploaded by

papalinux
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views3 pages

Installing Nagios Core From Source

This document provides instructions for installing Nagios Core and Nagios plugins from source on CentOS and Ubuntu servers. It describes downloading and unpacking the necessary tarballs, adding the Nagios user and group, configuring and installing Nagios Core and the plugins, setting up Nagios services, and accessing the Nagios web interface.

Uploaded by

papalinux
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

%agios ( Insta$$ing %agios ore )ro* Source

The Industry Standard in IT Infrastructure Monitoring


Purpose
This document describes how install Nagios Core and Nagios Plugins from source on CentOS and Ubuntu servers.

Target Audience
This document is intended for use by anyone wishing to install Nagios Core from source.

Prerequisites
For Ubuntu users, run all ste s from this document with root ermissions. The following command can be run to switch to a root shell. sudo -i Pac!age re"uirements may vary de ending on what ty e of installation latform Nagios is being installed on. For RHEL/ ent!S users# yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp For Ubuntu users# sudo apt-get install wget install build-essential apache2 php5-gd wget libgd2-xpm libgd2-xpm-dev libapache2-mod-php5

"o#n$oad %agios

ore and %agios P$ugins Tarba$$s

For all systems, run the following commands in your terminal# cd /tmp wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4. . .tar.g! wget https://www.nagios-plugins.org/download/nagios-plugins-".5.tar.g! This will download Nagios Core, and it$s re"uired lugins.

Adding the %agios User and &roup


Ne%t add the a ro riate user and grou for the Nagios rocess to run#

useradd nagios groupadd nagcmd usermod -a -# nagcmd nagios

%agios Enterprises+ LL P0!0 1o2 .'34 Saint Pau$+ M% 33'5. USA

US, '-...-%A&I!S-' Int6$, 7' 83'-954-:'59 )a2, 7' 83'-954-:'5<

/eb, ###0nagios0co* E*ai$, sa$es;nagios0co*

Page '
Co yright & '()(*'()) Nagios +nter rises, ,,C -evision ).( . October, '()/

%agios ( Insta$$ing %agios ore )ro* Source


%agios ore Insta$$ation

tar !xvf nagios-4. . .tar.g! tar !xvf nagios-plugins-".5.tar.g! Change to the new Nagios directory and install the ac!ages# cd nagios For RHEL/ ent!S users# ./configure --with-command-group$nagcmd For Ubuntu users# ./configure --with-nagios-group$nagios --with-command-group$nagcmd -%with-mail$/usr/bin/sendmail A$$ syste*s, make make make make make make all install install-init install-config install-commandmode install-webconf

cp -& contrib/eventhandlers/ /usr/local/nagios/libexec/ chown -& nagios:nagios /usr/local/nagios/libexec/eventhandlers /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg /etc/init.d/nagios start For RHEL/ ent!S users# /etc/init.d/httpd start

reate a "efau$t User for /eb Access0


0dd a default user for 1eb 2nterface 0ccess# htpasswd %c /usr/local/nagios/etc/htpasswd.users nagiosadmin

%agios P$ugin Insta$$ation


cd /tmp/nagios-plugins-".5 ./configure --with-nagios-user$nagios --with-nagios-group$nagios make make install

%agios Enterprises+ LL P0!0 1o2 .'34 Saint Pau$+ M% 33'5. USA

US, '-...-%A&I!S-' Int6$, 7' 83'-954-:'59 )a2, 7' 83'-954-:'5<

/eb, ###0nagios0co* E*ai$, sa$es;nagios0co*

Page 9
Co yright & '()(*'()) Nagios +nter rises, ,,C -evision ).( . October, '()/

%agios ( Insta$$ing %agios ore )ro* Source


%agios Ser=ice Setup
The following commands will register the Nagios daemon to be run u on system startu . chkconfig chkconfig chkconfig chkconfig For Ubuntu# ln -s /etc/init.d/nagios /etc/rc(.d/())nagios --add nagios --level '5 nagios on --add httpd --level '5 httpd on

%agios /eb Interface


0fter correctly following the rocedures you should now be able to access your Nagios Core installation from a web browser. Sim ly use the following# http://*your.nagios.server.ip+/nagios 0nd log in with the credentials you chose when adding the nagiosadmin user to the ht asswd.users file.

)inishing Thoughts
2f you have further "uestions lease visit our su at# htt #33su ort.nagios.com3forum3 ort forum

Nagios Core 4ocumentation# htt #33library.nagios.com3library3 roducts3nagioscore3manuals3

%agios Enterprises+ LL P0!0 1o2 .'34 Saint Pau$+ M% 33'5. USA

US, '-...-%A&I!S-' Int6$, 7' 83'-954-:'59 )a2, 7' 83'-954-:'5<

/eb, ###0nagios0co* E*ai$, sa$es;nagios0co*

Page <
Co yright & '()(*'()) Nagios +nter rises, ,,C -evision ).( . October, '()/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy