LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error during Nagios HTTP Service setup? (http://www.linuxquestions.org/questions/linux-newbie-8/error-during-nagios-http-service-setup-761571/)

your_shadow03 10-13-2009 06:58 AM

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
 }


centosboy 10-13-2009 09:07 AM

Quote:

Originally Posted by your_shadow03 (Post 3717480)
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.


All times are GMT -5. The time now is 07:44 AM.