Archivo del Autor: carlosap
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
Sanoid is a policy-driven snapshot management tool for ZFS filesystems
https://github.com/jimsalterjrs/sanoid
sort: can’t read STDIN: Illegal byte sequence
Problem:can’t read STDIN Illegal byte sequence while du -sh, etc gupdatedbCause:Related with UTF-8 locale typeSolution: export LC_CTYPE=C
Restore / Recover dropped MySQL database from binary logs
yum provides
If you don’t know where to find the ifconfig command, follow the simple steps provided below. First let us find out which packages will provide ifconfig command. To do that , enter the following command: yum provides ifconfig Sample Output: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.aol.in * extras: centos.aol.in… Leer más »
CentOS 7: Failed to set MokListRT: Invalid Parameter
If you have the following error upon startup, do this to make the system bootable again. Failed to set MokListRT: Invalid Parameter Something has gone seriously wrong: import_mok_state() failed:Invalid Parameter Either burn a new CentoS disc, make a boot flash drive, or insert the install ISO to your VM. Boot from the disc and once… Leer más »
sudo without password solaris 11.3
When a user is specified during installation a few things happen, it gets the «root» role and so on, but it also creates the following file change to:
Backup zfs snapshot replication
https://sixfeetup.com/blog/backing-up-using-zfs-snapshots-and-replication Sending Receiving https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html