Web Site Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Web Site Monitoring

Post by cklayus »

I have a problem where nagios notifies website error, or down. when in fact the site is ok


GOFOREX_trade.globeoptions.com
View service status details for this host

SSL Certificate
This service has commentsThis service problem has been acknowledged
Critical 4d 20h 8m 48s 5/5 26/01/2015 15:02:44 CRITICAL - Cannot make SSL connection.
GOFOREX_www.eforex.com
This host has commentsThis host problem has been acknowledged
View service status details for this host

HTTP
Critical 1d 3h 56m 45s 5/5 26/01/2015 15:01:29 HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 1333 bytes in 0.395 second response time
GOFOREX_www.fxglobe.com
View service status details for this host

HTTP
This service has commentsThis service problem has been acknowledged
Critical 2d 3h 5m 22s 5/5 26/01/2015 15:01:54 HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 1053 bytes in 0.673 second response time
GOFOREX_www.globeoptions.com
View service status details for this host

HTTP
This service has commentsThis service problem has been acknowledged
Critical 1d 3h 54m 11s 5/5 26/01/2015 15:02:59 HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 889 bytes in 0.386 second response time
GOFOREX_www.goldtradefx.com
This host has commentsThis host problem has been acknowledged
View service status details for this host

HTTP
Critical 1d 3h 53m 50s 5/5 26/01/2015 15:04:04 HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 890 bytes in 0.413 second response time
GOFOREX_www.sunbirdfx.com
View service status details for this host

HTTP
This service has commentsThis service problem has been acknowledged
Critical 4d 3h 10m 44s 5/5 26/01/2015 15:00:52 HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - 8293 bytes in 0.531 second response time
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Web Site Monitoring

Post by scottwilkerson »

The problem is it is trying to make a connection to the hostname, which you have changed to append GOFOREX_ to.

I would re-setup the checks without adding GOFOREX_ to the beginning of them
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: Web Site Monitoring

Post by cklayus »

it worked fine till now
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: Web Site Monitoring

Post by cklayus »

the address is configured ok it's only the screen name
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Web Site Monitoring

Post by tmcdonald »

Can you post the configs please? Go to Configure -> Core Config Manager -> Services, then for each service click the diskette icon and paste the output.
Former Nagios employee
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: Web Site Monitoring

Post by cklayus »

for example

define service {
host_name GOFOREX_www.fxglobe.com
service_description HTTP
use xiwizard_website_http_service
check_command check_xi_service_http! -f ok -I 185.11.125.105 -u "/" -p 80
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
freshness_threshold 700
notification_interval 1440
notification_period xi_timeperiod_24x7
contacts alex
contact_groups admins,GoForex
_xiwizard website
register 1
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Web Site Monitoring

Post by tmcdonald »

Sorry for not putting this in my last post, but can you paste the host info as well?
Former Nagios employee
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: Web Site Monitoring

Post by cklayus »

##############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.0
# Date: 2015-01-27 14:53:05
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
host_name GOFOREX_www.fxglobe.com
use xiwizard_website_host
address www.fxglobe.com
parents EDP_CLOUD FORTI
hostgroups GoForex
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts alex
contact_groups admins,GoForex
notification_interval 1440
notification_period xi_timeperiod_24x7
icon_image www_server.png
statusmap_image www_server.png
_xiwizard website
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

##############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.3.0
# Date: 2015-01-27 14:54:02
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
host_name GOFOREX_www.fxglobe.com
service_description DNS Resolution
use xiwizard_website_dns_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
freshness_threshold 700
notification_interval 1440
notification_period xi_timeperiod_24x7
contacts alex
contact_groups admins,GoForex
_xiwizard website
register 1
}

define service {
host_name GOFOREX_www.fxglobe.com
service_description HTTP
use xiwizard_website_http_service
check_command check_xi_service_http! -f ok -I 185.11.125.105 -u "/" -p 80
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
freshness_threshold 700
notification_interval 1440
notification_period xi_timeperiod_24x7
contacts alex
contact_groups admins,GoForex
_xiwizard website
register 1
}

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Web Site Monitoring

Post by scottwilkerson »

One more thing, can we see your current check configuration for Configure -> Core Config Manager -> Commands -> check_xi_service_http
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: Web Site Monitoring

Post by cklayus »

$USER1$/check_http -H $HOSTADDRESS$ $ARG1$

I also want to point out that some web sites are monitored just fine.
Locked