Shell yesterday’s date

The date command in SH is pretty powerful. Here’s you can get yesterday’s date - something I find myself doing frequently for things like get data from an API for the last day, etc.

$ date +%Y-%m-%d --date=yesterday
2014-02-05
 
2
Kudos
 
2
Kudos

Now read this

MySQL Replication Slave Monitoring Script for Zenoss

To monitor a slave you need to check if Slave IO Thread is running (Alert when not running) Slave SQL Thread is running (Alert when not running) Seconds behind master (Alert when passes a certain threshold) Zenoss expects the output of... Continue →