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
worker_processes 2; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
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
[Builder: fluentd-ui] I | Build fluentd-ui: 52.9431s | |
The following shell command exited with status 1: | |
$ BUNDLE_GEMFILE=Gemfile.production /opt/td-agent/embedded/bin/rake build | |
Output: | |
(nothing) | |
Error: |
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
time:2013-12-03T19:09:04+0900 level:FATAL message: | |
ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"): | |
vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:38:in `call_app' | |
vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/rack/logger.rb:22:in `call' | |
vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/request_id.rb:21:in `call' | |
vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call' | |
vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call' | |
vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/cache/strategy/local_cache.rb:83:in `call' |
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
]# /etc/init.d/td-agent start | |
Starting td-agent: runuser: warning: cannot change directory to /var/lib/td-agent: そのようなファイルやディレクトリはありません | |
[ OK ] |
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
$ dig @8.8.8.8 tophatenar.com | |
; <<>> DiG 9.7.6-P1 <<>> @8.8.8.8 tophatenar.com | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48927 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: |
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
$ dig tophatenar.com | |
; <<>> DiG 9.7.6-P1 <<>> tophatenar.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9098 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;tophatenar.com. IN A |
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 | |
TMP_LIST=(`nodetool -h 192.168.0.1 ring| grep 192.168 | awk '{print $1}'`) | |
TMP_LIST_LAST_NUM=`expr ${#TMP_LIST[*]} - 1` | |
SORT_LIST=() | |
SKIP_NUM="5" | |
SEQ_LAST_NUM=`expr $SKIP_NUM - 1` | |
for t in `seq 0 $SEQ_LAST_NUM` |
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
foreach my $host(@host_list){ | |
$pm->start and next; | |
my @all_status = get_jmx_value($host,$jolokia_port,$threshold); | |
print "$host" . "\n"; | |
foreach my $status(@all_status){ | |
print $status . "\n"; | |
} | |
$pm->finish(0, { 'host' => $host, 'all_status' => \@all_status}); | |
} |
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
import boto3 | |
import time | |
# Get the service resource. | |
dynamodb = boto3.resource('dynamodb') | |
table = dynamodb.Table('access_log') | |
print(table.item_count) | |
starttime = time.time() |
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
<store> | |
type datacounter | |
#unit minute | |
count_interval 60 | |
count_key response_time | |
tag apache_result.response_time.all | |
aggregate all | |
# patternX: X(1-9) | |
pattern1 0-100msec ^\d{1,5}$ | |
pattern2 100-200msec ^1\d{5}$ |