-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathstatus_hostname_list.txt
79 lines (72 loc) · 2.6 KB
/
status_hostname_list.txt
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
69
70
71
72
73
74
75
76
77
78
79
#
# status.sh Configuration File
#
# What should be monitored? Each line one entry.
#
# Structure:
# <COMMAND>;<HOSTNAME, IP or URL,PATH>;<PORT, GREP TEXT or HTTP STATUS>
#
# COMMAND: Command to run. Can be ping, curl or nc.
# ping = send ICMP ECHO_REQUEST packets to network hosts
# curl = transfer a URL
# http-status = check the HTTP status of a URL
# nc = check TCP and UDP connections
# grep = extension to the curl check
# curl downloads the webpage and pipes it to grep,
# that checks if the keyword is in the page.
# traceroute = check if host or ip exists in route path to MY_TRACEROUTE_HOST
# script = execute a script which returns 0 on success
#
# HOSTNAME: Hostname for the 'ping', 'nc' or 'traceroute' command
# IP: IP adress for the 'ping', 'nc' or 'traceroute' command
# URL: URL called by the command 'curl', 'http-status' and 'grep'. I.e. https://www.heise.de/ping or ftp://ftp.debian.org/debian/README
# PATH: PATH of the script called by the command 'script', eg. check.sh
# The pipe `|` can be used as a separator to display a custom text instead of the HOSTNAME/IP/URL (see example below).
#
# PORT: Optional port specification. Only for 'nc' command.
# GREP TEXT: Text to look for when using the 'grep' command.
# HTTP STATUS: HTTP status code required to pass when using the 'http-status' command.
#
#
# ping;<HOSTNAME or IP>
#
ping;www.heise.de
ping;www.otto.de|custom text instead of hostname
ping6;www.google.com|www.google.com (IPv6)
#
# nc;<HOSTNAME or IP>;<PORT>
#
nc;www.heise.de;80
nc;www.bsi.de|My secret Hostname;80
#
# curl;<URL>;<PORT>
#
curl;https://www.heise.de/ping
curl;ftp://ftp.debian.org/debian/README
curl;https://example.com/|My secret URL
#
# http-status;<URL>;<STATUS CODE>
#
http-status;https://www.nkn-it.de/ci.txt;200
#
# grep;<URL>;<ONE WORD>
#
grep;https://www.nkn-it.de/imprint.html;Nils
#
# traceroute;<HOSTNAME or IP>;<MAX NUMBER OF HOPS>
#
# Note:
# This HOSTNAME or IP is not the host to which the route path is traced. This is done via the parameter MY_TRACEROUTE_HOST
# This HOSTNAME or IP must be present in the route path.
# MAX NUMBER OF HOPS sets the max time-to-live (max number of hops) used in outgoing probe packets.
# If the hostname should always be the third hop, enter 3.
#
traceroute;your.isp.router;3
traceroute;your.secret.router|My secret Hostname;2
#
# script;<PATH>
#
# Note: Outage if returncode is not 0, Degraded if returncode is 80
#
script;/path/to/your/script.sh|My secret Name
script;scripts/check-websites.sh|Multiple Websites