Elevate 2026開催まであとわずか。シカゴ、ロンドン、シドニーのいずれかでお会いしましょう。

Register here

Partners

ドキュメント

LMアカデミー

LMコミュニティ

Platform

ソリューション

価格

資料

会社

Platform
  • ITを
  • クラウドとマルチクラウド
  • ログ管理
  • エドウィン AI
解決策
  • オートメーション
  • ツールの統合
  • MTTR の削減
  • コスト最適化
業種
  • 健康
  • 金融
  • 公共部門
  • MSP
職種
  • 最高情報責任者
  • ITOps
  • クラウド オペレーション
  • AI Ops
結果はありません。
無料トライアル

14日間フルアクセス LogicMonitor プラットフォーム

プラットフォーム詳細

監視、情報収集、そして行動のための、単一のプラットフォーム、単一のシステム。

エージェントAIOps

インフラストラクチャの可観測性

雲の可観測性

インターネットパフォーマンス監視

デジタル エクスペリエンスのモニタリング

ログ管理

3,000以上の統合

エージェントAIOpsの概要

環境全体にわたる問題を自律的に検知、診断、解決します。

エドウィンAIをご紹介します

断片化された異分野間のイベントノイズを、説明可能で、指針となる行動へと変換する。

AIエージェント

インシデント発生から発生する事象のライフサイクル全体にわたる調査に対応するため、専門的なAIエージェントを導入する。

イベントインテリジェンス

生のアラート嵐を圧縮し、高精度で優先順位付けされた洞察へと変換します。

AIオートメーション

自動化プレイブック全体にわたって、統制されたクローズドループ型の修復処理を実行します。

IT運用コンテキストグラフ

NEW

トポロジー、テレメトリ、および変更点を統合し、AI対応のコンテキストレイヤーを作成します。

MCP

NEW

AIツール統合のための、追跡可能で安全なガバナンス境界を確立する。

インフラストラクチャの可観測性の概要

ハイブリッド機器群全体を完全に可視化することで、ツールの乱立を解消します。

ネットワーク監視

詳細なネットワーク経路とデバイスの可視性を活用することで、無実の証明までの時間を短縮します。

サーバー監視

環境全体にわたって、サーバーの状態、OSの指標、およびリソースの使用状況を追跡します。

リモート監視

分散エンドポイント、ブランチネットワーク、および遠隔施設の健全性を監視します。

VM監視

ハイパーバイザーのパフォーマンスを最大化し、コンピューティング能力計画を効率化する。

SD-WAN モニタリング

リアルタイムのエッジ可視化により、複数拠点のクラウドネットワークの接続性を維持します。

データベース監視

データベースクエリのボトルネックを特定し、ビジネスアプリケーションの高速性を維持する。

構成監視

デバイス構成のずれを追跡することで、変更失敗率を最小限に抑えます。

ストレージの監視

SAN/NASアレイ、IOPSボトルネック、ストレージ容量の傾向を追跡します。

クラウド可観測性の概要

マルチクラウド環境とハイブリッド環境を単一の操作画面に統合。

コンテナ監視

Kubernetesと一時的なマイクロサービスのための、自動化されたリアルタイムの可視化。

AWSモニタリング

AWSのサービス、スケーリング、コストをオンプレミスのデータと並行して追跡します。

Googleクラウドモニタリング

GCPネイティブのインフラストラクチャ、コンピューティング、およびサーバーレスリソースを監視します。

Azureモニタリング

Azure環境、ゲートウェイ、ワークロードに関する包括的な可視性。

AIモニタリング

LLMインフラストラクチャ、GPU使用率、およびAIアプリケーションスタックの状態を追跡します。

Oracle Cloudモニタリング

OCIネイティブコンピューティング、エンタープライズデータベース、クラウドストレージを追跡します。

SaaSモニタリング

重要なSaaSアプリケーションの可用性と従業員の生産性を検証する。

クラウドコストの最適化

クラウド支出を最適化し、パフォーマンスを維持し、予算を管理する。

インターネットパフォーマンス監視の概要

ユーザーが依存するあらゆる場面において、フルスタック全体のパフォーマンスを把握する。

インターネットヘルス

NEW

世界各地の観測地点を活用して、インターネット障害を独自に検証する。

リアルユーザーモニタリング

NEW

実際の顧客体験とフロントエンドのパフォーマンスをリアルタイムで把握します。

総合モニタリング

NEW

ユーザーの取引やSaaSのワークフローをシミュレートすることで、問題を早期に発見できます。

エンドポイントの監視

NEW

デバイスやネットワークを横断したリモートワークにおける従業員のデジタル体験を診断する。

デジタル エクスペリエンスのモニタリング

所有権や所在地に関わらず、すべての依存関係を表示します。

ウェブサイト監視

積極的な合成チェックと稼働状況追跡により、収益獲得プロセスを保護します。

CDNモニタリング

NEW

CDNプロバイダー全体におけるエッジパフォーマンスとレイテンシのばらつきを監査する。

API モニタリング

NEW

重要なアプリ統合におけるエンドポイントとサードパーティAPIの信頼性をテストする。

アプリケーションパフォーマンスの監視

コードの実行状況とトレースをインフラストラクチャの状態に直接接続します。

DNS 監視

NEW

グローバルネームサーバーの解決時間を追跡することで、問題解決までの時間を短縮します。

DevOpsライフサイクルモニタリング

NEW

デプロイ時に依存関係を検証することで、リリース速度を維持します。

BGP監視

NEW

グローバルなルーティング変更と経路漏洩を追跡し、インターネット接続の安全性を確保する。

ログ管理の概要

ログデータを一元管理し、相互に関連付けることで、インシデントが深刻化する前に解決する。

ログ分析とインテリジェンス

コンテキストログデータとメトリクスを関連付けることで、根本原因分析を迅速化できます。

WebPageTest Webパフォーマンス

実際のデバイスと世界各地で、ウェブサイトの速度、コアウェブバイタル、およびパフォーマンスをテスト、比較、最適化します。

さらに詳しく
ソリューションを見る

予測分析、インテリジェントな自動化、およびフルスタックの可観測性を活用して、最新のハイブリッド環境を積極的に管理します。

事業成果別

業務別

業界別

Professional Services

自律型IT

予測型、自律型IT構築

レジリエンスのために。

オートメーション

安全でポリシーに準拠した修復ワークフローにより、運用上の煩雑な作業を排除します。

近代化と変革

複雑な技術移行を加速させると同時に、企業の中核となる回復力を保護する。

クラウドの移行

移行期間中もワークロードのパフォーマンスを維持する。

ツールの統合

断片化された監視ツールを置き換えることで、ライセンスコストとサイロ化を削減します。

コスト最適化

クラウドの無駄な利用や活用されていないリソースを見つけることで、サービス提供にかかる総コストを削減しましょう。

オペレーション効率向上

アラートの集中発生やシフト交代時の摩擦を軽減することで、チームの能力を最大限に引き出します。

MTTR の削減

トポロジーを考慮した推定原因を数分で明らかにすることで、作戦室での時間を短縮します。

ネットワーク接続性

NEW

外部のBGP、ISP、およびSaaSプロバイダーの接続境界を独自に監査する。

エッジ展開の最適化

NEW

SLOを監視し、プロバイダーを比較し、クラウドおよびエッジでの配信を検証する。

Web パフォーマンスの最適化

NEW

グローバルなフロントエンドのレイテンシ指標を追跡することで、デジタル決済のコンバージョン率を最大化します。

アプリケーションの復元力

NEW

取引の失敗や高額なダウンタイムからビジネスサービスを保護します。

従業員の生産性

NEW

生産性を維持するために、リモートのハードウェアおよびネットワークの問題をトラブルシューティングします。

最高情報責任者

企業の回復力を最大限に高め、AIへの投資を測定可能なビジネスROIに結びつける。

AI Ops

ドメイン横断的なイベントノイズを圧縮し、説明可能で自動化された運用上の活用機会へと変換する。

DevOps

エンジニアリングロードマップを煩雑な作業から守ることで、リリースを迅速化します。

ITOps

インシデント対応を標準化することで、アラート疲労や時間外勤務を軽減する。

クラウド オペレーション

マルチクラウド環境における可視性を統合することで、コストを最適化し、ハイブリッド環境の影響範囲を追跡します。

健康

臨床ワークフロー全体を通して、継続的なケアと電子カルテの利用可能性を確保する。

公共部門

市民向けサービスにおける業務継続性と監査対応体制を確保する。

MSP

マルチテナント対応のAI支援型トリアージを活用して、サービスマージンを保護し、運用規模を拡大します。

小売&Eコマース

ピーク時の小売キャンペーン、POSシステムの稼働率、およびデジタル顧客体験を保護します。

テクノロジー

SLAに基づいた可視性によって、顧客の信頼と開発スピードを守ります。

ホスピタリティー

スムーズな顧客体験を提供し、予約システムを常にオンライン状態に保ちます。

教育支援

学生ポータル、学習プラットフォーム、キャンパスネットワークを常時稼働状態に保つ。

製造業

ITシステム、OT関連システム、エッジシステムを統合することで、生産停止時間を防止します。

金融

安全な取引の信頼性を確保し、厳格な耐障害性に関するコンプライアンス要件を満たす。

LogicMonitor を選ぶ理由

一流のITチームが、ハイブリッドな可観測性を統合し、ツールの乱立を解消するために当社を信頼する理由をご覧ください。

さらに詳しく
リソースを見る

ITプロフェッショナル向けのリソースライブラリをご覧ください。専門家によるガイド、戦略、そしてよりスマートなAI駆動型オペレーションのための洞察が満載です。

資料

今後のイベント

プラットフォームヘルプ

Blog

可観測性と AI に関するあらゆることについての専門家からの洞察とアドバイス。

ケーススタディ

LogicMonitor プラットフォームについての実際のユーザーの意見をご覧ください。

ウェビナー

ライブ学習とオンデマンド学習がすべて 1 か所に集まります。

ITガイド

ITチームにとって最も重要なトピックについて、専門家による解説から学びましょう。

比較方法

当社のプラットフォームが他のソリューションと比べてどのような優位性を持っているかをご覧ください。

会議

剣の日

2026 年 9 月 17 日

ジュネーブ

ウェビナー

インシデント管理はもはや従来のやり方では対応しきれない

2026 年 9 月 23 日

中国語を学ぶ

すべてのイベントを表示

イノベーションに焦点を当てたカンファレンス、技術講演会、ウェビナー、その他のイベントにぜひご参加ください。

サポートドキュメント

製品ドキュメント、リリース ノート、サポート リソースにアクセスします。

LMコミュニティ

コミュニティに参加して、仲間から学び、質問し、専門家とつながりましょう。

顧客教育

リソースやライブトレーニングを通じて、当社のプラットフォームについて詳しく学んでください。

2026年 自律型ITの年

NEW

業界を自律型ITへと移行させるトレンド、ベンチマーク、戦略についてご紹介します。

レポートを読む
LogicMonitorについて

当社のオブザーバビリティプラットフォームは、CIOがイノベーションを加速するために必要なインサイトと自動化機能を積極的に提供します。

リーダーシップ

可観測性と AI の未来を築くリーダーたちに会いましょう。

お客さま

LogicMonitor を使用して IT チームがどのように勝利を収めたかの証拠をご覧ください。

Careers

求人情報を検索し、当社の従業員特典についてご確認ください。

ニュースルーム

最新の掲載情報、プレスリリース、イベント情報をチェックしてください。

文化

NEW

革新と成長を基盤とした、協調的で価値観を重視する企業文化に参加しませんか。

セキュリティ

ハイブリッドな可観測性と AI 時代に特化したセキュリティ。

連絡先と所在地

当社の専門家と連携して、AI を活用した可観測性ソリューションを検討してください。

サスティナビリティ

環境とそこに住む人々に対する私たちの取り組み。

Elevate 2026開催まであとわずか。シカゴ、ロンドン、シドニーのいずれかでお会いしましょう。

Register here
無料トライアル

Platform

プラットフォーム詳細

監視、情報収集、そして行動のための、単一のプラットフォーム、単一のシステム。

エージェントAIOps

インフラストラクチャの可観測性

雲の可観測性

インターネットパフォーマンス監視

デジタル エクスペリエンスのモニタリング

ログ管理

3,000以上の統合

WebPageTest Webパフォーマンス

実際のデバイスと世界各地で、ウェブサイトの速度、コアウェブバイタル、およびパフォーマンスをテスト、比較、最適化します。

ソリューション

ソリューションを見る

予測分析、インテリジェントな自動化、およびフルスタックの可観測性を活用して、最新のハイブリッド環境を積極的に管理します。

事業成果別

業務別

業界別

Professional Services

LogicMonitor を選ぶ理由

一流のITチームが、ハイブリッドな可観測性を統合し、ツールの乱立を解消するために当社を信頼する理由をご覧ください。

価格

資料

リソースを見る

ITプロフェッショナル向けのリソースライブラリをご覧ください。専門家によるガイド、戦略、そしてよりスマートなAI駆動型オペレーションのための洞察が満載です。

資料

今後のイベント

プラットフォームヘルプ

NEW

2026年 自律型ITの年

業界を自律型ITへと移行させるトレンド、ベンチマーク、戦略についてご紹介します。

会社

LogicMonitorについて

当社のオブザーバビリティプラットフォームは、CIOがイノベーションを加速するために必要なインサイトと自動化機能を積極的に提供します。

リーダーシップ

可観測性と AI の未来を築くリーダーたちに会いましょう。

Careers

求人情報を検索し、当社の従業員特典についてご確認ください。

文化

NEW

革新と成長を基盤とした、協調的で価値観を重視する企業文化に参加しませんか。

連絡先と所在地

当社の専門家と連携して、AI を活用した可観測性ソリューションを検討してください。

お客さま

LogicMonitor を使用して IT チームがどのように勝利を収めたかの証拠をご覧ください。

ニュースルーム

最新の掲載情報、プレスリリース、イベント情報をチェックしてください。

セキュリティ

ハイブリッドな可観測性と AI 時代に特化したセキュリティ。

サスティナビリティ

環境とそこに住む人々に対する私たちの取り組み。

Partners

ドキュメント

LMアカデミー

LMコミュニティ

エージェントAIOps

エージェントAIOpsの概要

環境全体にわたる問題を自律的に検知、診断、解決します。

エドウィンAIをご紹介します

断片化された異分野間のイベントノイズを、説明可能で、指針となる行動へと変換する。

AIエージェント

インシデント発生から発生する事象のライフサイクル全体にわたる調査に対応するため、専門的なAIエージェントを導入する。

イベントインテリジェンス

生のアラート嵐を圧縮し、高精度で優先順位付けされた洞察へと変換します。

AIオートメーション

自動化プレイブック全体にわたって、統制されたクローズドループ型の修復処理を実行します。

IT運用コンテキストグラフ

NEW

トポロジー、テレメトリ、および変更点を統合し、AI対応のコンテキストレイヤーを作成します。

MCP

NEW

AIツール統合のための、追跡可能で安全なガバナンス境界を確立する。

インフラストラクチャの可観測性

インフラストラクチャの可観測性の概要

ハイブリッド機器群全体を完全に可視化することで、ツールの乱立を解消します。

ネットワーク監視

詳細なネットワーク経路とデバイスの可視性を活用することで、無実の証明までの時間を短縮します。

サーバー監視

環境全体にわたって、サーバーの状態、OSの指標、およびリソースの使用状況を追跡します。

リモート監視

分散エンドポイント、ブランチネットワーク、および遠隔施設の健全性を監視します。

VM監視

ハイパーバイザーのパフォーマンスを最大化し、コンピューティング能力計画を効率化する。

SD-WAN モニタリング

リアルタイムのエッジ可視化により、複数拠点のクラウドネットワークの接続性を維持します。

データベース監視

データベースクエリのボトルネックを特定し、ビジネスアプリケーションの高速性を維持する。

構成監視

デバイス構成のずれを追跡することで、変更失敗率を最小限に抑えます。

ストレージの監視

SAN/NASアレイ、IOPSボトルネック、ストレージ容量の傾向を追跡します。

雲の可観測性

クラウド可観測性の概要

マルチクラウド環境とハイブリッド環境を単一の操作画面に統合。

コンテナ監視

Kubernetesと一時的なマイクロサービスのための、自動化されたリアルタイムの可視化。

AWSモニタリング

AWSのサービス、スケーリング、コストをオンプレミスのデータと並行して追跡します。

Googleクラウドモニタリング

GCPネイティブのインフラストラクチャ、コンピューティング、およびサーバーレスリソースを監視します。

Azureモニタリング

Azure環境、ゲートウェイ、ワークロードに関する包括的な可視性。

AIモニタリング

LLMインフラストラクチャ、GPU使用率、およびAIアプリケーションスタックの状態を追跡します。

Oracle Cloudモニタリング

OCIネイティブコンピューティング、エンタープライズデータベース、クラウドストレージを追跡します。

SaaSモニタリング

重要なSaaSアプリケーションの可用性と従業員の生産性を検証する。

クラウドコストの最適化

クラウド支出を最適化し、パフォーマンスを維持し、予算を管理する。

インターネットパフォーマンス監視

インターネットパフォーマンス監視の概要

ユーザーが依存するあらゆる場面において、フルスタック全体のパフォーマンスを把握する。

インターネットヘルス

NEW

インターネット障害の独立した検証には、グローバルな視点を活用する。

リアルユーザーモニタリング

NEW

実際の顧客体験とフロントエンドのパフォーマンスをリアルタイムで把握します。

総合モニタリング

NEW

ユーザーの取引やSaaSのワークフローをシミュレートすることで、問題を早期に発見できます。

エンドポイントの監視

NEW

デバイスやネットワークを横断したリモートワークにおける従業員のデジタル体験を診断する。

デジタル エクスペリエンスのモニタリング

デジタル エクスペリエンスのモニタリング

所有権や所在地に関わらず、すべての依存関係を表示します。

ウェブサイト監視

積極的な合成チェックと稼働状況追跡により、収益獲得プロセスを保護します。

CDNモニタリング

NEW

CDNプロバイダー全体におけるエッジパフォーマンスとレイテンシのばらつきを監査する。

API モニタリング

NEW

重要なアプリ統合におけるエンドポイントとサードパーティAPIの信頼性をテストする。

アプリケーションパフォーマンスの監視

コードの実行状況とトレースをインフラストラクチャの状態に直接接続します。

DNS 監視

NEW

グローバルネームサーバーの解決時間を追跡することで、問題解決までの時間を短縮できます。

DevOpsライフサイクルモニタリング

NEW

デプロイ時に依存関係を検証することで、リリース速度を維持します。

BGP監視

NEW

グローバルなルーティング変更と経路漏洩を追跡し、インターネット接続の安全性を確保する。

ログ

ログ管理の概要

ログデータを一元管理し、相互に関連付けることで、インシデントが深刻化する前に解決する。

ログ分析とインテリジェンス

コンテキストログデータとメトリクスを関連付けることで、根本原因分析を迅速化できます。

事業成果別

自律型IT

回復力を重視して構築された、予測型で自律的なITシステム。

オートメーション

安全でポリシーに準拠した修復ワークフローにより、反復的な運用上の負担を排除します。

近代化と変革

複雑な技術移行を加速させると同時に、企業の中核となる回復力を保護する。

クラウドの移行

移行期間中もワークロードのパフォーマンスを維持する。

ツールの統合

断片化された監視ツールを置き換えることで、ライセンスコストとデータサイロを削減します。

コスト最適化

クラウドの無駄な利用や活用されていないリソースを見つけることで、サービス提供にかかる総コストを削減しましょう。

オペレーション効率向上

アラートの集中発生やシフト交代時の摩擦を軽減することで、チームの能力を最大限に引き出します。

MTTR の削減

地形を考慮した推定原因を数分で明らかにすることで、作戦室での時間を短縮します。

ネットワーク接続性

NEW

外部のBGP、ISP、およびSaaSプロバイダーの接続境界を独自に監査する。

エッジ展開の最適化

NEW

SLOを監視し、プロバイダーを比較し、クラウドおよびエッジでの配信を検証する。

Web パフォーマンスの最適化

NEW

グローバルなフロントエンドのレイテンシ指標を追跡することで、デジタル決済のコンバージョン率を最大化します。

アプリケーションの復元力

NEW

取引の失敗や高額なダウンタイムからビジネスサービスを保護します。

従業員の生産性

NEW

生産性を維持するために、リモートのハードウェアおよびネットワークの問題をトラブルシューティングします。

業務別

最高情報責任者

企業の回復力を最大限に高め、AIへの投資を測定可能なビジネスROIに結びつける。

AI Ops

ドメイン横断的なイベントノイズを圧縮し、説明可能で自動化された運用上の活用機会へと変換する。

DevOps

エンジニアリングロードマップを煩雑な作業から守ることで、リリースを迅速化します。

ITOps

インシデント対応を標準化することで、アラート疲労や時間外勤務を軽減する。

クラウド オペレーション

マルチクラウド環境における可視性を統合することで、コストを最適化し、ハイブリッド環境の影響範囲を追跡します。

業界別

健康

臨床ワークフロー全体を通して、継続的なケアと電子カルテの利用可能性を確保する。

公共部門

市民向けサービスにおける業務継続性と監査対応体制を確保する。

MSP

マルチテナント対応のAI支援型トリアージを活用して、サービスマージンを保護し、運用規模を拡大します。

小売&Eコマース

ピーク時の小売キャンペーン、POSシステムの稼働率、およびデジタル顧客体験を保護します。

テクノロジー

SLAに基づいた可視性によって、顧客の信頼と開発スピードを守ります。

ホスピタリティー

スムーズな顧客体験を提供し、予約システムを常にオンライン状態に保ちます。

教育支援

学生ポータル、学習プラットフォーム、キャンパスネットワークを常時稼働状態に保つ。

製造業

ITシステム、OT関連システム、エッジシステムを統合することで、生産停止時間を防止します。

金融

安全な取引の信頼性を確保し、厳格な運用回復力に関するコンプライアンス要件を満たす。

資料

Blog

可観測性と AI に関するあらゆることについての専門家からの洞察とアドバイス。

ケーススタディ

LogicMonitor プラットフォームについての実際のユーザーの意見をご覧ください。

ウェビナー

ライブ学習とオンデマンド学習がすべて 1 か所に集まります。

ITガイド

ITチームにとって最も重要なトピックについて、専門家による解説から学びましょう。

比較方法

当社のプラットフォームが他のソリューションと比べてどのような優位性を持っているかをご覧ください。

今後のイベント

会議

剣の日

2026 年 9 月 17 日

ウェビナー

インシデント管理はもはや従来のやり方では対応しきれない

2026 年 9 月 23 日

すべてのイベントを表示

イノベーションに焦点を当てたカンファレンス、技術講演会、ウェビナー、その他のイベントにぜひご参加ください。

プラットフォームヘルプ

サポートドキュメント

製品ドキュメント、リリース ノート、サポート リソースにアクセスします。

LMコミュニティ

コミュニティに参加して、仲間から学び、質問し、専門家とつながりましょう。

顧客教育

リソースやライブトレーニングを通じて、当社のプラットフォームについて詳しく学んでください。

ロジックモニターブログ

LogicMonitorとAnsibleを使用してモニタリングを調整する

2.2 月に、LogicMonitor コミュニティ Ansible モジュールのリリースを発表しました。 本日、Ansible バージョン XNUMX の最近のリリースにより、LogicMonitor モジュールが Ansible のすべての公式ディストリビューションに含まれることを発表できることを誇りに思います。 このブログでは、このモジュールを使用するためのいくつかの使用例と例を紹介します。

16〜24分
2016 年 11 月 17 日

記事上で

ニュースレター

最新情報のメール配信を登録

最新のブログ、ホワイトペーパー、電子ガイドなどを直接受信ボックスにお届けします。

シェア

screen-shot-2016-11-17-at-10-53-37-am
2.2月にLogicMonitorコミュニティAnsibleモジュールのリリースを発表しました。本日、AnsibleバージョンXNUMXの最新リリースを発表できることを誇りに思います。、LogicMonitorモジュールはAnsibleのすべての公式ディストリビューションに含まれます! 祝福し、全員のスピードを上げるために、このブログでは、モジュールを使用するためのいくつかの使用例と例を共有します。

適用例

環境はそれぞれ異なるため、これらのプレイブックを直接コピーして貼り付けることはできませんが、LogicMonitorモジュールのさまざまな使用方法やさまざまな構文オプションの優れた例を提供します。

始める前に、これらのユースケースで使用するインベントリの例と、環境設定に関する情報を少し紹介します。 サンプルインベントリには、プレイブックで使用されているいくつかのモックグループと変数が含まれているだけです。モジュールを使用するために既存のインベントリを更新する必要はありません。 例の環境のセットアップは、LogicMonitor資格情報をモジュールに渡すための迅速で簡単な方法で構成されています。 独自の内部ベスト プラクティスを引き続き使用して処理してください 資格情報と Ansible.

最後に、各ユースケースの概要とそこに含まれる貴重な情報の要約を提供しますが、本質的な技術的な詳細と説明は、プレイブック自体にコメントとして含まれています。

棚卸

[linux_hosts:children]
collector_hosts
application_hosts

[collector_hosts]
collector01.logicmonitor.com
collector02.logicmonitor.com

[application_hosts:children]
application_foo_hosts
application_bar_hosts

[application_foo_hosts]
foo01.app.logicmonitor.com lm_display_name=foo1
foo02.app.logicmonitor.com lm_display_name=foo2
foo03.app.logicmonitor.com lm_display_name=foo3

[application_bar_hosts]
bar01.app.logicmonitor.com
bar02.app.logicmonitor.com
bar03.app.logicmonitor.com

環境設定

export LM_COMPANY="AnsibleTest"
export LM_USER="ansible"
export LM_PASSWORD="mypassword"


ユースケース1:監視を使用したアプリケーションスタックのプロビジョニング

このユースケースは、Ansibleを使用してアプリケーションスタックをプロビジョニングし、新しくプロビジョニングされたホストをLogicMonitorに追加する方法を示しています。 このユースケースは、既存の環境またはアプリケーションスタックに新しいホストを追加する場合にも適用できます。

クールなポイントと例:

‌•LogicMonitorコレクターのインストール
‌•LogicMonitorモニタリングへのホストの追加
‌•ボーナス:追加時にデバイスグループとデバイスプロパティを設定する
‌•LogicMonitorデバイスグループの作成
‌•LogicMonitorによってすでに監視されているデバイスを更新する

脚本
# This playbook provides an example use case for provisioning an application
# stack and orchestrating these hosts for monitoring within LogicMonitor. This
# includes provisioning LogicMonitor collectors, application-specific device
# groups, and monitoring application servers.
#
# NOTE: We're relying on shell environment variables for passing LogicMonitor
# credentials into the logicmonitor module. There are a variety of ways to
# achieve this goal, but for the purposes of this playbook, we're exporting the
# variables: LM_COMPANY, LM_USER, and LM_PASSWORD.
#
# Further documentation can be found here:
#   https://docs.ansible.com/ansible/logicmonitor_module.html

---
# Do some boilerplate, non-LogicMonitor orchestration tasks here. This task or
# tasks will obviously be specific to your own environment
- name: Provision hosts
  hosts: linux_hosts
  become: yes
  tasks:
    - name: Install telnet just for fun
      package:
        name=telnet
        state=present

# Install LogicMonitor collectors on designated hosts here.
# We need a collector before adding our provisioned hosts to monitoring
- name: Provision LogicMonitor Collectors
  hosts: collector_hosts
  become: yes
  tasks:
    - name: Install LogicMonitor collectors
      logicmonitor:
        target=collector
        action=add
        company="{{ lookup('env', 'LM_COMPANY') }}"
        user="{{ lookup('env', 'LM_USER') }}"
        password="{{ lookup('env', 'LM_PASSWORD') }}"

# Add all hosts into basic monitoring here. This is the baseline monitoring
#  config for all devices. We'll do app-specific customizations later.
- name: Add hosts to LogicMonitor monitoring
  hosts: linux_hosts
  become: no
  tasks:
    - name: Add all hosts into monitoring
      become: no
    # All tasks except for target=collector should use local_action
      local_action: >
        logicmonitor target=host
        action=add
        collector="collector01.logicmonitor.com"
        company="{{ lookup('env', 'LM_COMPANY') }}"
        user="{{ lookup('env', 'LM_USER') }}"
        password="{{ lookup('env', 'LM_PASSWORD') }}"
        groups="/servers/production,/test-datacenter"
        properties="{'snmp.community':'commstring','dc':'test', 'type':'prod'}"

# Create LogicMonitor device groups for different applications
#
# Note that there's some intelligence here when assigning the LogicMonitor device
# display name. In the inventory, I've assigned a host level variable
# lm_display_name for some hosts but not others. For the displayname parameter
# below, we're using a Jinja2 filter to set the displayname parameter using either
# the host variable lm_display_name or, if that variable isn't set, to default to
# using device's hostname.
#
# Also note that, since there's only one device group in LogicMonitor per app type,
# we don't need to run this task for every host, so we've set run_once to true.
- name: Create LogicMonitor device groups for applications
  hosts: collector_hosts
  become: yes
  vars:
    app_names: ['foo', 'bar']
  tasks:
    - name: Create a host group
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
          logicmonitor target=hostgroup
          action=add
          displayname="{{ lm_display_name | default(inventory_hostname) }}"
          fullpath='/applications/{{ item }}'
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"
          properties="{'app.name':'{{ item }}'}"
      with_items: "{{ app_names }}"
      run_once: true

# Add 'foo' application servers to the 'foo' device group in LogicMonitor.
# This will be useful for more convenient management of these servers in the
#  portal and allow for device group properties configured about to be inherited.
- name: Add foo application hosts to foo device group
  hosts: application_foo_hosts
  become: no
  tasks:
    - name: Add foo application hosts to foo device group
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
        logicmonitor target=host
          action=update
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"
          collector="collector01.logicmonitor.com"
          groups="/applications/foo"

# Add 'bar' application servers to the 'bar' device group in LogicMonitor.
# This will be useful for more convenient management of these servers in the
#  portal and allow for device group properties configured about to be inherited.
#
# Note that we're also updating the collector field, thereby moving these hosts
# to a new collector. This isn't strictly necessary, but shows an example of
# this process, and for our hypothetical situation, allows us to isolate each
# application on its own collector.
- name: Add bar application hosts to bar device group
  hosts: application_bar_hosts
  become: no
  tasks:
    - name: Add bar application hosts to bar device group
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
        logicmonitor target=host
          action=update
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"
          collector="collector02.logicmonitor.com"
          groups="/applications/bar"

プレイブックの実行
ansible-playbook -i Inventory use_case_1.yml
結果
$ ansible-playbook -i inventory use_case_1.yml

PLAY [Provision hosts] *********************************************************

TASK [setup] *******************************************************************
ok: [collector01.logicmonitor.com]
ok: [bar01.app]
ok: [bar02.app.logicmonitor.com]
ok: [collector02.logicmonitor.com]
ok: [foo01.app.logicmonitor.com]
ok: [foo02.app.logicmonitor.com]

TASK [Install telnet just for fun] *********************************************
changed: [collector01.logicmonitor.com]
changed: [bar01.app]
changed: [bar02.app.logicmonitor.com]
changed: [foo02.app.logicmonitor.com]
changed: [foo01.app.logicmonitor.com]
changed: [collector02.logicmonitor.com]

PLAY [Provision LogicMonitor Collectors] ***************************************

TASK [setup] *******************************************************************
ok: [collector01.logicmonitor.com]
ok: [collector02.logicmonitor.com]

TASK [Install LogicMonitor collectors] *****************************************
changed: [collector01.logicmonitor.com]
changed: [collector02.logicmonitor.com]

PLAY [Add hosts to LogicMonitor monitoring] ************************************

TASK [setup] *******************************************************************
ok: [foo01.app.logicmonitor.com]
ok: [collector01.logicmonitor.com]
ok: [bar02.app.logicmonitor.com]
ok: [collector02.logicmonitor.com]
ok: [bar01.app]
ok: [foo02.app.logicmonitor.com]

TASK [Add all hosts into monitoring] *******************************************
changed: [foo01.app.logicmonitor.com -> localhost]
changed: [foo02.app.logicmonitor.com -> localhost]
changed: [collector02.logicmonitor.com -> localhost]
changed: [collector01.logicmonitor.com -> localhost]
changed: [bar02.app.logicmonitor.com -> localhost]
changed: [bar01.app -> localhost]

PLAY [Create LogicMonitor device groups for applications] **********************

TASK [setup] *******************************************************************
ok: [collector01.logicmonitor.com]
ok: [collector02.logicmonitor.com]

TASK [Create a host group] *****************************************************
changed: [collector01.logicmonitor.com -> localhost] => (item=foo)
changed: [collector01.logicmonitor.com -> localhost] => (item=bar)

PLAY [Add foo application hosts to foo device group] ***************************

TASK [setup] *******************************************************************
ok: [foo01.app.logicmonitor.com]
ok: [foo02.app.logicmonitor.com]

TASK [Add foo application hosts to foo device group] ***************************
changed: [foo01.app.logicmonitor.com -> localhost]
changed: [foo02.app.logicmonitor.com -> localhost]

PLAY [Add bar application hosts to bar device group] ***************************

TASK [setup] *******************************************************************
ok: [bar01.app]
ok: [bar02.app.logicmonitor.com]

TASK [Add bar application hosts to bar device group] ***************************
changed: [bar02.app.logicmonitor.com -> localhost]
changed: [bar01.app -> localhost]

PLAY RECAP *********************************************************************
bar01.app.logicmonitor.com     : ok=6    changed=3    unreachable=0    failed=0
collector01.logicmonitor.com   : ok=8    changed=4    unreachable=0    failed=0
bar02.app.logicmonitor.com     : ok=6    changed=3    unreachable=0    failed=0
collector02.logicmonitor.com   : ok=8    changed=4    unreachable=0    failed=0
foo02.app.logicmonitor.com     : ok=6    changed=3    unreachable=0    failed=0
foo01.app.logicmonitor.com     : ok=6    changed=3    unreachable=0    failed=0


ユースケース2:アプリケーションのデプロイ

このユースケースは、既存のアプリケーションデプロイメントプレイブックでLogicMonitorモジュールを使用して スケジュールダウンタイム(SDT) 影響を受けるアプリケーションとデバイスグループ。 LogicMonitorでこのメソッドを使用して、アプリケーションの更新をロールアウトするときの誤ったアラートを抑制します。

クールなポイントと例:

‌•SDTLogicMonitorデータソース
‌•SDTLogicMonitorデバイスグループ

脚本
# This playbook provides an example use case for using the LogicMonitor module
# to schedule downtime (SDT) for monitored hosts during an application deploy in
# order to eliminate superfluous LogicMonitor alerts.
#
# There are two examples showing different options for SDTing an application.
# The first example will apply an SDT to an application-specific datasource ID.
# Currently this does require a bit of initial legwork to retrieve the ID from
# the LogicMonitor portal. A benefit of using this approach rather than SDTing
# the entire host is that you will still be alerted to non-deploy related alerts
# during the SDT duration.
#
# The second example demonstrates setting devices' SDT at the LogicMonitor
# device group level. This is more of a hypothetical example and not something
# we'd necessarily recommend as a best practice.
#
# For example, SDTing at the device level using the
# Ansible inventory allows for finer grained control of SDT during deploys,
# while SDTing at the device group level potentially provides broader SDT
# coverage, especially in situations where deploying a particular application
# may trigger alerts in other applications that aren't actually relevant to the
# Ansible inventory.
#
# For the purposes of this example, our application deploy process will simply
# consist of downloading a war file and then copying it to an application
# directory. This playbook can be obviously be rearranged to suit your needs,
# but we recommend sequencing your SDT task as close to the first production-
# impacting task as possible. For example, there's no need to SDT your hosts
# while waiting for a deploy artifact to download; this increases the changes of
# missing legitimate alerts that aren't related to the deployment.
#
# NOTE: We're relying on shell environment variables for passing LogicMonitor
# credentials into the logicmonitor module. There are a variety of ways to
# achieve this goal, but for the purposes of this playbook, we're exporting the
# variables: LM_COMPANY, LM_USER, and LM_PASSWORD.
#
# Further documentation can be found here:
#   https://docs.ansible.com/ansible/logicmonitor_module.html

---
# This playbook will demonstrate an application deployment utilizing a
# LogicMonitor SDT at the device level.
- name: Deploy app foo
  hosts: application_foo_hosts
  become: yes
  tasks:
    # - name: Download deploy artifact from release artifact server to temp location
    #   get_url:
    #     url: https://releases.logicmonitor.com/applications/foo/foo.war
    #     dest: /tmp/foo.war
    - name: Download deploy artifact from release artifact server to temp location
      command: touch /tmp/foo.war

    # Schedule downtime for the foo application datasource, lasting 5 minutes,
    # starting now.
    # We want to sequence this task as close to the first production-impacting
    # task as possible.
    - name: Schedule Downtime for application datasource
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
          logicmonitor target=datasource
          action=sdt
          id='123'
          duration=5
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"

    # For the sake of simplicity, we're assuming that foo is a Tomcat application
    # and that Tomcat is configured to automatically explode and start new wars
    - name: Deploy application by moving to webapps dir
      copy:
        remote_src=True
        src=/tmp/foo.war
        dest=/usr/local/bar/webapps/foo.war

    - name: Remove temp war
      file:
        path=/tmp/foo.war
        state=absent

    # We always like to use Ansible to verify that our application deploys were
    # successful. For the sake of this example, since every application is
    # different, we're going to cheat a bit and pretend that we already have a
    # functional verification script installed alongside the application. There
    # are a variety of different ways to implement this functionality natively
    # within Ansible, but that's a topic for a whole different blog.
    - name: Verify application was deployed successfully
      shell: "/usr/local/foo/bin/verify.sh status"
      register: result

    - debug: var=result.stdout_lines

# This playbook will demonstrate an application deployment utilizing a
# LogicMonitor SDT at the group level
- name: Deploy app bar
  hosts: application_bar_hosts
  become: yes
  tasks:
    # - name: Download deploy artifact from release artifact server to temp location
    #   get_url:
    #     url: https://releases.logicmonitor.com/applications/bar/bar.war
    #     dest: /tmp/bar.war
    - name: Download deploy artifact from release artifact server to temp location
      command: touch /tmp/bar.war

    # Schedule downtime for the bar device group, lasting 5 minutes, starting now.
    # We want to sequence this task as close to the first production-impacting
    # task as possible.
    #
    # Note that we're using the same device group that we created in the first
    # use case.
    - name: Schedule Downtime for application device group
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
          logicmonitor target=hostgroup
          action=sdt
          fullpath="/applications/bar"
          duration=5
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"

    # For the sake of simplicity, we're assuming that bar is a Tomcat application
    # and that Tomcat is configured to automatically explode and start new wars
    - name: Deploy application by moving to webapps dir
      copy:
        remote_src=True
        src=/tmp/bar.war
        dest=/usr/local/bar/webapps/bar.war

    - name: Remove temp war
      file:
        path=/tmp/bar.war
          state=absent

    # We always like to use Ansible to verify that our application deploys were
    # successful. For the sake of this example, since every application is
    # different, we're going to cheat a bit and pretend that we already has a
    # functional verification script installed alongside the application. There
    # are a variety of different ways to implement this functionality natively
    # within Ansible, but that's a topic for a whole different blog.
    - name: Verify application was deployed successfully
      shell: "/usr/local/bar/bin/verify.sh status"
      register: result

    - debug: var=result.stdout_lines
プレイブックの実行
ansible-playbook -i Inventory use_case_2.yml
結果
$ ansible-playbook -i inventory use_case_2.yml

PLAY [Deploy app foo] **********************************************************

TASK [setup] *******************************************************************
ok: [foo01.app.logicmonitor.com.app]
ok: [foo02.app.logicmonitor.com.app]

TASK [Download deploy artifact from release artifact server to temp location] **
changed: [foo01.app.logicmonitor.com.app]
changed: [foo02.app.logicmonitor.com.app]

TASK [Schedule Downtime for devices] *******************************************
changed: [foo02.app.logicmonitor.com.app -> localhost]
changed: [foo01.app.logicmonitor.com.app -> localhost]

TASK [Deploy application by moving to webapps dir] *****************************
changed: [foo01.app.logicmonitor.com.app]
changed: [foo02.app.logicmonitor.com.app]

TASK [Remove temp war] *********************************************************
changed: [foo02.app.logicmonitor.com.app]
changed: [foo01.app.logicmonitor.com.app]

TASK [Verify application was deployed successfully] ****************************
changed: [foo01.app.logicmonitor.com.app]
changed: [foo02.app.logicmonitor.com.app]

TASK [debug] *******************************************************************
ok: [foo01.app.logicmonitor.com.app] => {
    "result.stdout_lines": [
        "Success! App is serving."
    ]
}
ok: [foo02.app.logicmonitor.com.app] => {
    "result.stdout_lines": [
        "Success! App is serving."
    ]
}
PLAY [Deploy app bar] **********************************************************

TASK [setup] *******************************************************************
ok: [bar01.app.logicmonitor.com]
ok: [bar02.app.logicmonitor.com]

TASK [Download deploy artifact from release artifact server to temp location] **
changed: [bar02.app.logicmonitor.com]
changed: [bar01.app.logicmonitor.com]

TASK [Schedule Downtime for application device group] **************************
changed: [bar01.app.logicmonitor.com -> localhost]
changed: [bar02.app.logicmonitor.com -> localhost]

TASK [Deploy application by moving to webapps dir] *****************************
changed: [bar02.app.logicmonitor.com]
changed: [bar01.app.logicmonitor.com]

TASK [Remove temp war] *********************************************************
changed: [bar01.app.logicmonitor.com]
changed: [bar02.app.logicmonitor.com]

TASK [Verify application was deployed successfully] ****************************
changed: [bar02.app.logicmonitor.com]
changed: [bar01.app.logicmonitor.com]

TASK [debug] *******************************************************************
ok: [bar01.app.logicmonitor.com] => {
    "result.stdout_lines": [
        "Success! App is serving."
    ]
}
ok: [bar02.app.logicmonitor.com] => {
    "result.stdout_lines": [
        "Success! App is serving."
    ]
}

PLAY RECAP *********************************************************************
bar01.app.logicmonitor.com      : ok=7    changed=5    unreachable=0    failed=0
foo02.app.logicmonitor.com.app  : ok=7    changed=5    unreachable=0    failed=0
foo01.app.logicmonitor.com.app  : ok=7    changed=5    unreachable=0    failed=0
bar02.app.logicmonitor.com      : ok=7    changed=5    unreachable=0    failed=0

ユースケース3:ソフトウェアの更新

このユースケースは、 スケジューリングダウンタイム(SDT) システムソフトウェア更新ワークフローの一部としてのLogicMonitorの場合。 このユースケースは、定期的なメンテナンスの一環としてLogicMonitorアラートを誘発する可能性が高いほとんどの状況で役立ちます。

クールなポイントと例:

‌•SDTLogicMonitorデバイス
使用する ジンジャー2 'host'アクションを実行するときにコレクターを指定しないようにするためのフィルター、Ansible変数、およびdisplaynameパラメーター
‌•Ansibleの実行を中断せずに、Ansibleプレイの一部としてホストを再起動する

脚本
# This playbook provides an example use case for using the LogicMonitor module
# to schedule downtime (SDT) for monitored hosts and collectors during system
# updates and perform a reboot.
#
# NOTE: We're relying on shell environment variables for passing LogicMonitor
# credentials into the logicmonitor module. There are a variety of ways to
# achieve this goal, but for the purposes of this playbook, we're exporting the
# variables: LM_COMPANY, LM_USER, and LM_PASSWORD.
#
# Further documentation can be found here:
#   https://docs.ansible.com/ansible/logicmonitor_module.html

---
- name: Perform system updates on application hosts and reboot
  hosts: application_hosts
  become: yes
  tasks:
    # For the sake of example, we're just going to update the telnet package we
    # installed in the first use case.
    - name: Update all packages on the system
      package:
        name=telnet
        state=latest

    # Schedule downtime for each host, lasting 15 minutes, starting now
    #
    # Note that we could also SDT at the device group level if we wanted to, but
    # for this use case, it's going to be easier and more reliable to apply this
    # at the device level. This ensures that all of the hosts being updated get
    # SDT and also ensures we don't unnecessarily SDT other hosts or mistakenly
    # miss SDTing an affected host.
    #
    # Also note that, since we're SDTing a wide range of hosts in our example
    # infrastructure, it becomes cumbersome to specify devices' collectors.
    # Instead, we'll specify the displayname, which allows the module to
    # dynamically lookup the correct collector for each host. As in the first
    # use case example, we're using a Jinja2 filter to add some intelligence to
    # the displayname parameter allowing us to use either the inventory variable
    # lm_display_name or default to the device's hostname.
    - name: Schedule Downtime for devices
      # All tasks except for target=collector should use local_action
      become: no
      local_action: >
          logicmonitor
          target=host
          action=sdt
          duration=15
          displayname="{{ lm_display_name | default(inventory_hostname) }}"
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"

    # Here we're going to use a trick to reboot the systems without interrupting
    # our Ansible execution. To accomplish this, we'll asynchronously reboot the
    # hosts and then wait for them to become accessible again. We don't gain a
    # whole lot using this method in this particular example, but it's extremely
    # useful when performing additional tasks after the reboot.
    # Source: https://support.ansible.com/hc/en-us/articles/201958037-Reboot-a-server-and-wait-for-it-to-come-back
    - name: Reboot
      shell: sleep 2 && /sbin/shutdown -r now
      ignore_errors: true

    - name: Wait for server to reboot
      become: no
      local_action: >
        wait_for host=host={{ inventory_hostname }}
        port=22
        state=started
        delay=30
        timeout=300

# This playbook is very similar to the one above but handles the scenario of
# updating and rebooting hosts that have collectors on them. In order to prevent
# 'Collector Down' alerts, we'll also need to SDT the collectors.
#
# Note that we've already completed updated our other hosts before touching the
# collector hosts. This ensures that any issues encountered during the previous
# playbook are adequately detected by LogicMonitor monitoring before we begin
# touching our collectors.
- name: Perform system updates on collector hosts and reboot
  hosts: collector_hosts
  become: yes
  tasks:
    # For the sake of example, we're just going to naively update all of installed
    # packages. That's totally safe right and couldn't possibly have adverse effects,
    # could it? ;)
    - name: Update all packages on the system
      package:
        name=*
        state=latest

    # Schedule downtime for each host, lasting 15 minutes, starting now
    #
    # Note that we could also SDT at the device group level if we wanted to, but
    # for this use case, it's going to be easier and more reliable to apply this
    # at the device level. This ensures that all of the hosts being updated get
    # SDT and also ensures we don't unnecessarily SDT other hosts or mistakenly
    # miss SDTing an affected host.
    #
    # Also note that, since we're SDTing a wide range of hosts in our example
    # infrastructure, it becomes cumbersome to specify devices' collectors.
    # Instead, we'll specify the displayname, which allows the module to
    # dynamically lookup the correct collector for each host. As in the first
    # use case example, we're using a Jinja2 filter to add some intelligence to
    # the displayname parameter allowing us to use either the inventory variable
    # lm_display_name or default to the device's hostname.
    - name: Schedule Downtime for devices
      # All tasks except for target=collector should use local_action
      become: no
      local_action: >
          logicmonitor target=host
          action=sdt
          duration=15
          displayname="{{ lm_display_name | default(inventory_hostname) }}"
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"

    # In order to prevent spurious 'Collector Down' alerts, we're also going to
    # SDT the collectors on these hosts.
    - name: Schedule Downtime for collectors
      logicmonitor:
        target=collector
        action=sdt
        duration=15
        company="{{ lookup('env', 'LM_COMPANY') }}"
        user="{{ lookup('env', 'LM_USER') }}"
        password="{{ lookup('env', 'LM_PASSWORD') }}"

    # Same as above, we're now going to reboot the hosts and wait for them to
    # come back up.
    - name: Reboot
      shell: sleep 2 && /sbin/shutdown -r now
      async: 1
      poll: 0
      ignore_errors: true

    - name: Wait for server to reboot
      become: no
      local_action: >
        wait_for host={{ inventory_hostname }}
        state=started
        delay=30
        timeout=300
プレイブックの実行
ansible-playbook -i Inventory use_case_3.yml

結果
$ ansible-playbook -i inventory use_case_3.yml

PLAY [Perform system updates on application hosts and reboot] ******************

TASK [setup] *******************************************************************
ok: [bar01.app.logicmonitor.com]
ok: [foo01.app.logicmonitor.com]
ok: [foo02.app.logicmonitor.com]
ok: [bar02.app.logicmonitor.com]

TASK [Update all packages on the system] ***************************************
changed: [foo01.app.logicmonitor.com]
changed: [bar02.app.logicmonitor.com]
changed: [bar01.app.logicmonitor.com]
changed: [foo02.app.logicmonitor.com]

TASK [Schedule Downtime for devices] *******************************************
changed: [bar01.app.logicmonitor.com -> localhost]
changed: [foo01.app.logicmonitor.com -> localhost]
changed: [foo02.app.logicmonitor.com -> localhost]
changed: [bar02.app.logicmonitor.com -> localhost]

TASK [Reboot] ******************************************************************
fatal: [foo01.app.logicmonitor.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "", "msg": "MODULE FAILURE"}
...ignoring
fatal: [foo02.app.logicmonitor.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "", "msg": "MODULE FAILURE"}
...ignoring
fatal: [bar01.app.logicmonitor.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "", "msg": "MODULE FAILURE"}
...ignoring
fatal: [bar02.app.logicmonitor.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "", "msg": "MODULE FAILURE"}
...ignoring

TASK [Wait for server to reboot] ***********************************************
ok: [bar01.app.logicmonitor.com]
ok: [bar02.app.logicmonitor.com]
ok: [foo02.app.logicmonitor.com]
ok: [foo01.app.logicmonitor.com]

PLAY RECAP *********************************************************************
bar01.app.logicmonitor.com      : ok=5    changed=2    unreachable=0    failed=0
foo01.app.logicmonitor.com      : ok=5    changed=2    unreachable=0    failed=0
foo02.app.logicmonitor.com      : ok=5    changed=2    unreachable=0    failed=0
bar02.app.logicmonitor.com      : ok=5    changed=2    unreachable=0    failed=0

ユースケース4:デバイスの廃止

このユースケースは、アプリケーションホストを廃止し、それらのデバイスと対応するデバイスグループをLogicMonitorから削除する例を示しています。

クールなポイントと例:
‌•SDTLogicMonitorデバイスグループ
‌•LogicMonitorからデバイスを削除します
‌•LogicMonitorからデバイスグループを削除します
‌•Ansibleの実行を中断せずに、Ansibleプレイの一部としてホストをシャットダウンする

脚本

# This playbook provides an example use case for decommissioning hosts and
# using the LogicMonitor Ansible module to remove them from monitoring. We'll
# pretend that we need no longer need the bar application in our infrastructure
# and decommission all of those servers.
#
# NOTE: We're relying on shell environment variables for passing LogicMonitor
# credentials into the logicmonitor module. There are a variety of ways to
# achieve this goal, but for the purposes of this playbook, we're exporting the
# variables: LM_COMPANY, LM_USER, and LM_PASSWORD.
#
# Further documentation can be found here:
#   https://docs.ansible.com/ansible/logicmonitor_module.html

---
- name: Decommission all bar application hosts and remove from monitoring
  hosts: application_hosts
  become: yes
  tasks:
      # Schedule downtime for the bar device group, lasting 60 minutes,
      # starting now. Since we're decommissioning hosts, the exact length of the
      # SDT isn't critical, so an hour gives us a pretty big buffer with no
      # adverse consequences
    - name: Schedule Downtime for application device group
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
          logicmonitor target=hostgroup
          action=sdt
          fullpath="/applications/bar"
          duration=60
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"

    # Do some boilerplate, non-LogicMonitor orchestration tasks here. This task or
    # tasks will obviously be specific to your own environment. For this example,
    # we'll pretend that a simple halt is sufficient.
    #
    # Note that there's nothing strictly wrong with skipping the SDT and just
    # removing the devices from LogicMonitor before decommissioning. In this
    # example, by leaving the hosts in LogicMonitor until after decommissioning,
    # we can potentially detect hosts that are stranded in an unstable state.
    #
    # As in the previous use case, we're using a bit of Ansible magic to allow us
    # to shut down the host without stopping Ansible execution.
    - name: Decommission host
      shell: sleep 2 && /sbin/shutdown -h now
      async: 1
      poll: 0
      ignore_errors: true

    # Note that, since we're SDTing a wide range of hosts in our example
    # infrastructure, it becomes cumbersome to specify devices' collectors.
    # Instead, we'll specify the displayname, which allows the module to
    # dynamically lookup the correct collector for each host. As in the first
    # use case example, we're using a Jinja2 filter to add some intelligence to
    # the displayname parameter allowing us to use either the inventory variable
    # lm_display_name or default to the device's hostname.
    #
    # Also note that, since there's only one device group in LogicMonitor, we
    # don't need to run this task for every host, so we've set run_once to true.
    - name: Remove devices from LogicMonitor
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
          logicmonitor target=host
          action=remove
          displayname="{{ lm_display_name | default(inventory_hostname) }}"
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"

    - name: Remove bar application device group from LogicMonitor
      become: no
      # All tasks except for target=collector should use local_action
      local_action: >
          logicmonitor target=hostgroup
          action=remove
          fullpath="/applications/bar"
          company="{{ lookup('env', 'LM_COMPANY') }}"
          user="{{ lookup('env', 'LM_USER') }}"
          password="{{ lookup('env', 'LM_PASSWORD') }}"
      run_once: true
プレイブックの実行
ansible-playbook -i Inventory use_case_4.yml

結果
$ ansible-playbook -i inventory use_case_4.yml

PLAY [Decommission all bar application hosts and remove from monitoring] *******

TASK [setup] *******************************************************************
ok: [bar01.app.logicmonitor.com]
ok: [bar02.app.logicmonitor.com]

TASK [Schedule Downtime for application device group] **************************
changed: [bar02.app.logicmonitor.com -> localhost]
changed: [bar01.app.logicmonitor.com -> localhost]

TASK [Decommission host] *******************************************************
ok: [bar01.app.logicmonitor.com]
ok: [bar02.app.logicmonitor.com]

TASK [Remove devices from LogicMonitor] ****************************************
changed: [bar01.app.logicmonitor.com -> localhost]
changed: [bar02.app.logicmonitor.com -> localhost]

TASK [Remove bar application device group from LogicMonitor] *******************
changed: [bar02.app.logicmonitor.com -> localhost]
changed: [bar01.app.logicmonitor.com -> localhost]

PLAY RECAP *********************************************************************
bar01.app.logicmonitor.com      : ok=5    changed=3    unreachable=0    failed=0
bar02.app.logicmonitor.com      : ok=5    changed=3    unreachable=0    failed=0

結論

IT自動化のスケーリングと複雑な環境の管理は、監視をインフラストラクチャと運用に合わせることが重要であることを意味します。 LogicMonitorとAnsibleモジュールを使用すると、ユーザーは、使い慣れたAnsible Playbookを使用して、真実と操作のソース(包括的な監視を含む)をXNUMXつの一貫した反復可能なプロセスに統合できます。

© LogicMonitor 2026 | 無断複写・転載を禁じます。 | ここで言及されているすべての商標、商号、サービス マーク、およびロゴは、それぞれの会社に帰属します。

関連ブログ

可観測性ROI:実際の導入による真のコスト削減
Blog

可観測性ROI:実際の導入による真のコスト削減

可観測性を高めることで、アラートのノイズを減らし、インシデント対応を迅速化し、ダウンタイムを削減し、エンジニアが計画的な作業に費やす時間を増やすことができます。LogicMonitorの顧客は、これらのメリットを活用してコストを削減し、より適切なインフラストラクチャの意思決定を行っています。
2026 年 9 月 9 日
さらに詳しく
HTTPSは中間者攻撃への解決策となるのか?
Blog

HTTPSは中間者攻撃への解決策となるのか?

合成監視によって隠れたHTTPリダイレクト攻撃がどのように明らかになったか、そしてHTTPS、HSTS、配信経路の可視化がユーザーを傍受から守る理由をご覧ください。
2026 年 9 月 9 日
さらに詳しく
古いDNSグルーレコード:親レコードと権威レコードの不一致を診断する方法
Blog

古いDNSグルーレコード:親レコードと権威レコードの不一致を診断する方法

権威サーバーは正しいIPアドレスを返しているにもかかわらず、ユーザーが古いIPアドレスにアクセスしてしまうケースがあります。ここでは、古いグルーレコードを見つけて、親ゾーンのリファラルを修正する方法をご紹介します。
2026 年 9 月 9 日
さらに詳しく

製品

Platform

ITを

クラウドとマルチクラウド

ログ管理

エドウィン AI

エンタープライズ

デモ

価格

WebPageTestの料金プラン

ラムダモニタリング

IPMモニタリング

総合モニタリング

比較方法

データドッグ

ダイナトレース

ヴィルタナ

ソーラーワインド

PRTG

ManageEngineの

サイエンスロジック

SiteScope

ビッグパンダ

学校区概要

Careers

Our Partners

リーダーシップ

ニュースルーム

セキュリティ

AI ガバナンス

サスティナビリティ

規約とポリシー

ドキュメント

ドキュメントハブ

リリースノート

セキュリティ

サポートセンター 

資料

2026年の自律型IT

「ライブラリ」

LMアカデミー

Blog

ケーススタディ

顧客教育

つながり、

連絡先と所在地

チケットを送信

イベント

LMコミュニティ

Careers


製品

Platform

ITを

クラウドとマルチクラウド

ログ管理

エドウィン AI

エンタープライズ

デモ

価格

WebPageTestの料金プラン

ラムダモニタリング

IPMモニタリング

総合モニタリング


比較方法

データドッグ

ダイナトレース

ヴィルタナ

ゼノス

ソーラーワインド

PRTG

ManageEngineの

サイエンスロジック

SiteScope

ビッグパンダ


学校区概要

Careers

Our Partners

リーダーシップ

ニュースルーム

セキュリティ

AI ガバナンス

サスティナビリティ

規約とポリシー


ドキュメント

ドキュメントハブ

リリースノート

セキュリティ

サポートセンター 


資料

2026年の自律型IT

「ライブラリ」

LMアカデミー

Blog

ケーススタディ

顧客教育


つながり、

連絡先と所在地

チケットを送信

イベント

LMコミュニティ

Careers


プライバシーポリシー

利用規約

プリファレンスセンター

私の情報を販売しないでください

© 2026 ロジックモニター