Archivo de la categoría: Nix

ZFS Compression – A Win-Win

Guest Author This may sound counterintuitive, but turning on ZFS compression not only saves space, but also improves performance. This is because the time it takes to compress and decompress the data is quicker than then time it takes to read and write the uncompressed data to disk (at least on newer laptops with multi-core chips). To… Read More: ZFS Compression – A Win-Win »

Remove all ZFS snapshots

#!/bin/bashfor snapshot in `zfs list -H -t snapshot | cut -f 1`dozfs destroy $snapshotdone

nginx monitoring prtg

If you’re merely interested in recording the connection information from the status page, you can use the embedded variables that the status module exposes, and format them for consumption by the HTTP Content sensor directly in the NGINX configuration: location /prtg { return 200 [$connections_active][$connections_reading][$connections_writing][$connections_waiting]; access_log off; allow x.x.x.x/y; deny all; } Reference: https://nginx.org/en/docs/http/ngx_http_stub_status_module.html

zfs replicate

https://github.com/leprechau/zfs-replicate/blob/master/zfs-replicate.sh