summaryrefslogtreecommitdiff
path: root/gemfeed/examples/conf/frontends/etc/gogios.json.tpl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-02 11:28:55 +0300
committerPaul Buetow <paul@buetow.org>2025-10-02 11:28:55 +0300
commit2b034797107660d4d83f8a7acdc55d32db785b82 (patch)
tree522fb586193c8a65ca6aee42df64eecc3555f644 /gemfeed/examples/conf/frontends/etc/gogios.json.tpl
parent4d7d90638186ac71067232007607f6637d560a4d (diff)
Update content for md
Diffstat (limited to 'gemfeed/examples/conf/frontends/etc/gogios.json.tpl')
-rw-r--r--gemfeed/examples/conf/frontends/etc/gogios.json.tpl98
1 files changed, 98 insertions, 0 deletions
diff --git a/gemfeed/examples/conf/frontends/etc/gogios.json.tpl b/gemfeed/examples/conf/frontends/etc/gogios.json.tpl
new file mode 100644
index 00000000..683f9de8
--- /dev/null
+++ b/gemfeed/examples/conf/frontends/etc/gogios.json.tpl
@@ -0,0 +1,98 @@
+<% our $plugin_dir = '/usr/local/libexec/nagios'; -%>
+{
+ "EmailTo": "paul",
+ "EmailFrom": "gogios@mx.buetow.org",
+ "CheckTimeoutS": 10,
+ "CheckConcurrency": 3,
+ "StateDir": "/var/run/gogios",
+ "Checks": {
+ <% for my $host (qw(master standby)) { -%>
+ <% for my $proto (4, 6) { -%>
+ "Check Ping<%= $proto %> <%= $host %>.buetow.org": {
+ "Plugin": "<%= $plugin_dir %>/check_ping",
+ "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>", "-w", "100,10%", "-c", "200,15%"],
+ "Retries": 3,
+ "RetryInterval": 3
+ },
+ <% } -%>
+ <% } -%>
+ <% for my $host (qw(fishfinger blowfish)) { -%>
+ "Check DTail <%= $host %>.buetow.org": {
+ "Plugin": "/usr/local/bin/dtailhealth",
+ "Args": ["--server", "<%= $host %>.buetow.org:2222"],
+ "DependsOn": ["Check Ping4 <%= $host %>.buetow.org", "Check Ping6 <%= $host %>.buetow.org"]
+ },
+ <% } -%>
+ <% for my $host (qw(fishfinger blowfish)) { -%>
+ <% for my $proto (4, 6) { -%>
+ "Check Ping<%= $proto %> <%= $host %>.buetow.org": {
+ "Plugin": "<%= $plugin_dir %>/check_ping",
+ "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>", "-w", "100,10%", "-c", "200,15%"],
+ "Retries": 3,
+ "RetryInterval": 3
+ },
+ <% } -%>
+ "Check TLS Certificate <%= $host %>.buetow.org": {
+ "Plugin": "<%= $plugin_dir %>/check_http",
+ "Args": ["--sni", "-H", "<%= $host %>.buetow.org", "-C", "20" ],
+ "DependsOn": ["Check Ping4 <%= $host %>.buetow.org", "Check Ping6 <%= $host %>.buetow.org"]
+ },
+ <% } -%>
+ <% for my $host (@$acme_hosts) { -%>
+ <% for my $prefix ('', 'standby.', 'www.') { -%>
+ <% my $depends_on = $prefix eq 'standby.' ? 'standby.buetow.org' : 'master.buetow.org'; -%>
+ "Check TLS Certificate <%= $prefix . $host %>": {
+ "Plugin": "<%= $plugin_dir %>/check_http",
+ "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",
+ "Args": ["<%= $prefix . $host %>", "-<%= $proto %>"],
+ "DependsOn": ["Check Ping<%= $proto %> <%= $depends_on %>"]
+ },
+ <% } -%>
+ <% } -%>
+ <% } -%>
+ <% for my $host (qw(fishfinger blowfish)) { -%>
+ <% for my $proto (4, 6) { -%>
+ "Check Dig <%= $host %>.buetow.org IPv<%= $proto %>": {
+ "Plugin": "<%= $plugin_dir %>/check_dig",
+ "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",
+ "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",
+ "Args": ["-H", "<%= $host %>.buetow.org", "-p", "1965", "-<%= $proto %>"],
+ "DependsOn": ["Check Ping<%= $proto %> <%= $host %>.buetow.org"]
+ },
+ <% } -%>
+ <% } -%>
+ "Check Users <%= $hostname %>": {
+ "Plugin": "<%= $plugin_dir %>/check_users",
+ "Args": ["-w", "2", "-c", "3"]
+ },
+ "Check SWAP <%= $hostname %>": {
+ "Plugin": "<%= $plugin_dir %>/check_swap",
+ "Args": ["-w", "95%", "-c", "90%"]
+ },
+ "Check Procs <%= $hostname %>": {
+ "Plugin": "<%= $plugin_dir %>/check_procs",
+ "Args": ["-w", "80", "-c", "100"]
+ },
+ "Check Disk <%= $hostname %>": {
+ "Plugin": "<%= $plugin_dir %>/check_disk",
+ "Args": ["-w", "30%", "-c", "10%"]
+ },
+ "Check Load <%= $hostname %>": {
+ "Plugin": "<%= $plugin_dir %>/check_load",
+ "Args": ["-w", "2,1,1", "-c", "4,3,3"]
+ }
+ }
+}