mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	mon-bot-btrfs
Description
Checks the health of all mounted Btrfs filesystems by inspecting device error counters.
Features
- Iterates over every Btrfs filesystem.
- Runs btrfs device statsand alerts if any error counters are non-zero.
- Hooks into systemd and a timer for regular checks.
- On failure, calls alert-compose.cymais@…for notification.
Usage
Just include this role in your playbook; it will:
- Deploy a small shell script under {{ path_administrator_scripts }}/mon-bot-btrfs/.
- Install a .serviceand.timerunit.
- Send alerts via alert-composeif any filesystem shows errors.