-
Notifications
You must be signed in to change notification settings - Fork 19
/
check_phpfpm_status.icinga2.conf
68 lines (67 loc) · 2.9 KB
/
check_phpfpm_status.icinga2.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
object CheckCommand "phpfpm" {
import "plugin-check-command"
command = [ PluginDir + "/check_phpfpm_status" ]
arguments = {
"-H" = {
value = "$phpfpm_hostname$"
description = "name or IP address of host to check"
}
"-p" = {
value = "$phpfpm_port$"
description = "Http port, or Fastcgi port when using --fastcgi"
}
"-u" = {
value = "$phpfpm_url$"
description = "Specific URL (only the path part of it in fact) to use, instead of the default /fpm-status"
}
"-s" = {
value = "$phpfpm_servername$"
description = "ServerName, (host header of HTTP request) use it if you specified an IP in -H to match the good Virtualhost in your target"
}
"-f" = {
value = "$phpfpm_fastcgi$"
description = "Connect directly to php-fpm via network or local socket, using fastcgi protocol instead of HTTP."
}
"-U" = {
value = "$phpfpm_user$"
description = "Username for basic auth"
}
"-P" = {
value = "$phpfpm_pass$"
description = "Password for basic auth"
}
"-r" = {
value = "$phpfpm_realm$"
description = "Realm for basic auth"
}
"-d" = {
value = "$phpfpm_debug$"
description = "Debug mode (show http request response)"
}
"-t" = {
value = "$phpfpm_timeout$"
description = "timeout in seconds (Default: 15)"
}
"-S" = {
value = "$phpfpm_ssl$"
description = "Wether we should use HTTPS instead of HTTP. Note that you can give some extra parameters to this settings. Default value is 'TLSv1' but you could use things like 'TLSv1_1' or 'TLSV1_2' (or even 'SSLv23:!SSLv2:!SSLv3' for old stuff)."
}
"-x" = {
value = "$phpfpm_verifyssl$"
description = "verify certificate and hostname from ssl cert, default is 0 (no security), set it to 1 to really make SSL peer name and certificater checks."
}
"-X" = {
value = "$phpfpm_cacert$"
description = "Full path to the cacert.pem certificate authority used to verify ssl certificates (use with --verifyssl). if not given the cacert from Mozilla::CA cpan plugin will be used."
}
"-w" = {
value = "$phpfpm_warn$"
description = "MIN_AVAILABLE_PROCESSES,PROC_MAX_REACHED,QUEUE_MAX_REACHED number of available workers, or max states reached that will cause a warning. -1 for no warning"
}
"-c" = {
value = "$phpfpm_critical$"
description = "MIN_AVAILABLE_PROCESSES,PROC_MAX_REACHED,QUEUE_MAX_REACHED number of available workers, or max states reached that will cause an error, -1 for no CRITICAL"
}
}
vars.phpfpm_hostname = "$address$"
}