SNMPããã¼ã¸ã£ããSNMPã¨ã¼ã¸ã§ã³ãã«åãåãããããå 容ã¯ããã®ä»ã«CPU使ç¨çãã¡ã¢ãªä½¿ç¨ç ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ãªã³ã¯ã¢ããããã¦ã³ç¶æ ããã©ãã£ãã¯éãMTUãSpeed/duplexã®ç¶æ ã確èªå¯è½ã âãSNMPã®ãã©ãã£ã㯠SNMPã¨ã¼ã¸ã§ã³ããUDPï¼ãã¼ãçªå·161ï¼ã使ç¨ãã¦ãSNMPããã¼ã¸ã£ãUDPï¼ãã¼ãçªå·162ï¼ã 使ç¨ãã¦ãã¾ããå¾ã£ã¦ãSNMPããã¼ã¸ã£ããSNMPã¨ã¼ã¸ã§ã³ãã¸ã®ååãã¯ãSNMPã¨ã¼ã¸ã§ã³ãã¸ã® å®å ãã¼ãã¨ãã¦UDPï¼ãã¼ãçªå·161ï¼ã使ç¨ããã¾ããä¸æ¹ãSNMPã¨ã¼ã¸ã§ã³ãããSNMPããã¼ã¸ã£ ã¸ã®ãã©ããéç¥ã¯ãSNMPããã¼ã¸ã£ã¸ã®å®å ãã¼ãã¨ãã¦ãUDPï¼ãã¼ãçªå·162ï¼ã使ç¨ããã¾ãã âãMIB ( ãã ) ã¨ã¯ MIB (Management Information Base) ã¨ã¯ãSNMPã¨ã¼ã¸ã§ã³ãã
åãµãã¼ãæéã§ã¯ä»¥ä¸ãæä¾ãããã¨ã«ããã客æ§ç°å¢ã®Zabbixã®å®å®éç¨ãæ¯æ´ãã¾ãã *ãã«ãµãã¼ã ã¤ã³ã¹ãã¼ã«æ¹æ³ã使ç¨æ¹æ³ãè¨å®æ¹æ³ã«é¢ãããåãåããã®åç åé¡ã®åå 調æ»/åæ ãã¹ã¦ã®ã¬ãã«ã®ãã°ãã£ãã¯ã¹ æ©è½æ¹åè¦æã¸ã®å¯¾å¿ **ãªãããããµãã¼ã ã¤ã³ã¹ãã¼ã«æ¹æ³ã使ç¨æ¹æ³ãè¨å®æ¹æ³ã«é¢ãããåãåããã®åç åé¡ã®åå 調æ»/åæ æ·±å»åº¦ã®é«ããã°ã®ä¿®æ£ ã»ãã¥ãªãã£ãã£ãã¯ã¹ ***延é·ãµãã¼ã LTSã®ãµãã¼ãæé(5å¹´é)ãè¶ ãã¦ãµãã¼ããå¿ è¦ãªå ´åã«ä¸è¨ãæä¾ãããµãã¼ãã§ããäºåã«å¿ ããç¸è«ãã ããã ã¤ã³ã¹ãã¼ã«æ¹æ³ã使ç¨æ¹æ³ãè¨å®æ¹æ³ã«é¢ãããåãåããã®åç åé¡ã®åå 調æ»/åæ (!) Zabbixãªãããããµãã¼ãæéãçµäºããã¨æ·±å»åº¦ã®é«ããã°ã®ä¿®æ£ãã»ãã¥ãªãã£ãã£ãã¯ã¹ãå«ãã¢ãããã¼ãã¯è¡ãªãããªãããããªãããããµãã¼ãæéçµäºå¾ã¯ææ°
ããã«ã¡ã¯ãcloudpack ã® ä»å²¡ ã§ãã lsyncd ã使ã£ã¦ã2å°ã®ãµã¼ãä¸ã®ãã¡ã¤ã«ãåæ¹åããã®åæãæ¤è¨¼ãã¦ããæã«ãäºæãã¬ãã¡ã¤ã«åé¤ãçºçãã¾ããããã®è¬ã¨å¯¾å¦æ¹æ³ã«ã¤ãã¦è¿«ãã¾ãã lsyncdã§åæ¹ååæã¨ã¯ï¼ lsyncd ã¯èªåã®ç¹å®ã®ãã£ã¬ã¯ããªãè¦å¼µããå¤æ´(ãã¡ã¤ã«ã®è¿½å ãå¤æ´ãåé¤ç)ã®ã¤ãã³ããçºçããå ´åããããããªã¬ã¼ã«ä»ã®ãµã¼ãã¸ä¼æ¬ããããããã¨ãã§ãã¾ãããããã lsyncd ã¯ããã¾ã§ãèªãµã¼ãã®ãã¡ã¤ã«å¤æ´ãæã¾ããã ããªã®ã§ãç¸æã®ãµã¼ãã«èµ·ãã£ãå¤æ´ã¯ãããã¾ããã ããã§ãä¾ã¨ãã¦2å°ã®ãµã¼ãã§ãäºãã« lsyncd ãããããã¨ã«ããã2å°ãå ¨ãåãç¶æ³ãä½ãã¾ããä¸å³ã®ãããªæ§æã§ãã(çµµã¯AWSã§ãããå¥ã«AWSã«éã£ã話ã§ã¯ãªãã§ãã) lsyncã¤ã³ã¹ãã¼ã« CentOS 6ç³»ã®å ´åã¯ãä¸è¨ãåèã«ã¤ã³ã¹ãã¼ã«ã§ãã¾
ããã«ã¡ã¯ãã¡ã«ãã¤ã§ããã¯ã¨ã³ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ããã¦ãã id:koemu ã§ãã ãããããã°ã©ã ã®ã話ãä»åã¯éç¨ã»ç£è¦ã«ã¤ãã¦ã話ãããã¨æãã¾ããå½ç¤¾ã¯ãã¹ã¦ã®æ¥åã24æéè¡ããã¦ãã¾ãã®ã§ãã·ã¹ãã ããªã³ã©ã¤ã³ã®ã¨ãã«åä½ãããããããã°ã©ã ã«ã¤ãã¦ã®ã¿è°è«ãã¾ãã éå»ã®è¨äºã¯ãã¡ãã«ããã¾ãã éç¨ã«åã㦠ãããããã°ã©ã ã®éç¨ã«ã¤ãã¦ããããªã¢ã¼ãã ããå®è¡ç®¡çãããã¦ããã°ç®¡çãã®3ç¹ã«ã¤ãã¦è¿°ã¹ã¦ããã¾ãã ããªã¢ã¼ãã ãã¹ãã¢ã¼ãã ã¨ããè¨èãèãããã¨ãããæ¹ã¯ããã£ããããã¨æãã¾ãããã¹ãã¢ã¼ãã ã¨ã¯ãGoogleã®SREæ¬ã®15ç« *1ã«ããã°ãé害ãªã©ã®å¤±æãæ¯ãè¿ããä»å¾ã«æ´»ããããã»ã¹ã®ç·ç§°ã¨æãããã¨ãã§ãã¾ãã ãã¦ãããªã¢ã¼ãã (ããªã¢ã¼ã¿ã )ã¨ã¯ä½ã§ããããããã®è¨èã¯ãç§ãæè¿èªãã The Managerâs Path*2*3ã§ä½¿
Linux2.6ãã追å ãããinotifyã¨ããAPIã¯ããã¡ã¤ã«ããã£ã¬ã¯ããªã¼ã§ãªã¼ãã³ãã¯ãã¼ãºã移å/ååå¤æ´ãåé¤ãä½æãå±æ§ã®å¤æ´ãªã©ã¨ãã£ããã¡ã¤ã«ã·ã¹ãã ã¤ãã³ããç£è¦ãããã¨ãã§ãã¾ãã inotify API群ãå©ç¨ãã¦èªåã§ãã¡ã¤ã«ã·ã¹ãã ã¤ãã³ãç£è¦ããã°ã©ã ãå®è£ ãããã¨ãã§ãã¾ããã ä»åã¯ãinotify-toolsã¨ããinotifyãå©ç¨ãããã¡ã¤ã«ã·ã¹ãã ã¤ãã³ãç£è¦ãã¼ã«ã使ç¨ãã¾ãã inotifyã¤ãã³ã inotifyã§ã¯å¯¾è±¡ã®ãã¡ã¤ã«ã¾ãã¯ãã£ã¬ã¯ããªã«å¯¾ãã¦ä»¥ä¸ã®ãã¡ã¤ã«ã·ã¹ãã ã¤ãã³ããç£è¦ã§ãã¾ãã â»å¯¾è±¡ããã£ã¬ã¯ããªã®å ´åã¯ããã£ã¬ã¯ããªèªèº«ã¨ãã®é ä¸ã®ãã¡ã¤ã«ã対象ã¨ãªãã¾ãã ã¤ãã³ãå ã¤ãã³ãçºçã¿ã¤ãã³ã°
Prometheusã¯ã¯ã©ã¦ãä¸ã®ã·ã¹ãã ã«ä»£è¡¨ããããç£è¦å¯¾è±¡ã¨ãªããµã¼ããå¢æ¸ãããããªåçãªåæ£ç°å¢ã·ã¹ãã ã«é©ããç£è¦ãã¼ã«ã¨ãã¦éçºãããã2.0ã§ã¯æç³»åãã¼ã¿ãã¼ã¹ãæ¹åãããæ§è½åä¸ãªã©ãå®ç¾ãã¦ããã Prometheusã¯ã¢ããªã±ã¼ã·ã§ã³ãã³ã³ãããKubernetesã®ãããªãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ãã¼ã«ãOSããµã¼ãããããã¯ã¼ã¯ãªã©ãã·ã¹ãã ãæ§æãããã¾ãã¾ãªè¦ç´ ãç£è¦å¯¾è±¡ã¨ãããã¨ãã§ããã¡ããªã¯ã¹ã¨ãã¦CPUã®è² è·ãã¡ã¢ãªãã¹ãã¬ã¼ã¸ã®å©ç¨çãHTTPã®ã¬ã¤ãã³ã·ãªã©ä»»æã®å¤ãåå¾ãç£è¦ã§ããçµ±åç£è¦ãã¼ã«ã§ãã ç¶æ³ãã°ã©ãã§è¡¨ç¤ºãã¤ã¤ãç°å¸¸ãæ¤ç¥ããã¨ã¢ã©ã¼ããçºãããªã©ãã·ã¹ãã ç£è¦ãçµ±åçã«è¡ããã¨ãã§ãã¾ããããã«ãªãããªãã¸ã¥ã¢ã©ã¤ãºã«ã¤ãã¦ã¯ãGrafanaããªã©ã®å¤é¨ãã¼ã«ã¨é£æºå¯è½ã Prometheusã¯ãDockerã³ã³ããã®ãªã¼ã±ã¹ãã¬ã¼
ãã®ãã³ããã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®ããã® ITã¤ã³ãã©ç£è¦[å®è·µ]å ¥é (Software Design plus)ãã¨ããæ¬ãå·çã»åè¡ããéã³ã¨ãªãã¾ããã 2016/01/16ããçºå£²ã§ãï¼Amazonãªã©ã®ãªã³ã©ã¤ã³æ¸åºã§ã¯å è¡äºç´ãå§ã¾ã£ã¦ããã¾ãã é»åæ¸ç±çãããã¾ãããGihyo Digital Publishingãã®ãµã¤ããã¾ãã¯Kindleãã©ããã ãããªäººã«ãªã¹ã¹ã¡ï¼ ãµã¼ãã®ç£è¦è¨å®ã£ã¦ã©ãããã°ãããããããªã ãµã¼ãã®ç£è¦è¨å®ã¯ãã£ããã©ç£è¦ã®æ¥åãã©ãåãã°ãããããããªã ãµã¼ãã®ç£è¦ã«ã¤ãã¦ã¾ã¨ã¾ã£ãæ å ±ã欲ãã æ¬æ¸ã§ã¯ãä½ç³»çãªç¥èãæã£ã¦ããã°ãå¤ãã®æ¹ã«ããµã¼ãã®ç£è¦è¨å®ãè¡ã£ã¦ããã ããã¨ãã§ãããããã¾ã¨ãã¦ãã¾ãã ç¾å¨ãWebãµã¼ãã¹ãã¯ããã¨ãããµã¼ããç¨ããã·ã¹ãã ãéç¨ããã«ããã£ã¦ããµã¼ãã®ç£è¦ã¯å¤ããªãæ¥åã¨ãªã£ã¦ãã¾ããã
ã¤ã³ãã©ã¹ãã©ã¯ãã£ã¼é¨ã®èäºï¼@ryot_a_raiï¼ã§ããä»åã¯ç¤¾å ã§å©ç¨ãã¦ããã¢ã©ã¼ãéç¥ã·ã¹ãã ã§ããWakerã®ç´¹ä»ããã¾ãã Wakerã¯ã¢ã©ã¼ããåãä»ãã¦ãæå®ãããã¦ã¼ã¶ã«é»è©±ãªã©ã®æ段ã§ã¢ã©ã¼ããéç¥ããããã®ã¢ããªã±ã¼ã·ã§ã³ã§ãã PagerDuty ã¢ã©ã¼ãã®ã¨ã¹ã«ã¬ã¼ã·ã§ã³ã»éç¥ã¨ããã°PagerDutyãæåã§ãããå¼ç¤¾ã§ã¯ä¸»ã«ã³ã¹ãé¢ã§PagerDutyãå©ç¨ãã¦ãã¾ãããæ¥æ¬å½å ã¸ã®é»è©±çºä¿¡ã¯Global Phone Alertsã¨ãã¦ã«ã¦ã³ããããéç¥æ°ã«ãããã¾ãã1ã¦ã¼ã¶å½ãã$29ã49/æãããã¾ãããããé«ãã¨ããããå®ãã¨ãããã¯ãããããã¨æãã¾ãããã¦ã¼ã¶ãå¢ãã¦ããã¨é«ããªãããã¦ã¼ã¶ã®è¿½å ããã¥ããç£è¦ã®å§è²ã»åæ¥ããããã¥ããã¨ããç¹ãããã¾ããã ã¾ããå¼ç¤¾ã§ã¯ã·ã³ãã«ãªã¨ã¹ã«ã¬ã¼ã·ã§ã³ã¨é»è©±éç¥ã®ã¿ãå¿ è¦ããã¦ãããã¨ããèæ¯ã
2. èªå·±ç´¹ä» ïµ åå ïµç°ä¸ æ¦ï¼ããªã ãã¤ãï¼ ïµTwitter: @atanaka7 ïµ æå± ïµZABBIX-JP(çµ±åç£è¦ãã¼ã«Zabbixã®æ¥æ¬ã®ã³ã㥠ããã£) å¯ä»£è¡¨ ïµæ®æ®µã¯æSIerã®ã¨ã³ã¸ãã¢ ïµ çæ¯å° ïµZABBIX-JPã®ãµã¤ã(http://www.zabbix.jp/) 2 3. ïµ Zabbixã¨ã¯ï¼ ïµ åçã«å¤åããã¤ã³ãã©ç°å¢ ïµ ç£è¦é ç®å¢å¤§ã«ããè² è·ä¸æ ïµ Dockerã¨ã¯ï¼ ïµ Zabbixã§Dockerç°å¢ãç£è¦ ïµ Dockerç°å¢ç£è¦ã®å®è£ ä¾ ïµ ã¾ã¨ã ä»æ¥ã®ã¢ã¸ã§ã³ã 3 6. Zabbixã¨ã¯ ïµ ãªã¼ãã³ã½ã¼ã¹ã®çµ±åç£è¦ãã¼ã« ïµ ã¨ã¼ãããã«ããã©ããã¢ã¨ããå½ã§Zabbix SIAã¨ããä¼ç¤¾ãéçº ïµ åæãã¼ã¸ã§ã³ããªãªã¼ã¹ããã¦ç´10å¹´çµé ïµ ç£è¦ç¨ã¨ã¼ã¸ã§ã³ããåãµã¼ãã«ã¤ã³ã¹ãã¼ã«ãã¦ç£è¦ ïµ UNIXãLin
次ä¸ä»£ Web ã«ã³ãã¡ã¬ã³ã¹ã§ç£è¦ã«ã¤ãã¦è©±ããã¨ã«ãªã£ãã®ã§ããã¿ã¨ãã¦WEBç³»å社ã§ä½¿ã£ã¦ããç£è¦ãã¼ã«ã調æ»ä¸ã ãã¡ã¯ãã使ã£ã¦ããï¼ï¼ï¼ã£ã¦ã®ããã£ãã@mikedaã«ã¡ã³ã·ã§ã³ãã ããï¼ Cookpad Zabbix æã¯Nagios+muninã ãã©å°æ°å¢ãã¦æ§è½çã«ç ´ç¶»ãã ãã¥ã¼ã¯ãã®ã¾ã¾ããè¾ãã®ã§munin風ã«è¡¨ç¤ºããã®ãèªä½ StatusCake DataDogããµã¼ãã¹ç³»ããµã¼ãã«ç´ä»ããªãç³»ã®ç£è¦ã«ãDashBoardä¾¿å© wakerãéç¥ç¨ãPagerDutyé«ããã¨è¨ã£ã¦ryot_a_raiãç§ã§ä½ã£ãããã Kibana imonãç¬èªã®ãªã¢ã«ã¿ã¤ã ãªãµã¼ãã¹ç¨¼åç¶æ³è¡¨ç¤ºãã¼ã« NewRelic 試ãä¸ãªãã® Real-User Monitoring : JSã§beaconé£ã°ãã¦fluentd -> BigQueryãGoogle SpreadShee
ããã¯ãªã«ã RDSã®SlowLogãSlackã«éç¥ãããã£ãã AWSã®API㧠download-db-log-file-portion ããã£ããéç¥ããã«ã¯ä½¿ãåæãæªãã£ãã®ã§ MySQLã®ãã¼ãã«ã«SlowLogãä¿åãã¦ããããFluentdããSELECT & Clear ããããã¨ã«ããã ãã®è¨äºã¯Mysqlã®è¨å®ãªã®ã§ãä»ã®DBã®å ´åã¯ãããªã«å¤æ´ãã¦ãã ããã 使ã£ããã® fluent-plugin-slack : https://github.com/sowawa/fluent-plugin-slack fluent-plugin-rds-slowlog : https://github.com/kenjiskywalker/fluent-plugin-rds-slowlog RDSã®è¨å® Parameter Group slow_query_log : 1 l
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}