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 10-13-2009, 05:58 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Rep: Reputation: 51
Error during Nagios HTTP Service setup?


I have a Nagios working on my RHEL 5.3 Box. I am trying to monitor a remote host HTTP Web Server. I can see the remote Host statistics like DISK CHECK, PING but HTTP row is displaying some error:

Code:
HTTP 
  
 
 WARNING 10-13-2009 15:51:23 0d 1h 20m 50s 4/4 HTTP WARNING: HTTP/1.1 403 Forbidden - 4184 bytes in 0.004 second response time
The Nagios Logs says:

Code:
[root@irc var]# tail -f nagios.log
[1255424432] Local time is Tue Oct 13 14:30:32 IST 2009
[1255424432] LOG VERSION: 2.0
[1255424432] Finished daemonizing... (New PID=2627)
[1255424492] SERVICE ALERT: marathon.logic.com;HTTP;WARNING;HARD;4;HTTP WARNING: HTTP/1.1 403 Forbidden - 4184 bytes in 0.015 second response time
[1255424631] Caught SIGTERM, shutting down...
[1255424631] Successfully shutdown... (PID=2627)
[1255424632] Nagios 3.2.0 starting... (PID=2764)
[1255424632] Local time is Tue Oct 13 14:33:52 IST 2009
[1255424632] LOG VERSION: 2.0
[1255424632] Finished daemonizing... (New PID=2765)
[1255428232] Auto-save of retention data completed successfully.
My localhost.cfg file includes teh entries:

Code:
define service{
        use                             local-service         ; Name of service template to use
        host_name                       marathon.logic.com
        service_description             HTTP
        check_command                   check_http
        notifications_enabled           0
        is_volatile                     0
       max_check_attempts               4
       normal_check_interval             5
       retry_check_interval              1
       contact_groups                    admins
       notification_options             w,c,u,r
       notification_interval            960
       notification_period              24x7
       check_command                    check_http
 }
 
Old 10-13-2009, 08:07 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by your_shadow03 View Post
I have a Nagios working on my RHEL 5.3 Box. I am trying to monitor a remote host HTTP Web Server. I can see the remote Host statistics like DISK CHECK, PING but HTTP row is displaying some error:

Code:
HTTP 
  
 
 WARNING 10-13-2009 15:51:23 0d 1h 20m 50s 4/4 HTTP WARNING: HTTP/1.1 403 Forbidden - 4184 bytes in 0.004 second response time
The Nagios Logs says:

Code:
[root@irc var]# tail -f nagios.log
[1255424432] Local time is Tue Oct 13 14:30:32 IST 2009
[1255424432] LOG VERSION: 2.0
[1255424432] Finished daemonizing... (New PID=2627)
[1255424492] SERVICE ALERT: marathon.logic.com;HTTP;WARNING;HARD;4;HTTP WARNING: HTTP/1.1 403 Forbidden - 4184 bytes in 0.015 second response time
[1255424631] Caught SIGTERM, shutting down...
[1255424631] Successfully shutdown... (PID=2627)
[1255424632] Nagios 3.2.0 starting... (PID=2764)
[1255424632] Local time is Tue Oct 13 14:33:52 IST 2009
[1255424632] LOG VERSION: 2.0
[1255424632] Finished daemonizing... (New PID=2765)
[1255428232] Auto-save of retention data completed successfully.
My localhost.cfg file includes teh entries:

Code:
define service{
        use                             local-service         ; Name of service template to use
        host_name                       marathon.logic.com
        service_description             HTTP
        check_command                   check_http
        notifications_enabled           0
        is_volatile                     0
       max_check_attempts               4
       normal_check_interval             5
       retry_check_interval              1
       contact_groups                    admins
       notification_options             w,c,u,r
       notification_interval            960
       notification_period              24x7
       check_command                    check_http
 }

your check and config on the local server is fine.
Just that the remote check is not being allowed for HTTP.
Do you have a home page specified (DirectoryIndex in the httpd.conf).
Does that home page exist?
on the server marathon, telnet <ip> 80.
Also check there are no access controls in place like htaccess or the like.
 
  


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
Nagios - Return code of 127 for check of service sriramsreedhar Linux - General 4 02-22-2014 03:54 PM
Configuring Nagios to monitor a Windows service JeremyInNC Linux - Server 3 01-13-2009 09:19 AM
Shown Invalid Service Status Value using Nagios sureshkumar.repaka Programming 1 04-19-2007 05:34 AM
LXer: Complex service checks with Nagios LXer Syndicated Linux News 0 04-06-2007 07:02 PM
nagios check service noir911 Linux - Networking 5 07-24-2006 05:12 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration