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
| #!/usr/bin/perl -w | |
| # -*- cperl -*- | |
| use strict; | |
| use Munin::Plugin; | |
| use Munin::Plugin::SNMP; | |
| my $response; | |
| my $iface; | |
| my $alias; |
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
| user nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| my $command = 'nodetool -h localhost tpstats'; | |
| my $prefix = "cassandra_task_"; | |
| my @graphs = qw(active pending completed); | |
| my %configs = ( |
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
| $ModLoad imuxsock | |
| $ModLoad imklog | |
| $ModLoad imudp | |
| $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | |
| $template RemoteLog, "/var/log/remote/%hostname:::secpath-replace%/%hostname:::secpath-replace%_%$year%%$month%%$day%.log" | |
| $RuleSet local | |
| *.info;mail.none;authpriv.none;cron.none /var/log/messages | |
| authpriv.* /var/log/secure |
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
| #!/usr/lib64/fluent/ruby/bin/ruby | |
| # -*- encoding: utf-8 -*- | |
| # GrowthForecastのAPIを使って複合グラフを作るサンプル | |
| # 仕様はこのへん読もう | |
| # https://github.com/kazeburo/GrowthForecast/blob/master/lib/GrowthForecast/Web.pm | |
| # | |
| # <service_name>/access/{2xx_count,3xx_count,4xx_count,5xx_count} | |
| # ↓ | |
| # <service_name>/access/access_status |
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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use RRDs; | |
| use Data::Dumper; | |
| #ホストのリストをどこから取ってくるか・・・ | |
| my $hostname = 'test01'; | |
| my @rrds = ( |
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
| # Dumper(RRDs::info "/var/lib/munin/test01/test01-cpu-user-d.rrd")の抜粋 | |
| # けっきょくのところ | |
| # 300秒ごとに監視。保存設定は以下4つ | |
| # 1. 2日間、そのまま保存 | |
| # 2. 9日間、6回(30分)ごとのサマリで保存 | |
| # 3. 45日間、24回(2時間)ごとのサマリで保存 | |
| # 4. 450日間、288回(24時間)ごとのサマリで保存 | |
| $VAR1 = { | |
| # 全体情報 |
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
| #コーディング時間5分。書き始める前に他の作業しながらある程度考えてた | |
| $ for i in {0..100};do if [ $((i%15)) -eq 0 ];then echo FizzBuzz;elif [ $((i%3)) -eq 0 ];then echo Fizz;elif [ $((i%5)) -eq 0 ];then echo Buzz;else echo $i;fi;done |
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
| #TODO | |
| # package周り調整 | |
| # ディスク部分を外出しできるように。CentOS6で%ksappendがうまく動かなくて全部ベタ書きになってる | |
| install | |
| text | |
| url --url=http://192.168.1.10/mrepo/centos6-x86_64/disc1/ | |
| lang ja_JP.UTF-8 | |
| keyboard jp106 | |
| network --onboot yes --device eth0 --bootproto dhcp --noipv6 |
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
| <match forward.mail.rcv> | |
| type rewrite_tag_filter | |
| rewriterule1 to @blog\.mikeda\.jp$ filtered.mail.rcv.blog | |
| rewriterule2 to @mikeda\.jp$ filtered.mail.rcv.main | |
| rewriterule3 to @wiki\.crooz\.jp$ filtered.mail.rcv.wiki | |
| </match> |