diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-19 00:20:02 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-19 00:20:02 +0300 |
| commit | 4f1020fccf23569b14fdb325ee1f72796c9637aa (patch) | |
| tree | 9f8dc125878485a48ac4b3c0a018d232a77e7a96 | |
| parent | f1449a6f40ba4c5885b54675b693dd1d4651331e (diff) | |
add check_ping
| -rw-r--r-- | frontends/etc/gogios.json.tpl | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/frontends/etc/gogios.json.tpl b/frontends/etc/gogios.json.tpl index 4c35bf6..64d2083 100644 --- a/frontends/etc/gogios.json.tpl +++ b/frontends/etc/gogios.json.tpl @@ -2,7 +2,7 @@ "EmailTo": "paul", "EmailFrom": "gogios@mx.buetow.org", "CheckTimeoutS": 10, - "CheckConcurrency": 2, + "CheckConcurrency": 10, "Checks": { <% for my $host (@$acme_hosts) { -%> <% for my $prefix ('', 'www.') { -%> @@ -16,9 +16,19 @@ }, <% } -%> <% } -%> - "hasn foo.zone HTTP IPv6": { - "Plugin": "/usr/local/libexec/nagios/check_http", - "Args": ["foo.zone", "-6"] + <% for my $host (qw(fishfinger blowfish vulcan babylon)) { %> + "Check ICMP4 <%= $host %>.buetow.org": { + "Plugin": "/usr/local/libexec/nagios/check_ping", + "Args": ["-H", "<%= $host %>.buetow.org", "-4", "-w", "50,10%", "-c", "100,15%"] + }, + "Check ICMP6 <%= $host %>.buetow.org": { + "Plugin": "/usr/local/libexec/nagios/check_ping", + "Args": ["-H", "<%= $host %>.buetow.org", "-6", "-w", "50,10%", "-c", "100,15%"] + }, + <% } -%> + "Check ICMP localhost": { + "Plugin": "/usr/local/libexec/nagios/check_ping", + "Args": ["-H", "localhost", "-w", "50,10%", "-c", "100,15%"] } } } |
