Store backups
- Local disk
- Remote storage - copy by scp
- Remote storage - sync using Rsync
download Chefdk from here: https://downloads.chef.io/chefdk
install ChefDK
sudo dpkg -i chefdk_1.0.3-1_amd64.deb
/etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:90:24:6b:ec", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:90:24:6b:ed", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth1"
Sensu stores in Redis only last check results and history of exit codes for that check.
there is log file in Sensu where history of ALL checks is written. It can be used for extracting data, but it is not intended for user log.
We will use Sensu handler, which is triggered after every check (metric handler is triggered after every run, but other handler types are triggered after exit code changes value from previous execution!) run and provided with check results.
It is up to user to decide what to do with results, should he add data to log file, store data to Redis, or something else.
Our handler will store data in Kafka
Libraries are Ruby files placed in /libraries directory for the cookbook: .../cookbooks/mycookbook/libraries/