icinga-aws-autoscaling
Version:
Dynamic management of AWS Auto-Scaling Group inventory in Icinga.
49 lines (41 loc) • 1.23 kB
Plain Text
object HostGroup "Patches" {
display_name = "Patches AWS Auto-Scaling Group"
assign where host.vars.aws_asg_name == "patches"
}
apply Service "http" {
import "generic-service"
check_command = "http"
assign where host.vars.aws_asg_name == "patches"
}
apply Service "application health check" {
import "generic-service"
check_command = "application_health_check"
vars.uri = "/health_check.php"
vars.response_regex = "\"healthy\":true"
assign where host.vars.lemp_app == true
}
# SEE ALSO: ../nrpe_configs/*.cfg
apply Service "load" {
import "generic-service"
check_command = "nrpe"
vars.nrpe_command = "check_load"
assign where host.vars.aws_asg_name == "patches"
}
apply Service "root disk size" {
import "generic-service"
check_command = "nrpe"
vars.nrpe_command = "check_root_disk_size"
assign where host.vars.aws_asg_name == "patches"
}
apply Service "nginx procs" {
import "generic-service"
check_command = "nrpe"
vars.nrpe_command = "check_nginx_procs"
assign where host.vars.aws_asg_name == "patches"
}
apply Service "php procs" {
import "generic-service"
check_command = "nrpe"
vars.nrpe_command = "check_php_procs"
assign where host.vars.aws_asg_name == "patches"
}