web hosts
This commit is contained in:
parent
370e4ce9be
commit
ad2f04e6a0
|
@ -143,9 +143,14 @@ define command{
|
||||||
# 'check_http' command definition
|
# 'check_http' command definition
|
||||||
define command{
|
define command{
|
||||||
command_name check_http
|
command_name check_http
|
||||||
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
|
command_line $USER1$/check_http -I $HOSTADDRESS$ -H $HOSTNAME$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 'check_https' command definition
|
||||||
|
define command{
|
||||||
|
command_name check_https
|
||||||
|
command_line $USER1$/check_http -S -I $HOSTADDRESS$ -H $HOSTNAME$
|
||||||
|
}
|
||||||
|
|
||||||
# 'check_ssh' command definition
|
# 'check_ssh' command definition
|
||||||
define command{
|
define command{
|
||||||
|
|
|
@ -97,6 +97,21 @@ define host{
|
||||||
register 0
|
register 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define host{
|
||||||
|
name web-host
|
||||||
|
use generic-host
|
||||||
|
hostgroups web-hosts
|
||||||
|
check_period 24x7
|
||||||
|
check_interval 2
|
||||||
|
retry_interval 1
|
||||||
|
max_check_attempts 3
|
||||||
|
check_command check-host-alive
|
||||||
|
notification_period 24x7
|
||||||
|
notification_interval 120
|
||||||
|
notification_options d,u,r
|
||||||
|
contact_groups admins
|
||||||
|
register 0
|
||||||
|
}
|
||||||
|
|
||||||
# Define a template for switches that we can reuse
|
# Define a template for switches that we can reuse
|
||||||
define host{
|
define host{
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
### Hosts
|
||||||
|
define host{
|
||||||
|
use web-host
|
||||||
|
host_name kameronkenny.com
|
||||||
|
alias kameronkenny.com
|
||||||
|
address 204.8.15.81
|
||||||
|
}
|
||||||
|
|
||||||
|
define host{
|
||||||
|
use web-host
|
||||||
|
host_name thelinux.pro
|
||||||
|
alias thelinux.pro
|
||||||
|
address 204.8.15.81
|
||||||
|
}
|
|
@ -4,3 +4,10 @@ define hostgroup{
|
||||||
alias Docker Hosts
|
alias Docker Hosts
|
||||||
members pi501.in.thelinuxpro.net,pi502.in.thelinuxpro.net,pi503.in.thelinuxpro.net,pi504.in.thelinuxpro.net
|
members pi501.in.thelinuxpro.net,pi502.in.thelinuxpro.net,pi503.in.thelinuxpro.net,pi504.in.thelinuxpro.net
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### Hostgroup
|
||||||
|
define hostgroup{
|
||||||
|
hostgroup_name web-hosts
|
||||||
|
alias web Hosts
|
||||||
|
members kameronkenny.com,thelinux.pro
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
### Service definitions for all web hosts
|
||||||
|
define service{
|
||||||
|
use generic-service,graphed-service
|
||||||
|
hostgroup_name web-hosts
|
||||||
|
service_description PING
|
||||||
|
check_command check_ping!100.0,20%!500.0,60%
|
||||||
|
}
|
||||||
|
|
||||||
|
define service{
|
||||||
|
use generic-service,graphed-service
|
||||||
|
hostgroup_name web-hosts
|
||||||
|
service_description HTTPS
|
||||||
|
check_command check_https
|
||||||
|
}
|
Loading…
Reference in New Issue