diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-26 22:34:46 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-26 22:34:46 -0400 |
commit | cef5a0ed716509085d113999fbc419998330e3d2 (patch) | |
tree | 4215c36a8376480a7ef962816500262c162eb3bb /modules/tozt/files | |
parent | 2a49dab1adc1fa2b744041272e8a6b8fd07440cf (diff) | |
download | puppet-tozt-cef5a0ed716509085d113999fbc419998330e3d2.tar.gz puppet-tozt-cef5a0ed716509085d113999fbc419998330e3d2.zip |
more things to remove
Diffstat (limited to 'modules/tozt/files')
-rw-r--r-- | modules/tozt/files/acts.conf | 4 | ||||
-rw-r--r-- | modules/tozt/files/kapacitor/duplicati.tick | 28 | ||||
-rw-r--r-- | modules/tozt/files/kapacitor/tarsnap.tick | 28 | ||||
-rw-r--r-- | modules/tozt/files/munin-plugin-conf | 15 |
4 files changed, 0 insertions, 75 deletions
diff --git a/modules/tozt/files/acts.conf b/modules/tozt/files/acts.conf deleted file mode 100644 index ddc9f15..0000000 --- a/modules/tozt/files/acts.conf +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -backuptargets="home/doy/pass home/doy/paste home/doy/public_html" -tarsnapbackupoptions="-H" diff --git a/modules/tozt/files/kapacitor/duplicati.tick b/modules/tozt/files/kapacitor/duplicati.tick deleted file mode 100644 index 5ef1c6b..0000000 --- a/modules/tozt/files/kapacitor/duplicati.tick +++ /dev/null @@ -1,28 +0,0 @@ -dbrp "telegraf"."autogen" - -var message = ''' -{{- if eq .Level "OK" -}} -backup target {{ index .Tags "name" }} is back to running -{{- else -}} -backup target {{ index .Tags "name" }} hasn't run for a while -{{- end -}} -''' - -var details = ''' -{{- if eq .Level "OK" -}} -backup target {{ index .Tags "name" }} is now {{ index .Fields "days_since_last_run" }} days since its last run -{{- else -}} -backup target {{ index .Tags "name" }} hasn't run for {{ index .Fields "days_since_last_run" }} days -{{- end -}} -''' - -stream -|from() - .measurement('duplicati') - .groupBy('name') -|min('days_since_last_run') - .as('days_since_last_run') -|alert() - .crit(lambda: "days_since_last_run" > 2) - .message(message) - .details(details) diff --git a/modules/tozt/files/kapacitor/tarsnap.tick b/modules/tozt/files/kapacitor/tarsnap.tick deleted file mode 100644 index 1239c69..0000000 --- a/modules/tozt/files/kapacitor/tarsnap.tick +++ /dev/null @@ -1,28 +0,0 @@ -dbrp "telegraf"."autogen" - -var message = ''' -{{- if eq .Level "OK" -}} -backup target {{ index .Tags "name" }} is back to running -{{- else -}} -backup target {{ index .Tags "name" }} hasn't run for a while -{{- end -}} -''' - -var details = ''' -{{- if eq .Level "OK" -}} -backup target {{ index .Tags "name" }} is now {{ index .Fields "days_since_last_run" }} days since its last run -{{- else -}} -backup target {{ index .Tags "name" }} hasn't run for {{ index .Fields "days_since_last_run" }} days -{{- end -}} -''' - -stream -|from() - .measurement('tarsnap') - .groupBy('name') -|min('days_since_last_run') - .as('days_since_last_run') -|alert() - .crit(lambda: "days_since_last_run" > 2) - .message(message) - .details(details) diff --git a/modules/tozt/files/munin-plugin-conf b/modules/tozt/files/munin-plugin-conf deleted file mode 100644 index acc7bdc..0000000 --- a/modules/tozt/files/munin-plugin-conf +++ /dev/null @@ -1,15 +0,0 @@ -[fail2ban] -user root - -[tarsnap] -user root - -[tarsnap_last_run] -user root - -[package_updates] -user root - -[certbot] -user root -env.CERTBOT_CONFIG_DIR /media/persistent/certbot |