This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vars # | |
disk="/dev/disk0s2" # disk to monitor | |
current_usage=$(df -h | grep ${disk} | awk {'print $5'}) # get disk usage from monitored disk | |
max_usage="20%" # max 90% disk usage | |
mail="[email protected]" # mail to sent alert to | |
# functions # | |
function max_exceeded() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* Get your Facebook-statuses and Twitter-tweets on your website with ease. | |
* Go to http://feedburner.com and burn your feed. | |
* Use your feedburner-url with this class to set feed. | |
* | |
* Author: Anders Aarvik | |
* | |
*/ |
NewerOlder