ansible role to install/configure checkmk agent on debian with optional creation and registration of the agent host on the checkmk server.
a checkmk server reachable from the machine running ansible
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 agocheck_apt_updates_for_packages_on_hold: check if there are updates available for packages set on holdcheck_reboot: check if a reboot is required after a apt updatecheck_keepalived: check the status of keepalive (global an per vrrp instance)check_samba_repl: check samba DC replication statuscheck_fail2ban: check the status of fail2ban jails (usingfail2ban-client)check_zammad_health: check the zammad health (requirespython3-requests)
# 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