This file contains hidden or 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
aws cloudwatch put-metric-data --metric-name "Security Updates Available" --dimensions InstanceId=$(ec2metadata --instance-id) --namespace "EC2" --value $(/usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 2) |
This file contains hidden or 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
aws cloudwatch put-metric-data --metric-name "Mail Queue" --dimensions InstanceId=$(ec2metadata --instance-id) --namespace "EC2" --value $(echo $(($(mailq | grep -Po "(?<=in )([0-9]+)"| paste -sd+ | bc)+0))) |
This file contains hidden or 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
aws cloudwatch put-metric-data --metric-name "sendmail queue" --dimensions InstanceId=$(ec2metadata --instance-id) --namespace "EC2" --value $(mailq | grep -Po "(?<=Total requests\: )([0-9]+)"| paste -sd+ | bc) |
This file contains hidden or 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
var Combat_Begins = Combat_Begins || {}; | |
Combat_Begins.statName = new Array ("Dex"); //Stats to be added to roll, commas between values | |
Combat_Begins.rollValue = 20; //rolling 1d20, change if you roll 1dXX | |
Combat_Begins.sendChat = true; //True if you want the chat log to show their results | |
Combat_Begins.includeChars = true; //set false if you want to roll for players | |
//If you want players to roll, make this a global macro (add other stats as needed): | |
// @{selected|token_name} rolls a [[ 1d20 + @{selected|Dex} &{tracker} ]] for initiative! |