Setup CheckMK Monitoring using Ansible

This guide walks you through the setup of CheckMK monitoring for the RWS GIS Platform using Ansible, ensuring efficient monitoring configuration.

Projects: c2platform/rws/ansible-gis, c2platform.gis, c2platform.wincore

Overview

This tutorial explains how to use Vagrant and Ansible with the checkmk.general Ansible collection to deploy a CheckMK server on an LXD node running Ubuntu 22.04.1.

NodeOSProviderPurpose
gsd-checkmk-serverUbuntu 22.04.1 LTSLXDCheckMK Server

Prerequisites

  • Ensure your RWS Development Environment is set up on Ubuntu 22, as detailed here.
  • Ensure the proxy node gsd-rproxy1 is active for Windows node internet access:
    vagrant up gsd-rproxy1
    

Setup

Run vagrant up to create the CheckMK server. This setup should take approximately 5 minutes.

  1. Initiate the CheckMK server creation with Vagrant. The process takes about 5 minutes.

    vagrant up gsd-checkmk-server
    
  2. After deployment, modify the IP address for the gs site from the default 127.0.0.1 to 1.1.5.208:

    vagrant ssh gsd-checkmk-server
    omd config gs show APACHE_TCP_ADDR
    omd stop gs
    omd config gs set APACHE_TCP_ADDR 1.1.5.208
    omd update-apache-config gs
    omd start gs
    omd status gs
    

Verification

To verify the installation:

  1. Open the RWS FireFox profile and navigate to http://1.1.5.208:5000/gs  . Log in as cmkadmin with the password secret.
  2. Navigate to https://checkmk.c2platform.org/gs/  and again, log in as cmkadmin with the password secret.

Additional Information

For additional insights and guidance:



Last modified November 13, 2024: translate false C2-587 (af41e45)