LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2011, 01:20 PM   #16
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10

Hi,

While restarting the nagios service it shows any error???
 
Old 03-24-2011, 01:26 PM   #17
rajesh22
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
# service nagios start
Starting nagios: done.
# service nagios status
nagios (pid 709) is running...
# service nagios restart
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.

Last edited by rajesh22; 03-24-2011 at 01:30 PM.
 
Old 03-24-2011, 06:13 PM   #18
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
Hi,

http://localhost/nagios/


while giving this url what error its showing in whether page not found or anything else..and plese check the /var/log/messages and post the error messages...i didnt know in which step you are exactly struggling that why i asked to post the messages...
 
Old 03-25-2011, 08:46 AM   #19
rajesh22
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Anish really thanks for your effort in helping me

http://localhost/nagios
Not Found

The requested URL /nagios was not found on this server.
Apache/2.2.3 (CentOS) Server at localhost Port 80


Mar 25 06:44:03 localhost nagios: Successfully shutdown... (PID=11442)
Mar 25 06:44:04 localhost nagios: Nagios 3.2.3 starting... (PID=23955)
Mar 25 06:44:04 localhost nagios: Local time is Fri Mar 25 06:44:04 PDT 2011
Mar 25 06:44:04 localhost nagios: LOG VERSION: 2.0
Mar 25 06:44:04 localhost nagios: Finished daemonizing... (New PID=23956)
Mar 25 06:44:24 localhost nagios: SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;4;HTTP CRITICAL - No data received from host
 
Old 03-25-2011, 01:11 PM   #20
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
Quote:
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
While compiling nagios its default nagios httpd entry comes under /etc/http/conf.d/nagios.conf
but i think you doing some mistake while compiling so please put this entry in that path manually. i installed nagios in /usr/local/ so i mention in the above file that path please change according to your installation. and restart the httpd and nagios service...and try..i hope it works..
 
Old 03-25-2011, 01:58 PM   #21
rajesh22
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
/etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Fri Mar 25 11:57:07 2011] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 298 will probably never match because it overlaps an earlier ScriptAlias.
[Fri Mar 25 11:57:07 2011] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 315 will probably never match because it overlaps an earlier Alias.
[ OK ]

I am getting error when restarting httpd
 
Old 03-25-2011, 02:01 PM   #22
rajesh22
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
I can able to see the nagios.conf in the following location: /etc/http/conf.d/nagios.conf
 
Old 03-25-2011, 02:05 PM   #23
rajesh22
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for your great effort Anish i got the nagios page now.If i need any help i will get in touch with you
 
Old 03-25-2011, 02:15 PM   #24
rajesh22
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
What is the default username and password of nagios ? can i know how to reset nagios default username and password please
 
Old 03-25-2011, 02:46 PM   #25
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
5. Configure the web interface.
[root@localhost]# make install-webconf
[root@localhost# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
New password:
Re-type new password:
Adding password for user nagiosadmin


Please follow the steps numb 5 in the doc which i posted before this password only we'll give while accessing URL.

Read The document properly and configure , go through the nagios documentation in nagios.org website.
 
Old 03-25-2011, 06:36 PM   #26
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
Hi rajesh,

Mark your thread as [SOLVED] if your questions are answered, and give reputation if you feel like it.
 
Old 03-25-2011, 06:37 PM   #27
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hey anishkumarv, way to copy part of my signature into your own. At least edit it a bit to change it up next time.

Josh
 
Old 03-25-2011, 06:42 PM   #28
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
Hi corp,

Ha Ha Ha!!!!!! :-) ;-) :-)
 
Old 03-25-2011, 06:44 PM   #29
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You really thought that I wouldn't see that? LOL
 
Old 03-25-2011, 06:50 PM   #30
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
Quote:
Hey anishkumarv, way to copy part of my signature into your own. At least edit it a bit to change it up next time.

Josh
Mark your thread as [SOLVED] if your questions are answered, and give reputation if you feel like it.

If you're motivated by money you'll stay chasing it. If you're motivated by passion you'll stay living it.


Compare your signature!!! with me..lot of difference in that, don't argue for this like childish!!! we have lot of things in linux to discuss here....even if you thought i copied from yours mean also..i dont care..and i wont change!!! my signature for any reason..dont make me laugh lot..!!lolz!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
LXer: April Nagios Training Dates Include Advanced Nagios Class LXer Syndicated Linux News 0 03-18-2011 09:30 AM
Fail to install Nagios Pluggin nagios-plugins-1.4.15.tar.gz fred_xlf Linux - Software 1 11-27-2010 06:09 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 02:47 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration