Script to monitor disk space usage

Here is a quick and easy script that you can add to your crontab to monitor disk space consumption. Once you hit 85% disk utilization, you automatically send an email to yourself # cat #!/bin/bash #This script runs nightly to check disk space usage ADMIN=”” df -h | grep -vE ‘^Filesystem|tmpfs|cdrom’ | awk ‘{print … Read more

hot-add CPU and memory to Ubuntu guest in VMware

Virtualization has made our lives easier. We can spin up new resources for applications, dynamically add more disk space, migrate them, etc. In vSphere, we can dynamically add additional memory and vCPU to a guest VM without any downtime (assuming its been enabled prior to powering on). Now in Ubuntu 12.04, I had two production … Read more