Skip to content

zerwes/ansible-role-checkmkagent

Repository files navigation

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