diff options
| author | Paul Buetow <paul@buetow.org> | 2025-10-27 23:29:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-10-27 23:29:45 +0200 |
| commit | 6060da46c86680eaf1d2a10c2af829b7dba12475 (patch) | |
| tree | d85c702b6cac2adc4569f833c57c9bd29443dab4 /frontends | |
| parent | 96c740e1806ea53d76d604fde10d784d2e3a59ab (diff) | |
use new gogios
Diffstat (limited to 'frontends')
| -rw-r--r-- | frontends/Rexfile | 2 | ||||
| -rw-r--r-- | frontends/etc/gogios.json.tpl | 22 |
2 files changed, 22 insertions, 2 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 0020a3b..160d329 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -447,8 +447,6 @@ task 'gogios_install', file '/usr/local/bin/gogios', source => 'usr/local/bin/gogios', mode => '0755'; - owner => 'root', - group => 'root'; }; desc 'Setup Gogios monitoring system'; diff --git a/frontends/etc/gogios.json.tpl b/frontends/etc/gogios.json.tpl index 683f9de..2d395a0 100644 --- a/frontends/etc/gogios.json.tpl +++ b/frontends/etc/gogios.json.tpl @@ -11,6 +11,7 @@ "Check Ping<%= $proto %> <%= $host %>.buetow.org": { "Plugin": "<%= $plugin_dir %>/check_ping", "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>", "-w", "100,10%", "-c", "200,15%"], + "RandomSpread": 5, "Retries": 3, "RetryInterval": 3 }, @@ -19,6 +20,8 @@ <% for my $host (qw(fishfinger blowfish)) { -%> "Check DTail <%= $host %>.buetow.org": { "Plugin": "/usr/local/bin/dtailhealth", + "RunInterval": 3600, + "RandomSpread": 5, "Args": ["--server", "<%= $host %>.buetow.org:2222"], "DependsOn": ["Check Ping4 <%= $host %>.buetow.org", "Check Ping6 <%= $host %>.buetow.org"] }, @@ -27,6 +30,7 @@ <% for my $proto (4, 6) { -%> "Check Ping<%= $proto %> <%= $host %>.buetow.org": { "Plugin": "<%= $plugin_dir %>/check_ping", + "RandomSpread": 5, "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>", "-w", "100,10%", "-c", "200,15%"], "Retries": 3, "RetryInterval": 3 @@ -34,6 +38,8 @@ <% } -%> "Check TLS Certificate <%= $host %>.buetow.org": { "Plugin": "<%= $plugin_dir %>/check_http", + "RandomSpread": 5, + "RunInterval": 3600, "Args": ["--sni", "-H", "<%= $host %>.buetow.org", "-C", "20" ], "DependsOn": ["Check Ping4 <%= $host %>.buetow.org", "Check Ping6 <%= $host %>.buetow.org"] }, @@ -43,12 +49,15 @@ <% my $depends_on = $prefix eq 'standby.' ? 'standby.buetow.org' : 'master.buetow.org'; -%> "Check TLS Certificate <%= $prefix . $host %>": { "Plugin": "<%= $plugin_dir %>/check_http", + "RandomSpread": 5, + "RunInterval": 3600, "Args": ["--sni", "-H", "<%= $prefix . $host %>", "-C", "20" ], "DependsOn": ["Check Ping4 <%= $depends_on %>", "Check Ping6 <%= $depends_on %>"] }, <% for my $proto (4, 6) { -%> "Check HTTP IPv<%= $proto %> <%= $prefix . $host %>": { "Plugin": "<%= $plugin_dir %>/check_http", + "RandomSpread": 5, "Args": ["<%= $prefix . $host %>", "-<%= $proto %>"], "DependsOn": ["Check Ping<%= $proto %> <%= $depends_on %>"] }, @@ -59,16 +68,19 @@ <% for my $proto (4, 6) { -%> "Check Dig <%= $host %>.buetow.org IPv<%= $proto %>": { "Plugin": "<%= $plugin_dir %>/check_dig", + "RandomSpread": 5, "Args": ["-H", "<%= $host %>.buetow.org", "-l", "buetow.org", "-<%= $proto %>"], "DependsOn": ["Check Ping<%= $proto %> <%= $host %>.buetow.org"] }, "Check SMTP <%= $host %>.buetow.org IPv<%= $proto %>": { "Plugin": "<%= $plugin_dir %>/check_smtp", + "RandomSpread": 5, "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>"], "DependsOn": ["Check Ping<%= $proto %> <%= $host %>.buetow.org"] }, "Check Gemini TCP <%= $host %>.buetow.org IPv<%= $proto %>": { "Plugin": "<%= $plugin_dir %>/check_tcp", + "RandomSpread": 5, "Args": ["-H", "<%= $host %>.buetow.org", "-p", "1965", "-<%= $proto %>"], "DependsOn": ["Check Ping<%= $proto %> <%= $host %>.buetow.org"] }, @@ -76,22 +88,32 @@ <% } -%> "Check Users <%= $hostname %>": { "Plugin": "<%= $plugin_dir %>/check_users", + "RandomSpread": 5, + "RunInterval": 600, "Args": ["-w", "2", "-c", "3"] }, "Check SWAP <%= $hostname %>": { "Plugin": "<%= $plugin_dir %>/check_swap", + "RandomSpread": 5, + "RunInterval": 300, "Args": ["-w", "95%", "-c", "90%"] }, "Check Procs <%= $hostname %>": { "Plugin": "<%= $plugin_dir %>/check_procs", + "RandomSpread": 5, + "RunInterval": 300, "Args": ["-w", "80", "-c", "100"] }, "Check Disk <%= $hostname %>": { "Plugin": "<%= $plugin_dir %>/check_disk", + "RandomSpread": 5, + "RunInterval": 300, "Args": ["-w", "30%", "-c", "10%"] }, "Check Load <%= $hostname %>": { "Plugin": "<%= $plugin_dir %>/check_load", + "RandomSpread": 5, + "RunInterval": 300, "Args": ["-w", "2,1,1", "-c", "4,3,3"] } } |
