2 questions
Re: 2 questions
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
Sven can you post the configuration for one of these, blocking out any sensitive data of course.
Re: 2 questions
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
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
or
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.
so
Code: Select all
check_command check_xi_service_http!-s "html" -f ok -S!!!!!!!Code: Select all
check_command check_xi_service_http!-f ok -S!!!!!!!Re: 2 questions
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
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
Its the full http://www.website.nu dns.
Re: 2 questions
Code: Select all
HTTP CRITICAL - Unable to open TCP socket.Try running:
Code: Select all
nc -z <host address> 1-10000