Page 2 of 2

Re: 2 questions

Posted: Wed Apr 25, 2012 4:11 am
by SDohmen
Bumping this one since the websites part of my question isn't resolved yet. Anyone have an idea what to try?

Re: 2 questions

Posted: Wed Apr 25, 2012 9:16 am
by scottwilkerson
Sven can you post the configuration for one of these, blocking out any sensitive data of course.

Re: 2 questions

Posted: Thu Apr 26, 2012 1:46 am
by SDohmen
I replaced the real address of course.

Code: Select all

define host {
	host_name			www.website.nu
	use				xiwizard_website_host
	address				www.website.nu
	_xiwizard			website
	register			1
	}	

define service {
	service_description		avail-content
	use				xiwizard_website_http_content_service
	hostgroup_name			web_sites
	check_command			check_xi_service_http!-s "html" -f ok!!!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	notification_interval		60
	contacts			nagiosadmin
	register			1
	}	

define service {
	host_name			null
	service_description		avail-ping
	use				generic-service
	hostgroup_name			web_sites
	check_command			check_xi_service_ping!3000.0!80%!5000.0!100%!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	notification_interval		60
	contacts			nagiosadmin
	register			1
	}	

define service {
	host_name			null
	service_description		avail-ping
	use				generic-service
	hostgroup_name			web_sites_dummy
	check_command			check_dummy!0!Dummy PING OK!!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	notification_interval		60
	contacts			nagiosadmin
	register			1
	}	

define service {
	service_description		perf-response
	use				xiwizard_website_http_service
	hostgroup_name			web_sites
	check_command			check_xi_service_http!-f ok!!!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	notification_interval		60
	contacts			nagiosadmin
	_xiwizard			website
	register			1
	}	

Re: 2 questions

Posted: Thu Apr 26, 2012 9:40 am
by scottwilkerson
So if these servers are supposed to connect via https and not http you will want to add -S to the check_command for just these.

so

Code: Select all

check_command         check_xi_service_http!-s "html" -f ok -S!!!!!!!
or

Code: Select all

check_command         check_xi_service_http!-f ok -S!!!!!!!
Now being these services are attached to a hostgroup you will likely need to do some rearranging to split those that are SSL and those that are not.

Re: 2 questions

Posted: Wed May 02, 2012 1:35 am
by SDohmen
Thats just the thing. None of the websites are ssl enabled ones. All are just regular http ones.

Re: 2 questions

Posted: Wed May 02, 2012 9:41 am
by scottwilkerson
I want to verify one more thing, in the host for the ones that are failing, is the address field an IP address or the full hostname?

Re: 2 questions

Posted: Thu May 03, 2012 3:21 am
by SDohmen
Its the full http://www.website.nu dns.

Re: 2 questions

Posted: Thu May 03, 2012 2:28 pm
by mguthrie

Code: Select all

HTTP CRITICAL - Unable to open TCP socket.
If you're getting this error it means that either the http site is running on something other than port 80, or there is some sort of firewall restriction preventing access.

Try running:

Code: Select all

nc -z <host address> 1-10000
And post the output.