76 lines
1.4 KiB
INI
76 lines
1.4 KiB
INI
|
|
### Host Template
|
|
define host{
|
|
name docker-host
|
|
use generic-host
|
|
hostgroups docker-hosts
|
|
check_period 24x7
|
|
check_interval 5
|
|
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
|
|
}
|
|
|
|
### Hosts
|
|
define host{
|
|
use docker-host
|
|
host_name pi501.in.thelinuxpro.net
|
|
alias pi501
|
|
address 10.99.22.51
|
|
}
|
|
|
|
define host{
|
|
use docker-host
|
|
host_name pi502.in.thelinuxpro.net
|
|
alias pi502
|
|
address 10.99.22.52
|
|
}
|
|
|
|
define host{
|
|
use docker-host
|
|
host_name pi503.in.thelinuxpro.net
|
|
alias pi503
|
|
address 10.99.22.53
|
|
}
|
|
|
|
define host{
|
|
use docker-host
|
|
host_name pi504.in.thelinuxpro.net
|
|
alias pi504
|
|
address 10.99.22.54
|
|
}
|
|
|
|
### Hostgroup
|
|
define hostgroup{
|
|
hostgroup_name docker-hosts
|
|
alias Docker Hosts
|
|
members pi501.in.thelinuxpro.net,pi502.in.thelinuxpro.net,pi503.in.thelinuxpro.net,pi504.in.thelinuxpro.net
|
|
}
|
|
|
|
### Services
|
|
define service{
|
|
use local-service,graphed-service
|
|
hostgroup_name docker-hosts
|
|
service_description PING
|
|
check_command check_ping!100.0,20%!500.0,60%
|
|
}
|
|
|
|
define service{
|
|
use local-service,graphed-service
|
|
hostgroup_name docker-hosts
|
|
service_description Docker CPU
|
|
check_command check_docker_cpu!!500.0,60%
|
|
}
|
|
|
|
defind service{
|
|
use local-service,graphed-service
|
|
hostgroup_name docker-hosts
|
|
service_description DNS Query: A Record
|
|
check_command check_dns_a
|
|
}
|