Enviar búsqueda
Cargar
Nagios on AWS / Monitering Casual Talk #1
•
2 recomendaciones
•
2,028 vistas
Ryo Kuroda
Seguir
Tecnología
Denunciar
Compartir
Denunciar
Compartir
1 de 24
Descargar ahora
Descargar para leer sin conexión
Recomendados
業務で使うIRC
業務で使うIRC
onozaty
開発初心者のためのMoodleプラグインの開発と利用(第一部) for Moodle Moot 2015
開発初心者のためのMoodleプラグインの開発と利用(第一部) for Moodle Moot 2015
Shigeharu Yamaoka
MogileFSをバックエンドとしたPrivate S3の作り方
MogileFSをバックエンドとしたPrivate S3の作り方
Ryo Kuroda
30days album / MySQL Casual Talk #3
30days album / MySQL Casual Talk #3
Ryo Kuroda
anybuild/Hosting casual #1
anybuild/Hosting casual #1
Ryo Kuroda
サーバ構築自動化 On aws sqaleの場合
サーバ構築自動化 On aws sqaleの場合
Ryo Kuroda
Munin manager - monitering casual talk #2
Munin manager - monitering casual talk #2
Ryo Kuroda
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Recomendados
業務で使うIRC
業務で使うIRC
onozaty
開発初心者のためのMoodleプラグインの開発と利用(第一部) for Moodle Moot 2015
開発初心者のためのMoodleプラグインの開発と利用(第一部) for Moodle Moot 2015
Shigeharu Yamaoka
MogileFSをバックエンドとしたPrivate S3の作り方
MogileFSをバックエンドとしたPrivate S3の作り方
Ryo Kuroda
30days album / MySQL Casual Talk #3
30days album / MySQL Casual Talk #3
Ryo Kuroda
anybuild/Hosting casual #1
anybuild/Hosting casual #1
Ryo Kuroda
サーバ構築自動化 On aws sqaleの場合
サーバ構築自動化 On aws sqaleの場合
Ryo Kuroda
Munin manager - monitering casual talk #2
Munin manager - monitering casual talk #2
Ryo Kuroda
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツール
sugiuralab
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
Atomu Hidaka
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
osamut
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
iPride Co., Ltd.
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
iPride Co., Ltd.
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
Shota Ito
プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価
sugiuralab
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
Más contenido relacionado
Último
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツール
sugiuralab
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
Atomu Hidaka
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
osamut
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
iPride Co., Ltd.
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
iPride Co., Ltd.
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
Shota Ito
プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価
sugiuralab
Último
(8)
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツール
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価
Destacado
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
Destacado
(20)
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Nagios on AWS / Monitering Casual Talk #1
1.
Nagios運用例 (on AWS) Sqaleの場合 Monitoring Casual
Talk #1 Ryo Kuroda @lamanotrama パペボ所属
2.
淡々と紹介します Nagiosの運用事例を目にすることがあまり無いの で、自分のやり方に不安を感じる。 みんな実際どうなのよ?
3.
Agenda ● 環境 ● コンフィグレイアウト ●
コンフィグ自動生成 ● 設定管理、デプロイ
4.
環境
5.
● http://sqale.jp ● AWS ●
20ちょっとのインスタンス (EC2+RDS) ● Nagiosサーバ一台 ○ 色々兼用のc1.medium ○ Amazon Linux 64bit ● 名前解決は /etc/hosts の自動更新で ○ <IP> <Name>.sqale.jp ○ <Private IP> <Name>.sqale.lan Sqale (closed beta)
6.
コンフィグレイアウト
7.
各種object設定ファイル /etc/nagios/objects/sqale/*.cfg /etc/nagios/objects/sqale ->/var/webistrano/nagios/current (deploy path) ●
サービスのobject用に一個深く掘ってる ● 過去に複数商材の設定が混ざってカオス化した (のをメンテして椅子投げた) ● パッケージデフォの *.cfg と階層分けた方が精 神衛生上よい ● デプロイもしやすいよ
8.
include @nagios.cfg cfg_file=/etc/nagios/objects/commands.cfg cfg_dir=/etc/nagios/objects/sqale ● commands.cfgだけはそのまま使っているが、 他は無駄が多く使いづらい ● sqale/commans.cfgには自分で追加定義した 分だけ
9.
コンフィグの自動生成
10.
cfg-gen.pl cronで定期的にEC2のAPIを叩くスクリプトを実行 してコンフィグファイルを生成。 objects/sqale/cfg-gen/bin/cfg-gen.pl objects/sqale/cfg-gen/temlates/{hosts.tx,roles.tx} この2つが出来る。 objects/sqale/roles.cfg (≒hostgroups.cfg) objects/sqale/hosts.cfg
11.
使ってるモジュール use Net::Amazon::EC2 0.18; use
Net::Amazon::EC2::PaperboyAttributes; use Text::Xslate; use Text::Diff;
12.
Net::Amazon::EC2::PaperboyAttributes ? インスタンスの運用ルール(tag)に合わせて便利メ ソッドを生やしてる。 $instance->roles; #
['bsae', 'build'] $ec2->describe_roles # { build => [ 'build001', 'build002' ... ], app => [ ... これらをbackup、puppet等他の自動化の仕組みでも使います。 けど、roleタグは今後止めるかもしんない …
13.
監視対象から外したい grep ! $_->inactive,
@instances; 全てのインスタンスはlaunch後に自動で監視対象に入るが、検 証用等で、監視に入れたくないものもある。
14.
roles.cfg 各role毎に内側、外側で2つのhostgroupオブジェ クトを定義。
15.
hosts.cfg roleと同様に内外で別々に定義。同じインスタンス でも、それぞれ監視すべきサービスは違う。
16.
Diff Text::Diffで既存ファイルのと差分をチェックし、変 更があった時だけreload。 差分は標準出力に吐く ->メールで履歴が追える。
17.
設定管理、デプロイ
18.
GitHub 設定はGitHubのプライベートリポジトリで管理。
19.
webistrano デプロイはwebからクリック一発。
20.
webistranoで(が)やってること serviceやcommandを足したりテンプレート(*.tx)を 変更したらデプります。 1. /var/webistrano/sqale/releses/ 以下に最新の設 定がrsyncで送られる 2.
/var/webistrano/sqale/current にリンクが貼り直さ れる 3. cfg-gen.plを実行して、コンフィグ生成 4. nagios reload 5. 終わったらikachan経由でIRCに通知(失敗、成功)
21.
その他
22.
define command { command_name
notify-host-by-ikachan アラートもikachanでIRCに送ってます。ikachan大 活躍。
23.
リポジトリへのリンク webのサイドバーにリポジトリ(のhistory)へのリン クを足しておくと地味に便利。
24.
以上でございます。
Descargar ahora