Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working on debian stretch #35

Open
erikschwalbe opened this issue Nov 27, 2017 · 0 comments
Open

not working on debian stretch #35

erikschwalbe opened this issue Nov 27, 2017 · 0 comments

Comments

@erikschwalbe
Copy link

We use only the ckeckmk_agent role, not the checkmk_server role!

I try to install on debian stretch but installation failed.
There is no check-mk-agent package in repository.
The task:

- name: Ensure specified packages are in there desired state
  package:
name: '{{ item }}'

tries to install the agent from the local repository.
So, for Ubuntu 16.04. there is only a very old package 1.2.6x
The task:

- include: setup_plugins.yml
tags: [ 'role::checkmk_agent:plugins' ]

clone the whole git repository to get the plugins...
On our standalone check-mk server there is a section agents and plugins.
So I rewrite the the checkmk_agent and download the agent and the plugins from our check-mk server directly:

- name: Get latest agent version from check-mk-server
  shell: wget -q -O - https://<check-mk-server>/nagios/check_mk/agents/ | grep '\.deb' | cut -d'"' -f2
  register: checkmk_agent__register_latest_agent_version

- name: Install check-mk-agent
  apt:
    deb: https://<check-mk-server>/nagios/check_mk/agents/{{ checkmk_agent__register_latest_agent_version.stdout }}

and:

- name: Install Check_MK plugins
  get_url:
    url: 'https://nagios.canoo.com/nagios/check_mk/agents/plugins/{{ item }}'
    dest: '{{ checkmk_agent__plugin_path }}'
    mode: 0755
  with_items: '{{ checkmk_agent__combined_plugins }}'

Perhaps this is the better way?
So server and agent uses the same version and you do not need to checkout the whole git repo.

Regards,
Erik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant