How to Install Nagios in CentOS

Install the Following
yum install -y httpd gcc glibc glibc-common gd gd-devel

Do the following commands

# useradd -m nagios
# echo ‘****’ |passwd –stdin nagios
# groupadd nagcmd
# usermod -a -G nagcmd nagios
# usermod -a -G nagcmd apache
# cd /usr/local/src


# tar -zxvf nagios-3.2.0.tar.gz

Optional # rm -f nagios-3.2.0.tar.gz

# cd nagios-3.2.0/

# ./configure –with-command-group=nagcmd


# make all

# make install

# make install-init

# make install-config

# make install-commandmode

# make install-webconf

# htpasswd /usr/local/nagios/etc/htpasswd.users <username>
# service httpd restart

# wget


# tar -zxvf nagios-plugins-1.4.14.tar.gz

Optional # rm -f nagios-plugins-1.4.14.tar.gz

# cd /usr/local/src/nagios-plugins-1.4.14

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

# make

# make install

# chkconfig –add nagios

# chkconfig nagios on

# service nagios start


1.It appears as though you do not have permission to view the configuration information you requested…

If you believe this is an error, check the HTTP server authentication requirements for accessing

this CGI and check the authorization options in your CGI configuration file.

Solution: You need to set “authorized_for_configuration_information” in cgi.cfg (nano /usr/local/nagios/etc/cgi.cfg

Categories: linux, Linux OS, technical, Uncategorized | Tags: , , , , , , , , , | 3 Comments

Post navigation

3 thoughts on “How to Install Nagios in CentOS

  1. Greetings, I like your article. This is a nice site and I wanted to post a comment to let you know, nice job! Thanks Meme

    Louis Vuitton

    louis vuitton

  2. Renan Mara

    Thank You very much

  3. thx anyway.. i will use it

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

Dale Carnegie Training for Asia Pacific Region

blog site for Dale Carnegie in the Asia Pacific Region


be inspired to greatness

How Leaders Manage

Shape your Character change your life.

Let's Reach Success

Habits, purpose and a little bit of zen.


Read our Mission. Find out how you can help us adopt James.

The Neighborhood

The Story within the Story

Building A Business While Having A Life

Capo - The Event Planners

We do the work, You get the honor!


book + movie = mook. this is mookology.

Book of words

Books, reviews and all things worth reading

What an Amazing World!

Seeing, feeling and exploring places and cultures of the world


News and reviews from the world of gadgets, gear, apps and the web

Bonsai Tonight

An educational website about the styling, care and display of bonsai.

you and mie

let's make things


Just another site

Piano Transcriptions

Piano sheet music blog you can comment on


Your fresh contents delivered by 8layertechnologies


Making Every Step Count

%d bloggers like this: