2 questions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: 2 questions

Post by SDohmen »

Bumping this one since the websites part of my question isn't resolved yet. Anyone have an idea what to try?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2 questions

Post by scottwilkerson »

Sven can you post the configuration for one of these, blocking out any sensitive data of course.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: 2 questions

Post 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
	}	
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2 questions

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: 2 questions

Post by SDohmen »

Thats just the thing. None of the websites are ssl enabled ones. All are just regular http ones.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2 questions

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: 2 questions

Post by SDohmen »

Its the full http://www.website.nu dns.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: 2 questions

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