2015-04-01から1ヶ月間の記事一覧
状況 ドメイン参加前に knife bootstrap でプロビジョニング済みの windows server を、 新規構築した Active Directory にドメイン参加させた後に chef-client がエラーになる。 $ bundle exec knife winrm -m ${ip_addr} -x ${user_name} "c:\opscode\chef…
terraform の全能感いいですね。 terraform 0.4.2 で既存の VPC に対して下記のことを行ったのでメモです。 なお、インストールは brew install terraform で実施しました。 $ terraform usage: terraform [--version] [--help] <command> [<args>] Available commands are:</args></command>…
aws s3api list-objects --bucket ${BUCKET} --prefix ${PREFIX} \ --query 'sort_by(Contents[],&LastModified)|[-1]' --query オプションいいですね。
過去のバージョンの postgresql の rpm を探すことになったのですが、本家にはないので google したら mirror があったのでメモ。 Index of /mirror/CentOS-Third-Party/pgrpm/pgrpm-93/redhat
bash で munin がんばるシリーズです。 pgrep で取得した情報からごにょごにょやっています。 Used な Connection が増えまくったことで新規コネクションが pgpool によって待たされることがないようにリソース監視しましょうというのが目的です。 グラフ化…
そういう機能がある気もしますが、bash で書けたので晒してみます。 cron などで日次で動かすことを想定しています。 この内容だと、30/15/7日前に通知メールを送信するようになっています。 #!/bin/bash # Reserved Instance expire checker from_address="…
表題の通りの munin plugin です。 elb_traffic.sh #!/bin/bash AWS="/usr/bin/aws --region ap-northeast-1" ELB_NAME=`basename $0 | cut -d _ -f 1` # 取得したいメトリクス METRICS=("RequestCount" "HTTPCode_ELB_4XX" "HTTPCode_ELB_5XX" "HTTPCode_Ba…