Profile id: Songmu (ã½ã³ã ã¼) Masayuki Matsuki / æ¾æ¨é 幸 ããããã¯ãããããå¹³å¡ãªæ¥ã http://www.songmu.jp/riji/ https://metacpan.org/author/SONGMU ã¯ã¦ãªæ±äº¬ãªãã£ã¹ ãã¼ãã¨ã³ã¸ã㢠Mackerel ãããã¯ãããã¼ã¸ã£ã¼ 60+ CPAN Modules 3 Times ISUCON Winner Using Perl YAPC::Tokyo 2019 ãã¹ãã¹ãã¼ã«ã¼
ããã«ã¡ã¯ï¼freeeã§ã¤ã³ãã©ã¾ã³ãããã£ã¦ãã @sugitak ã§ããã²ã¼ã ã§ã¯ã¬ãã«ãä¸ãã¦ç©çã§æ®´ãæ´¾ã§ãã freee ã§ã¯ãã¾ã«ã¤ã³ãã©ã¨ã³ã¸ãã¢ã®æ°ãæ¸ãã®ã§ããããã®æ¸ã£ãã¤ã³ãã©ã¨ã³ã¸ãã¢ã¯ã¤ã³ãã©ã¾ã³ãã¸ã¨é²åãã社å ãéæ©ãã¾ããã¤ã³ãã©ã¾ã³ãã¯ä¸»ã«éçºãã¼ã ã«æå±ãã¦ãã¢ããªã£ã½ãã¤ã³ãã©ã®ä»äºãã¤ã³ãã©ããã¢ããªå´ã¸ã¨æã£ã¦ããã¾ãããããã¤ã¨ããDockerã¨ããJenkinsã¨ãã®ããããã DevOps ç³»ã®ã¨ããã§ããããããããã¨ã§éçºè ã¯æãåºãããã®ã®èªç±åº¦ãå¢ããããã¤ã³ãã©ã¯ããæ¬æ¥ã®ã¤ã³ãã©ã¨ãã¦ç´åº¦ãä¸ãã¦ãããã so, win-win ã£ã¦ããã§ãã ãã¦ããããªããã§ç£è¦ã§ããfreee Engineers Advent Calendar 2016ã®9æ¥ç®ã®è¨äºã¨ãã¦ã Prometheus ã«ããç£è¦ãæé«ãªã®ã§ã¿ããªãã£ã¨ä½¿ããã¨
# vi /usr/local/sbin/check-service.sh #!/bin/bash if [ $1 = 'help' ] || [ $1 = 'usage' ] || [ $1 = 'man' ] then echo "usage:# check-service.sh service" else service=$1 script="/etc/init.d/$service" if ! $script status | grep -q "pid" then $script stop > /dev/null 2>&1 $script start echo "$service is restarted." else echo "$service already runs." fi fi
æ¢ãã©ãªããµã¼ãã«æ¼ãå¯ããããã«ã¼ã«ããæ»æ ããµã¼ããç¡é²åãªç¶æ ã§ã¤ã³ã¿ã¼ãããã«ç¹ãã¨ã30åã§ãããã³ã°ããããã¨ããã·ã§ããã³ã°ãªãã¼ã¿ã示ãéããå¥å ¨ãªãµã¼ãéç¨ã«ã¯ã»ãã¥ãªãã£å¯¾çãå¿ é ã§ãã ãµã¼ãã¸ã®æ»æã¯ãã¼ãã¹ãã£ã³ã»èå¼±æ§ã®ææ¡ã»ç·å½ããæ»æã»Dosæ»æã¨å¤å²ã«æ¸¡ãã¾ãã æ»æã確å®ã«é²ãã«ã¯ãã°ãåæãã¦1ã¤1ã¤å¯¾çãåãå¿ è¦ãããã¾ãã ãããªãã¨ãã©ããã¦ã人åã§ã®å¯¾çã«ã¯éçãããã¾ãã ãããªæ©ãããµã¼ã管çè ã®å¼·ãå³æ¹Swatchã«ã¤ãã¦è§£èª¬ãã¾ããSwatchã使ãã°ãµã¼ãã®ãã°ãç£è¦ããäºãç»é²ãã¦ããã対çãå®è¡ãããã¨ãã§ãã¾ãã 1ã¤1ã¤ã®è¨å®ã¯åç´ã§ãããè¤æ°ã®è¦ç´ ãçµã¿åããã¦åä½ããããã解説ãé·ããªãã®ã§ã2åã«åãã¦è§£èª¬ãã¾ãã ä»åã¯åºæ¬ç·¨ã¨ãããã¨ã§ãSwatchã®ã¤ã³ã¹ãã¼ã«ãããåºæ¬çãªä½¿ãæ¹ã¾ã§ã解説ãã¾ãã ç®æ¬¡ swa
swatchã®thresholdè¨å®swatchã§ãã°ãç£è¦ããå ´åãåããã°ãä½åº¦ãåºã¦ããå ´åã«åãã¦éå¼ãè¨å®ãè¡ããã¨ãå¤ãã æå®æéã®éãåãã¢ã¯ã·ã§ã³ã®åå®è¡ãææ¢ããthrottleæå®ããã¢ã¯ã·ã§ã³å®è¡ãè¡ããããå¤ãæå®ããthresholdæå®ããããããã§ã¯thresholdã使ãå ´åã«æå®ããtypeãã©ã¡ã¼ã¿ã®æå³ã«ã¤ãã¦èª¬æããã 以ä¸ã«swatchã®configã®ã¨ã³ããªä¾ã示ããsshçã«ããèªè¨¼å¤±æã®ãã°ãè¦ã¤ããããã¢ã¯ã·ã§ã³(ã¡ã¼ã«éä¿¡)ãå®è¡ããåä½ãæ³å®ãã¦ããã swatchã®configä¾ watchfor /authentication failure/ mai[email protected],subject="Swatch detected authentichation failure" threshold track_by=/authf
Zither, Sitar ã£ã¦ãªã«ï¼ ã¯ããã« zitherã®ç´¹ä»ãã¼ã¸ã¸ããããï¼ ããã§ç´¹ä»ãã¦ããããã°ã©ã ã¯ãããã¯ã¼ã¯ãµã¼ãç£è¦ç¨ããã°ã©ã ã§ãã®ã§ãæ®éã®æ¹ã¯ 使ããªãã¨æãã¾ãã対象ã«ãã¦ããã®ã¯å¤æ°ã®ãããã¯ã¼ã¯æ©å¨ã管çããã¦ããæ¹ã§ãã zither ã¯ãã¿ã¼ã¨èªã¿ã¾ããsitarã¯ã·ã¿ã¼ã«ã¨èªã¿ã¾ããzitherã¯ã¨ã¼ãããã®ãsitar㯠ã¤ã³ãã®å¼¦æ¥½å¨ã§ããããããã¯ã¼ã¯ã弦ã¨è¦ç«ã¦ã¦ååã決ãã¾ãããã¾ãWindowsç¨ã¯ã© ã¤ã¢ã³ãã¨ãã¦çµç¶(biwa)ãéçºæ®µéã«ããã¾ãããããzitherãsitarãbiwaãã¢ããã³ï¼W EBã¤ã³ã¿ã¼ãã§ã¼ã¹ï¼ãªã©ã®ä¸é£ã®ããã°ã©ã ãã¾ã¨ãã¦ãzitherç£è¦ãã¨ããzitherç£è¦ã· ã¹ãã ããªã©ã¨ã¾ã¨ãã¦å¼ãã§è¡ãããã¨æãã¾ãã Zitherç£è¦ã·ã¹ãã ã追æ±ãã¦ããæ©è½ã¨ã¯ Zitherã«ãã
ã¨ããããä»10æ°ãµã¤ãã管çãã¦ããã§ããã© ããããç£è¦ãã¼ã«ã§ã使ã£ã¦çã£å½ã«éç¨ãã¦ã¿ãããªã£ãã æåãããã£ã¨ããã£ã¦è©±ãªãããã©ã¬ã³ãµãå±ã«ã¾ããã£ããã ã£ãã éç¨å±ã«ã¾ããã£ããã ã£ããã§ãã¦ã ã¨ãããããã¿ãè±å¯ãªNagiosã«ãã¦ã¿ããã¨ã ã¤ã³ã¹ãã¼ã«ã¨ãã¯ãã£ã±ãããã®ã§ã¯ãããã ãããããä¸å¯§ã«æ¸ãã¦ãã£ã¦ãªã¹ã¹ã¡ã http://journal.mycom.co.jp/column/yetanother/075/index.html ææ°çã¯3ç³»ã§ããã©2ç³»ã¨ãã大差ãªãã®ã§ååãã¨ã ã§ãã©ãã¾ã§æ°åãå ¥ãã¦ç£è¦ãããã¯ãµã¤ã次第ãªã®ã§ãã ã¨ããããä»åã¯ãã¹ãã¨WEBã®æ»æ´»ç£è¦ã ãã§ããã°ããããªã ããã¾ã§ä½ããã£ãæã®ããã®ä¿éºã¿ãããªãããªã®ã§ã ã¨ãã訳ã§ãã¹ãã¨WEBã®æ»æ´»ç£è¦ãè¡ãè¨å®ãã¡ã¤ã«ãããããã ãã®ãããç°¡åãã¤é©å½ãªãµã³ãã«
æ¬é³ã¯AWSã®CloudWatchã使ããããã§ãããä»ã¯AWSã¨ãã以å¤ãæ··å¨ãã¦ããç¶æ ãªã®ã§ãããããªãã WEBãµã¼ãã¯Apacheã使ã£ã¦ããã¾ãã ãã©ã¦ã¶ã§ç»é¢ãè¦ããã¾ã§ ã¾ãã¯nagiosã¨nagios-pluginsãã¤ã³ã¹ãã¼ã«ãã¾ããcheck_httpããã©ã°ã¤ã³ã¨ãã¦æä¾ããã¦ããã®ã§ã
ã¢ã«ã¦ã³ãç»é²ããã¯ããã¦è¨å®å®äºã¾ã§10åç¨åº¦ãæãããã»ã©æ軽ã«å°å ¥ã§ããããã«ãæ å ±éãå端ãªãããµã¼ãã¼ç£è¦ãµã¼ãã¹ã®NewRelicã ãã©ã³ã¶ã¯ã·ã§ã³ã®ã¬ã¹ãã³ã¹ããã¨ã©ã¼éè¨ããã¹ã«ã¼ãããããApdexscoreã¾ã§å°åºãã¦ããã¾ãã ç¡æçã§ãã¢ã©ã¼ãã¡ã¼ã«ã¾ã§é£ã°ãã¦ããããå代æªèã®åããããµã¼ãã¹ã§ãããã³ã¼è奮æ°å³ãªã®ã§ããã«ç´¹ä»ãã¾ãã NewRelicã®å°å ¥ å°å ¥ã®çµç·¯ å½ããã°ãhamako9999.netã¯ããããVPSã§éå¶ãã¦ã¾ããã¬ã³ã¿ã«ãµã¼ãã¼ã¨ãã¨éã£ã¦ãroot権éã§ãªãã§ãã§ããèªç±åº¦ã¯ããããã©ãã¢ã¯ã»ã¹éä¸ã§ãã¦ã³ãããã¨ãã§ã誰ããã¾ã£ã¦ããã¾ããã ãµã¼ãã¼ãã¹ãã£ã³ã°å´ã®åºç¤ã¤ã³ãã©é¨åã§ãããããã©ãã«ããªããªãããã©ãã¢ããªã±ã¼ã·ã§ã³ã¬ã¤ã¤ã¼ã¯èªåã§è¦ãªãã¨ãããªãã®ã§ã以åãã話é¡ã®ãç¡æã§ä½¿ãããµã¼ãã¼ããã©ã¼ãã³ã¹ç£è¦ãµã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}