更新: | 2021-05-23 |
---|---|
作者: | @voluntas |
バージョン: | 2021.1 |
URL: | https://voluntas.github.io/ |
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
#!/bin/bash | |
table_list=`AWS_PROFILE=hoge aws dynamodb list-tables | jq -r '.TableNames[]'` | |
for table in $table_list | |
do | |
table_size=`AWS_PROFILE=hoge aws dynamodb describe-table --table-name $table| jq -r '.[].TableSizeBytes'` | |
if expr $table_size \< 1024 > /dev/null | |
then | |
table_size="${table_size} Bytes" |
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
# These are very quick & dirty notes on getting Icinga installed on Centos 6.5 via RPMs, | |
# as most documentation seems to be based around source installation. It's mostly recovered from | |
# my history as I worked it out, so no guarantees are offered. | |
# Make EPEL available | |
sudo rpm -Uvh http://mirror.bytemark.co.uk/fedora/epel/6/i386/epel-release-6-8.noarch.rpm | |
# Install HTTPd | |
sudo yum install httpd | |
sudo service https start |
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
#!/bin/bash | |
### 使い方 | |
### アラート停止:nagios_alert.sh stop web01 db01 | |
### アラート再開:nagios_alert.sh start web01 db01 | |
command_file="/var/spool/nagios/cmd/nagios.cmd" | |
if [ $# -lt 2 ];then | |
echo "usage: $0 <start|stop> hosts1 host2 ..." |
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
source :gemcutter | |
gem 'pit' | |
gem 'sauberia-aws-s3' |