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

#wget http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.0/nagios-3.2.0.tar.gz?use_mirror=ufpr

# 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 http://downloads.sourceforge.net/project/nagiosplug/nagiosplug/1.4.14/nagios-plugins-1.4.14.tar.gz

use_mirror=ufpr

# 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

Problem

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

Advertisements
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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Create a free website or blog at WordPress.com.

Dale Carnegie Training for Asia Pacific Region

blog site for Dale Carnegie in the Asia Pacific Region

inspirationenergy

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.

adoptingjames

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

juliansherman.net/

Building A Business While Having A Life

Capo - The Event Planners

We do the work, You get the honor!

mookology.

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

Tech

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

bhelai

Just another WordPress.com site

Piano Transcriptions

Piano sheet music blog you can comment on

8layertech

Your fresh contents delivered by 8layertechnologies

THE SWOOSH RUNNER

Making Every Step Count

%d bloggers like this: