Use a config file instead.

This commit is contained in:
2018-10-02 09:37:05 +02:00
parent 52fc4b30d9
commit 8006a798b6
4 changed files with 307 additions and 63 deletions

31
config.toml Normal file
View File

@@ -0,0 +1,31 @@
[command.ping]
command = "ping -c 1 -t 3 {{ host }}" # -t should be -w on linux environments.
[command.curl]
command = "curl --head --connect-timeout {{ host }}"
[[hosts]]
name = "Cloudflare/APNIC DNS (primary)"
command = "ping"
host = "1.1.1.1"
[[hosts]]
name = "Cloudflare/APNIC DNS (secondary)"
command = "ping"
host = "1.0.0.1"
[[hosts]]
name = "Google DNS (primary)"
command = "ping"
host = "8.8.8.8"
[[hosts]]
name = "Google DNS (secondary)"
command = "ping"
host = "8.8.4.4"
[[hosts]]
name = "Google.com"
command = "curl"
host = "http://www.google.com/"