icinga2-plugin-nginx

Nginx überwachen:

ITL
-> Github/regilero/check_nginx_status

Nginx

server {
        listen 127.0.0.1:80;
        listen [::1]:80;
  location /basic_status {
        stub_status on;
        access_log   off;
        allow 127.0.0.1;
        deny all;
  }
}

Icinga2

object Service "nginx" {
  import "generic-service"
  check_command = "nginx_status"
  host_name = "webserver.home"
	vars.nginx_status_url = "/basic_status"
	vars.nginx_status_host_address = "localhost"
}
object ServiceGroup "nginx" {
  display_name = "Nginx Status Checks"
  assign where match("nginx*", service.name)
}

Example

check_nginx_status.pl -H localhost -u /basic_status -t 8 -w 10000,100,200 -c 20000