Giter Club home page Giter Club logo

ansible-role-checkmkagent's Introduction

stand with Ukraine License: GPL v3 ansible-lint molecule test

ansible-role-checkmkagent

ansible role to install/configure checkmk agent on debian

role variables

defaults/main.yml

requirements

a checkmk server reachable from the machine running ansible

bonus

In the role we have included some (partialy debian specific) check plugins (check_mk_local_plugins):

  • check_apt-update-success : check if the last apt update process was successful and not too long ago
  • check_apt_updates_for_packages_on_hold : check if there are updates available for packages set on hold
  • check_reboot : check if a reboot is required after a apt update
  • check_keepalived : check the status of keepalive (global an per vrrp instance)
  • check_samba_repl: check samba DC replication status
  • check_fail2ban : check the status of fail2ban jails (using fail2ban-client)
  • check_zammad_health: check the zammad health (requires python3-requests)

example configuration

# hostname of the checkmk server
checkmk_hostname: "cmk.example.domain"
checkmk_proto: https
checkmk_path: "SITE/check_mk/agents"
# IP of the checkmk server
checkmk_ip: "192.168.0.10"
# we prefere good old xinetd
check_mk_agent_use_systemd: false
check_mk_agent_use_xinetd: true
# install and configure logwatch
check_mk_logwatch: true
# you can use dicts instead of lists (see issue #12)
check_mk_logwatch_syslog_patterns:
  all:
    - I softdog
    - I hispanic

ansible-role-checkmkagent's People

Contributors

zerwes avatar

Stargazers

 avatar

Watchers

 avatar

ansible-role-checkmkagent's Issues

molecule : check multiple checkmk versions

Use at least the current and the laste stable version.
Automatically bump the agent version if new releases are available.

diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml
index 4395cac..544643b 100644
--- a/molecule/default/molecule.yml
+++ b/molecule/default/molecule.yml
@@ -26,7 +26,7 @@ provisioner:
   inventory:
     host_vars:
       instance:
-        checkmk_agent_version: 2.0.0p25
+        checkmk_agent_version: 2.1.0p16
         checkmk_hostname: 127.0.0.1
         download_checkmk_agent_deb: false
         check_mk_logwatch_plugin:

as lists can not be merged in ansible, change list definitions to dict

... this would make deployment in complex setups easier, as we can define a minimal set of plugins etc. for all, and extend this optionally per host/group etc ...

check_mk_logwatch_syslog_patterns: []
checkmkagent_required_packages: []
check_mk_plugins: []
check_mk_local_plugins: []
check_mk_local_cfg: []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.