Tweaking sanoid's thresholds for missing snapshots

Hey all,

I have various replication jobs to an off-site location from my home zfs pool. I recently moved house and have had to move some replication jobs to only run overnight due to lower upload speeds. This has caused my icinga monitoring to get angry.

I would like to be able to configure the timeout on those datasets (on the replication target) to be ~26 hours, so they throw me a warning if they don’t run overnight.

I can’t see an obvious way to do this, am I missing something?

Thanks!

You just needed to scroll down in the supplied sanoid.conf and read the backup template for the answer:

	### monitor hourlies and dailies, but don't warn or
	### crit until they're over 48h old, since replication
	### is typically daily only
	hourly_warn = 2880
	hourly_crit = 3600
	daily_warn = 48
	daily_crit = 60

You can adjust the alerting thresholds to whatever you like. :slight_smile:

Thanks! I have added some links to those files in the repo to the GH wiki page which is where I was looking.

1 Like