inode使用率をcloudwatchになげるスクリプト(mon-put-data)

■inodeをcloudwatchに出力するスクリプト 環境変数、アクセスキーとかは適宜変更が必要 ■スクリプト例 #!/bin/bash############################################### スクリプト名 : inode_cloudwatch.sh# 機能概要 : inodeデータをcloudwatchに出力# 実行ユ…

XAResouce勉強メモ

https://access.redhat.com/solutions/18182■問題Could not find new XAResource to use for recovering non-serializable XAResourceがログに出る。 ■原因XA transactionがコミットと準備の間で落ちてる。トランザクションリカバリマネージャは、この疑いの…

勉強メモ01

本日の勉強メモ。 ■CNAMEレコードとAレコードの違い CNAMEは、特定のホスト(FQDN)を別のホスト(FQDN)に転送する時のレコード Aレコードは、ホスト(FQDN)とサーバーを識別するグローバルIPアドレスの関連づけを定義するレコード。 ELB は、CNAME しか登…

Pre-Warming についてメモ

Best Practices in Evaluating Elastic Load Balancing : Articles & Tutorials : Amazon Web Services Best Practices in Evaluating Elastic Load Balancing : Articles & Tutorials : Amazon Web Services Pre-Warming the Load Balancer Amazon ELB is a…

構築メモ

構築メモ Fluentd を使って CloudWatch のメトリクスを Graphite で見れるようにする - Qiita Fluentd を使って CloudWatch のメトリクスを Graphite で見れるようにする - Qiita td-agentとFluentdの違い - tsunokawaのはてなダイアリー td-agentとFluentd…

RDSシステムアップグレードに関するAWSからの案内の翻訳2

Dear Amazon RDS Customer, RDSご利用の皆様へ As you are aware, Amazon RDS underwent a maintenance event between 26 September 2014 and 30 September 2014 to protect your instances from any security risks associated with the now public Xen Sec…

RDSシステムアップグレードに関するAWSからの案内の翻訳

Dear Amazon RDS Customer, Amazon RDS ご利用の皆様へ All Amazon RDS for MySQL and PostgreSQL database instances have been scheduled to receive mandatory system upgrade as per the schedule below during the maintenance window you defined for …

RDS作成

「Select "Standard" to remove Provisioned IOPS support or choose "Provisioned IOPS" to ensure the DB Instance supports a fixed number of I/O operations per second.」 「Option Group to associate with the restored DB Instance. Failure to spe…

fstabにてディレクトリの権限、ユーザを設定するオプション

/etc/fstabの書式 <file system> <dir> <type> <options> <dump> <pass> オプションに uid=1001,gid=1001,mode=0775 uid=1001(apache) gid=1001(apache)のとき drwxrwxr-x apache apache のディレクトリがマウントできる。 また急にtmpfsのディレクトリ作ってと言われたら。。 ルートユーザになる $su – 設</pass></dump></options></type></dir></file>…

【AWS】Default Termination Policyとは

The default termination policy uses the following steps to identify an instance to terminate: Before Auto Scaling selects an instance to terminate, it first identifies the Availability Zone that has more instances than the other Availabili…

【シェル】netstatの情報を10分間隔でとり続けるシェル

サーバでCLOSE_WAIT状態になるコネクションがあることが判明。一晩だけ、コネクションの状況を確認するためのシェルを書いた。 $while true;do echo -n `date` ;echo -ne "\t" ; netstat -a | greo CLOSE_WAIT | wc-l ;sleep 600 ;done >> /tmp/netstat.log …

apacheの勉強した内容

ServerRoot :Apacheのインストールされているディレクトリ PidFile:デーモンのプロセス ID をサーバが記録するためのファイルを指定する Timeout :下のイベントについて、リクエストを失敗させるまでにサーバが待つ時間 ・GETリクエストを受け取るのにかか…

sarとかKsarとか,てっとり早く知りたい人用のまとめ。

SarとかKsarとか知らない人用のメモ。 Sarとは 各種システムのリソース消費量を、通常10分間隔(※2)、最短1分間隔で表示できます。mpstatとともにsysstatパッケージに同梱されています。取得できるデータはCPU使用率ばかりでなく、NIC, Disk, NFS等様々なデー…

knife-soloのインストールでつまづいたのでメモ

エラー内容。 vagrant@localhost ~]$ gem install knife-solo ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory. [vagrant@localhost ~]$ sudo gem install knife-s…

SCPコマンド メモ

SCPコマンド リモートマシン間でファイルをコピーする SSHプロトコルを用いてリモート・ホスト間で安全にファイルのコピーを行う scp 元ホスト名:file 先ホスト名:file ex: scp 192.168.10.1:/etc/php.ini /home/username/backup/phpini.log

httpd.conf php 設定メモ

■ Webにおける拡張子の取り扱い(MIMEタイプ) Webの世界では拡張子という概念と、もうひとつ『MIMEタイプ』という概念があります。MIMEタイプとは「タイプ名/サブタイプ名」の形式の文字列で、WEBサーバーとWEBブラウザの間はこのMIMEタイプを用いてデータの…

Can't open /var/run/atd.pid to signal atd. No atd running?調査メモ

atコマンドでシェルを実行しようとしたら以下のエラーが出力 Can't open /var/run/atd.pid to signal atd. No atd running? 意訳 atdデーモンが動いていないよ? /var/run/atd.pidというファイル(※)がsignal atdに開けないよ。 ※pidファイル 長時間動作し…

メモ

topコマンド Linux のタスクを表示する PID (EM プロセス IDタスクの一意なプロセス ID。 PR (EM 優先度タスクの優先度 NI (EM nice 値タスクの nice 値。 負の nice 値は高い優先度を意味し、正の nice 値は低い優先度を意味する。 このフィールドが 0 の場…

IT系ブログです。

これより調べた事をまとめていきます。