summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-rw-r--r--frontends/etc/gogios.json.tpl52
1 files changed, 49 insertions, 3 deletions
diff --git a/frontends/etc/gogios.json.tpl b/frontends/etc/gogios.json.tpl
index 33a2147..2a9bd80 100644
--- a/frontends/etc/gogios.json.tpl
+++ b/frontends/etc/gogios.json.tpl
@@ -7,6 +7,10 @@
"Checks": {
<% for my $host (@$acme_hosts) { -%>
<% for my $prefix ('', 'www.') { -%>
+ "<%= $prefix . $host %> TLS Certificate": {
+ "Plugin": "/usr/local/libexec/nagios/check_http",
+ "Args": ["--sni", "-H", "<%= $prefix . $host %>", "-C", "30" ]
+ },
"<%= $prefix . $host %> HTTP IPv4": {
"Plugin": "/usr/local/libexec/nagios/check_http",
"Args": ["<%= $prefix . $host %>", "-4"]
@@ -17,6 +21,20 @@
},
<% } -%>
<% } -%>
+ <% for my $host (qw(cloud anki wallabag)) { -%>
+ "<%= $host %>.buetow.org TLS Certificate": {
+ "Plugin": "/usr/local/libexec/nagios/check_http",
+ "Args": ["--sni", "-H", "<%= $host %>.buetow.org", "-C", "30" ]
+ },
+ "<%= $host %>.buetow.org HTTP IPv4": {
+ "Plugin": "/usr/local/libexec/nagios/check_http",
+ "Args": ["<%= $host %>.buetow.org", "-4"]
+ },
+ "<%= $host %>.buetow.org HTTP IPv6": {
+ "Plugin": "/usr/local/libexec/nagios/check_http",
+ "Args": ["<%= $host %>.buetow.org", "-6"]
+ },
+ <% } -%>
<% for my $host (qw(fishfinger blowfish vulcan babylon)) { %>
"Check ICMP4 <%= $host %>.buetow.org": {
"Plugin": "/usr/local/libexec/nagios/check_ping",
@@ -27,9 +45,37 @@
"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%"]
+ <% for my $host (qw(fishfinger blowfish)) { %>
+ <% for my $proto (4, 6) { -%>
+ "Check SMTP <%= $host %>.buetow.org IPv<%= $proto %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_smtp",
+ "Args": ["-H", "<%= $host %>.buetow.org", "-<%= $proto %>"]
+ },
+ "Check Gemini TCP <%= $host %>.buetow.org IPv<%= $proto %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_tcp",
+ "Args": ["-H", "<%= $host %>.buetow.org", "-p", "1965", "-<%= $proto %>"]
+ },
+ <% } -%>
+ <% } -%>
+ "Check Users <%= $hostname %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_users",
+ "Args": ["-w", "2", "-c", "3"]
+ },
+ "Check SWAP <%= $hostname %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_swap",
+ "Args": ["-w", "99%", "-c", "95%"]
+ },
+ "Check Procs <%= $hostname %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_procs",
+ "Args": ["-w", "80", "-c", "100"]
+ },
+ "Check Disk <%= $hostname %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_disk",
+ "Args": ["-w", "30%", "-c", "10%"]
+ },
+ "Check Load <%= $hostname %>": {
+ "Plugin": "/usr/local/libexec/nagios/check_load",
+ "Args": ["-w", "2,1,1", "-c", "4,3,3"]
}
}
}