]> git.pld-linux.org Git - projects/nagios-config.git/blame - commands/check_http.cfg
check_dns_name for checking if specified name resolves
[projects/nagios-config.git] / commands / check_http.cfg
CommitLineData
d9fc610a
ER
1# 'check_http' command definition
2define command {
70d3f139 3 command_name check_http
1d7f8500 4 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning $ARG1$
d9fc610a 5}
08e9600e 6
58ca2016
ER
7define command {
8 command_name check_https
c74b2f1b 9 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning -S --sni $ARG1$
58ca2016
ER
10}
11
156a088d
ER
12define command {
13 command_name check_https.crt
c74b2f1b 14 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -S -C 14 --sni $ARG1$
156a088d
ER
15}
16
17define service {
ca5c16fb
ER
18 use generic-service
19 name http
20 service_description http
21 register 0
156a088d 22
ca5c16fb
ER
23 ; increase check interval to 5 minutes
24 normal_check_interval 5
25 ; increase retry to one minute
26 retry_check_interval 1
156a088d 27
ca5c16fb 28 check_command check_http
156a088d
ER
29}
30
31define service {
ca5c16fb
ER
32 use http
33 name https
34 service_description https
35 register 0
156a088d 36
ca5c16fb 37 check_command check_https
156a088d
ER
38}
39
40define service {
ca5c16fb
ER
41 use http
42 name https.crt
43 service_description https.crt
44 register 0
156a088d 45
ca5c16fb
ER
46 ; check every 12h is sufficent, notify daily
47 normal_check_interval 720
48 notification_interval 1440
156a088d 49
ca5c16fb 50 check_command check_https.crt
156a088d
ER
51}
52
53
58ca2016
ER
54# These below are deprecated, use check_http / check_https and add the extra args yourself
55
08e9600e
ER
56# 'check_http' with port support
57define command {
70d3f139 58 command_name check_http_port
fe5530b1 59 command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -p $ARG1$
08e9600e
ER
60}
61
62# check http service with URI
63define command {
70d3f139 64 command_name check_http_uri
fe5530b1 65 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$
08e9600e
ER
66}
67
68define command {
70d3f139 69 command_name check_http_uri_string
fe5530b1 70 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $ARG1$ -p $ARG2$ -u $ARG3$ -s '$ARG4$' $ARG5$
08e9600e
ER
71}
72
73# check http service with URI and expect regex
74define command {
70d3f139 75 command_name check_http_regex
fe5530b1 76 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -r $ARG3$ $ARG4$
08e9600e
ER
77}
78
79define command {
70d3f139 80 command_name check_https_string
fe5530b1 81 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $ARG1$ -S -s '$ARG2$'
08e9600e 82}
58592875
ER
83
84define command {
85 command_name check_https_cert
fe5530b1 86 command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $ARG1$ -S -C 14 $ARG2$
58592875 87}
This page took 0.68234 seconds and 4 git commands to generate.