Skip to content

Rosa-Luxemburgstiftung-Berlin/ansible-role-checkmkagent

 
 

Repository files navigation

License: GPL v3 ansible-lint molecule test Ansible 12 read

ansible-role-checkmkagent

ansible role to install/configure checkmk agent on debian with optional creation and registration of the agent host on the checkmk server.

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)
  • check_lsbrelease : simple and informational lsb_release check

example configuration

# hostname of the checkmk server
checkmk_hostname: "cmk.example.domain"
checkmk_proto: https
checkmk_site: MYSITE
# 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

About

install check-mk-agent on debian

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 48.4%
  • Jinja 37.5%
  • Python 11.5%
  • Makefile 2.6%