Got it, I missed it in the list of all the hosts.
OK, so I managed to install the generic package.
I run:
$ sudo cmk-update-agent register -vvv
Successfully read /etc/check_mk/cmk-update-agent.cfg.
···
±------------------------------------------------------------------+
Check_MK Agent Updater v1.5.0p13 - Registration |
Activation of automatic agent updates. Your first step is to |
register this host at your deployment server for agent updates. |
For this step you need an administration account on WATO for |
that server. |
±------------------------------------------------------------------+
Using previous settings from /etc/cmk-update-agent.state.
Password for user âxxxxâ:
Going to register agent at deployment server
Updating the certificate store â/var/lib/check_mk_agent/cas/all_certs.pemââŠ
Updated the certificate store â/var/lib/check_mk_agent/cas/all_certs.pemâ with 1 certificate(s)
Authenticating at Check_MK Server (using requests): https://xxx.co.za/xxx/check_mk/login.py
Fetching content (using requests): https://xxx.co.za/xxx/check_mk/register_agent.py
Successfully registered agent for deployment.
Secret is .
Successfully read /etc/cmk-update-agent.state.
Saved deployment status to /etc/cmk-update-agent.state.
You can now update your agent by running âcmk-update-agent -vâ
Saved your registration settings to /etc/cmk-update-agent.state.
Could not modify cache age: Cachefile not found.
Done.
When I run cmk-update-agent however:
$ sudo cmk-update-agent -vvv
Successfully read /etc/cmk-update-agent.state.
Successfully read /etc/check_mk/cmk-update-agent.cfg.
±------------------------------------------------------------------+
Check_MK Agent Updater v1.5.0p13 - Update |
±------------------------------------------------------------------+
Getting target agent configuration for host âxxx.co.zaâ from deployment server
Updating the certificate store â/var/lib/check_mk_agent/cas/all_certs.pemââŠ
Updated the certificate store â/var/lib/check_mk_agent/cas/all_certs.pemâ with 1 certificate(s)
Fetching content (using requests): https://xxx.co.za/xxx/check_mk/deploy_agent.py
Response from deployment server:
AgentAvailable: False
Successfully read /etc/cmk-update-agent.state.
Saved deployment status to /etc/cmk-update-agent.state.
No agent available for us.
Could not find and update cachefile.
Done.
However, I have created a rule and baked an agent specifically for this host. The âAutomatic Updatesâ screen in WATO also shows 0 âRegistered agentsâ despite the above registration being successful.
Any ideas?
Regards
Gavin
Gavin Hill | Director
m: +27 83 601 8181
t: +27 10 020 5959
<img src="cid:hlSnOYIdSUOC5FZ5uX4vQHighpeak_email_jpg">[<img src="cid:Rm3awYu7EytpKYlCYlhzgHighpeak_linkedin_jpg">](https://www.linkedin.com/company/highpeak-pty-ltd/)<img src="cid:Q3misBQNVUWQnjarztJ3XwHighpeak_skype_jpg">[<img src="cid:znighqd1GUerssHJm3C6wwHighpeak_web_jpg">](https://www.highpeak.co.za/)
![]()
-----Original Message-----
From: checkmk-en checkmk-en-bounces@lists.mathias-kettner.de On Behalf Of Robert Sander
Sent: Monday, 08 April 2019 12:12 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Downloading Baked Agents via wget/curl
Hi Gavin,
On 08.04.19 11:22, Gavin Hill wrote:
After I followed the docs on creating an auto-update agent I ended up
with two agents, one for all my hosts with the âagentupdaterâ
parameters and one marked âVANILLAâ
The one for your host should also have a âGENERICâ in the list of hosts.
The generic agent receives all the configuration from the rules without any specific conditions.
Regards
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
https://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Amtsgericht Berlin-Charlottenburg - HRB 93818 B
GeschĂ€ftsfĂŒhrer: Peer Heinlein - Sitz: Berlin