Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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
# 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.
<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..
/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 ]
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.
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!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.