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