Compare commits

...

2 Commits

Author SHA1 Message Date
ec9c51b34a Lower frequency of checks on Nagios
As it turns out, just checking things over SSH requires an enormous amount of network throughput and CPU usage
2021-12-18 08:20:24 -06:00
9b64cf8a00 Modularize sanitization cronjobs 2021-12-16 08:11:17 -06:00
2 changed files with 8 additions and 5 deletions

View File

@ -73,12 +73,15 @@
hour: 3
job: 'find /data/syncthing/data/ -type f -iname "*:Zone.Identifier" -delete'
tags: [ cron ]
- name: assure sanitize cronjob
- name: assure filename sanitize cronjobs
cron:
name: sanitize name=orig.png
name: "sanitize {{ item }}"
minute: 0
hour: 4
job: 'find /data/syncthing/data/ -type f -iname "*?name=orig.png" | while read line; do mv "$line" "${line%?name=orig.png}"; done'
job: 'find /data/syncthing/data/ -type f -iname "*{{ item }}" | while read line; do mv "$line" "${line%{{ item }}}"; done'
with_items:
- ?name=orig.png
- ?name=orig.jpeg
tags: [ cron ]
roles:
- role: backup

View File

@ -4,7 +4,7 @@
define host {
name ansible-linux-server
check_period 24x7
check_interval 5
check_interval 10
retry_interval 1
max_check_attempts 10
check_command check-host-alive
@ -19,7 +19,7 @@ define service {
use generic-service
name ansible-generic-service
max_check_attempts 5
check_interval 5
check_interval 10
retry_interval 1
register 0
}