LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Nagios Help (https://www.linuxquestions.org/questions/linux-newbie-8/nagios-help-870577/)

anishkumarv 03-24-2011 01:20 PM

Hi,

While restarting the nagios service it shows any error???

rajesh22 03-24-2011 01:26 PM

# 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.

anishkumarv 03-24-2011 06:13 PM

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...

rajesh22 03-25-2011 08:46 AM

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

anishkumarv 03-25-2011 01:11 PM

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..

rajesh22 03-25-2011 01:58 PM

/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

rajesh22 03-25-2011 02:01 PM

I can able to see the nagios.conf in the following location: /etc/http/conf.d/nagios.conf

rajesh22 03-25-2011 02:05 PM

Thanks for your great effort Anish i got the nagios page now.If i need any help i will get in touch with you

rajesh22 03-25-2011 02:15 PM

What is the default username and password of nagios ? can i know how to reset nagios default username and password please

anishkumarv 03-25-2011 02:46 PM

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.

anishkumarv 03-25-2011 06:36 PM

Hi rajesh,

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

corp769 03-25-2011 06:37 PM

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

anishkumarv 03-25-2011 06:42 PM

Hi corp,

Ha Ha Ha!!!!!! :-) ;-) :-)

corp769 03-25-2011 06:44 PM

You really thought that I wouldn't see that? :D LOL

anishkumarv 03-25-2011 06:50 PM

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!!


All times are GMT -5. The time now is 06:59 AM.