<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bastian Kuhn - Bastian Kuhn (English)</title><link>https://bastian-kuhn.de/</link><description>Checkmk Beratung und Entwicklung</description><atom:link href="https://bastian-kuhn.de/en/feed/rss.xml" rel="self"/><lastBuildDate>Mon, 23 Feb 2026 09:36:00 +0100</lastBuildDate><item><title>Other restart currently in progress. Aborting</title><link>https://bastian-kuhn.de/2026/02/other-restart-currently-in-progress-aborting/</link><description>&lt;p&gt;When this is shown for a long time, the helper which locks the main.mk died.
The solution is to find and kill that worker using the fuser command.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;OMD[cmk]:~/etc/check_mk$ fuser main.mk
/opt/omd/sites/cmk/etc/check_mk/main.mk: 233324
OMD[cmk_core]:~/etc/check_mk$ ps -ef | grep 233324
cmk_cor+  186370  184646  0 09:27 pts/0    00:00:00 grep --color=auto 233324
cmk_cor+  233324       1  0 Feb20 ?        00:00:15 gunicorn: worker [automation-helper]
OMD[cmk]:~/etc/check_mk$ kill -9 233324
OMD[cmk]:~/etc/check_mk$ fuser main.mk
OMD[cmk]:~/etc/check_mk$
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then the Activate Changes will work again&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Mon, 23 Feb 2026 09:23:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2026-02-23:/2026/02/other-restart-currently-in-progress-aborting/</guid><category>Checkmk</category></item><item><title>Problem with wrapping URLs in the Ansible get_url Module</title><link>https://bastian-kuhn.de/2025/11/problem-with-multiline-urls-in-the-ansible-geturl/</link><description>&lt;h1 id="ansible-wrap-long-urls-in-the-get_url-module"&gt;Ansible: Wrap long URLs in the get_url Module&lt;/h1&gt;
&lt;p&gt;If there is the Situation that your ansible playbooks need to pass a Linder, but you have very long URLs to query, you will find that the &amp;gt;- or |- Operator won’t help to wrap the url into multiple lines because it will just lead to white spaces&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nt"&gt;ansible.builtin.uri&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p p-Indicator"&gt;&amp;gt;-&lt;/span&gt;
&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="no"&gt;https://bastian-kuhn,com&lt;/span&gt;
&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="no"&gt;/wp-content/uploads/2025/&lt;/span&gt;
&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="no"&gt;11/17630480180408.jpg&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;    fatal: [157.90.25.75 -&amp;gt; localhost]: FAILED! =&amp;gt; {&amp;quot;changed&amp;quot;: false, &amp;quot;elapsed&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;Status code was -1 and not [200]: An unknown error occurred: URL can&amp;#39;t contain control characters. &amp;#39;bastian-kuhn.com &amp;#39; (found at least &amp;#39; &amp;#39;)&amp;quot;, &amp;quot;redirected&amp;quot;: false, &amp;quot;status&amp;quot;: -1, &amp;quot;url&amp;quot;: &amp;quot;https://bastian-kuhn.com /wp-content/uploads/2025/ 11/17630480180408.jpg&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The Solution is simple:&lt;/p&gt;
&lt;p&gt;Make it a string and wrap this string:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nt"&gt;ansible.builtin.uri&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;https://bastian-kuhn.com\&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="s"&gt;/wp-content/uploads/2025/\&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="s"&gt;11/17630480180408.jpg&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Note here the Ticks at the beginning and the end, and the Backslash behind every line&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Mon, 24 Nov 2025 09:52:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-11-24:/2025/11/problem-with-multiline-urls-in-the-ansible-geturl/</guid><category>Allgemein</category><category>Ansible</category></item><item><title>Authenticate via URL in Checkmk</title><link>https://bastian-kuhn.de/2025/11/authenticate-via-url-in-checkmk/</link><description>&lt;p&gt;In Checkmk you can pass credentials in the URL to access Pages and Dashboard in Checkmk, without the need of an authentication.&lt;/p&gt;
&lt;p&gt;The simplest way is to access a Page directly from Checkmk like the View of Hosts, a Dashboard or Nagvis. In case of view, I would recommend opening the View in a new Tab, so that you get the clean URL without the Sidebar (Even Checkmk will redirect you to the full page again).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost:8080/cmk/check_mk/view.py?view_name=allhosts"&gt;http://localhost:8080/cmk/check_mk/view.py?view_name=allhosts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Make sure in the Global settings, that you enabled „Login via GET requests“&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/wp-content/uploads/2025/11/17630480180408.jpg"&gt;&lt;/p&gt;
&lt;p&gt;Next, try to access your target URL, when not logged in. You get the URL to the Login Page but with redirect back to the initial Page:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://localhost:8080/cmk/check_mk/login.py?_origtarget=index.py%3Fstart_url%3Dview.py%253Fview_name%253Dallhosts"&gt;http://localhost:8080/cmk/check_mk/login.py?_origtarget=index.py%3Fstart_url%3Dview.py%253Fview_name%253Dallhosts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now you add &amp;amp;_username=YOURUSER&amp;amp;_password=YOURPASSWORD&amp;amp;_login=1 to that url.
Be aware that the Apache Web server Log will now contain this password.&lt;/p&gt;
&lt;p&gt;When using the URL from now, you are logged in automatically.&lt;/p&gt;
&lt;h2 id="hints-with-nagvis"&gt;Hints with Nagvis&lt;/h2&gt;
&lt;p&gt;If you want to use Nagvis in this way, you may want to add header_menu=0 as URL Parameter&lt;/p&gt;
&lt;h2 id="use-automation-secrets"&gt;Use Automation Secrets&lt;/h2&gt;
&lt;p&gt;If you would like to use this with Automation Secrets, use _secret instead of _password&lt;/p&gt;
&lt;h2 id="use-a-page-as-backend-for-an-automation"&gt;Use a Page as Backend for an Automation&lt;/h2&gt;
&lt;p&gt;This was possible in old Versions of Checkmk. There is the parameter &lt;strong&gt;output_format&lt;/strong&gt; which can be set to CSV or JSON. In the new Version, you need to set an option in the Global Settings first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2025/11/Bildschirmfoto-2025-11-15-um-12.35.44.png"&gt;&lt;img alt="" src="/wp-content/uploads/2025/11/Bildschirmfoto-2025-11-15-um-12.35.44.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then the URL like this will work and returns JSON:&lt;/p&gt;
&lt;p&gt;http://localhost:8080/cmk/check_mk/view.py?view_name=allhosts&amp;amp;output_format=json&amp;amp;_username=automation&amp;amp;_secret=Ae6SoJkJB$wcZtuU&lt;/p&gt;
&lt;p&gt;Please ensure that use an automation User, and _secret as Parameter instead of Password.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Thu, 13 Nov 2025 16:59:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-11-13:/2025/11/authenticate-via-url-in-checkmk/</guid><category>Allgemein</category><category>Check-Dokumentation</category><category>Checkmk 2</category></item><item><title>Checkmk: Build Notification plugins which hijack the build in Mails Plugin in 2.4</title><link>https://bastian-kuhn.de/2025/11/checkmk-build-notification-plugins-which-hijack-the-build-in-mails-plugin-in-2-4/</link><description>&lt;p&gt;&lt;strong&gt;Warning: This is risky and can break with updates.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Situation: You have the need to send mails from Checkmk, but you need to overwrite some Parameter for the Mail. Or you need some more logic. In this case, instead of creating your own script which sends mail, you can just use the included one. Just Hijack it :)&lt;/p&gt;
&lt;h2 id="example-to-hijack-a-plugin"&gt;Example to hijack a Plugin:&lt;/h2&gt;
&lt;p&gt;First, you can build your own Notification Plugin which uses just the shipped mail and overwrite the Environment. Then it calls mail.mail() the included one. For now, this works save in Checkmk for some years:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="ch"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="c1"&gt;# My Mail Notification&lt;/span&gt;
&lt;span class="c1"&gt;# Bulk: yes&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;os&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;sys&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;cmk.notification_plugins&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;mail&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="vm"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;__main__&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;#new_recipient = get_rufbereitschaft(env=&amp;quot;prod-1&amp;quot;)[&amp;#39;email&amp;#39;]&lt;/span&gt;
    &lt;span class="n"&gt;old_recipient&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;NOTIFY_CONTACTEMAIL&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;new_recipient&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;alaram@mail.de&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;NOTIFY_PARAMETER_GRAPHS_PER_NOTIFICATION&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;5&amp;#39;&lt;/span&gt;

    &lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;RB_MAIL Rufbereitschaft&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;old_recipient&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;dummy@FIRMEN-MAIL.de&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="c1"&gt;# Fall 1: Aufruf für den RB Empfänger&lt;/span&gt;
        &lt;span class="c1"&gt;# Geht immer raus&lt;/span&gt;
        &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;NOTIFY_CONTACTEMAIL&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new_recipient&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;old_recipient&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;it-service@FIRMEN-MAIL.de&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;old_recipient&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;new_recipient&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;NO Mail send to &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;NOTIFY_CONTACTEMAIL&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Mail send to &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;NOTIFY_CONTACTEMAIL&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Other Example can be found in the &lt;a href="https://github.com/kuhn-ruess/Checkmk-Checks/tree/master/df_inventory"&gt;df_inventory&lt;/a&gt; script.&lt;/p&gt;
&lt;h2 id="getting-the-user-interface"&gt;Getting the User interface:&lt;/h2&gt;
&lt;p&gt;This is now the bigger point. I want to stretch again that this is risky and can break with every Checkmk Update.
For Example, the git version of today already differs from the stable 2.4. Commented out in the code the base to build something with that current version (unfinished).&lt;/p&gt;
&lt;p&gt;But what is working for now, is to import the existing Notification Parameter and build your own class around it.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;cmk.gui.wato._notification_parameter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;_mail&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;mail&lt;/span&gt;

&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;typing&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;cast&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;cmk.gui.valuespec&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Dictionary&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;ValueSpecDictionary&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;cmk.gui.form_specs.vue.visitors.recomposers.unknown_form_spec&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;recompose&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nc"&gt;NotificationParameterDfMail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NotificationParameterMail&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;

    &lt;span class="nd"&gt;@property&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;ident&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;df_mail&amp;quot;&lt;/span&gt;

&lt;span class="n"&gt;notification_parameter_registry&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;register&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NotificationParameterDfMail&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I was already a bit playing around with the git version, and may this will work there (untested)&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;# This May work after 2.4&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nc"&gt;NotificationParameterDfMail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NotificationParameter&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;    Notification parameter for DF Mail&lt;/span&gt;
&lt;span class="sd"&gt;    &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
    &lt;span class="nd"&gt;@property&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;ident&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;df_mail&amp;quot;&lt;/span&gt;

    &lt;span class="nd"&gt;@property&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;ValueSpecDictionary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="c1"&gt;# TODO needed because of mixed Form Spec and old style setup&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;cast&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ValueSpecDictionary&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recompose&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_form_spec&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;valuespec&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;_form_spec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form_spec_mail&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Fri, 07 Nov 2025 11:57:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-11-07:/2025/11/checkmk-build-notification-plugins-which-hijack-the-build-in-mails-plugin-in-2-4/</guid><category>Checkmk</category><category>Checkmk 2</category></item><item><title>Does a Host in Checkmk need to exists before you register?</title><link>https://bastian-kuhn.de/2025/11/does-a-host-in-checkmk-need-to-exists-before-you-register/</link><description>&lt;p&gt;Say you want to do an Agent Registration for TLS, or register the Bakery automatically.&lt;/p&gt;
&lt;p&gt;The question is, needs the host to be existing in Checkmk or not?
For Checkmk 2.4 it depends on what you register:&lt;/p&gt;
&lt;p&gt;You can register the Agent Updater, but not the TLS for the connection.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Can register&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Agent Updater&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent Controller TLS&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h1 id="_1"&gt;&lt;/h1&gt;
&lt;p&gt;Just keep in mind, you cannot Download an Agent if the Bakery does not contain it yet. Registered or not :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Sun, 02 Nov 2025 14:17:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-11-02:/2025/11/does-a-host-in-checkmk-need-to-exists-before-you-register/</guid><category>Allgemein</category></item><item><title>Checkmk core killed by SIGKILL</title><link>https://bastian-kuhn.de/2025/11/checkmk-core-killed-by-sigkill/</link><description>&lt;p&gt;If you experience the Problem that your Checkmk core (cmc) is killed by a SIGKILL from the Kernel, It is worth a try to check if the ULIMIT is set right.&lt;/p&gt;
&lt;p&gt;Check it with:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;ulimit -a
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Check in your /etc/security/ folder for a limits.conf or limits.d folder.&lt;/p&gt;
&lt;p&gt;There you can add:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;username soft nofile 65535
username hard nofile 65535
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;replace username with the sitename and restart omd.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Sun, 02 Nov 2025 14:02:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-11-02:/2025/11/checkmk-core-killed-by-sigkill/</guid><category>Allgemein</category></item><item><title>Install Checkmk Agent in a Home folder</title><link>https://bastian-kuhn.de/2025/11/install-checkmk-agent-in-a-homefolder/</link><description>&lt;h1 id="_1"&gt;&lt;/h1&gt;
&lt;p&gt;This can be used to install the Checkmk agent without to install anything. Useful for Appliances.&lt;/p&gt;
&lt;h2 id="content"&gt;Content&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#checkmk-agent-installation-in-home-folder-eg-for-appliances"&gt;Checkmk Agent Installation in Home Folder (eg. for Appliances)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#content"&gt;Content&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#basics"&gt;Basics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#preperation-of-checkmk-rule"&gt;Preparation of Checkmk Rule&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#access-from-checkmk"&gt;Access from Checkmk&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#ansible"&gt;Ansible&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#referenzen"&gt;Reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#tags"&gt;Tags&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="basics"&gt;Basics&lt;/h2&gt;
&lt;p&gt;Since of Checkmk 2.4, the Linux Agent supports a Variable called MK_INSTALLDIR.
If this Variable is set, all the Paths of the Checkmk Files are set as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MK_LIBDIR=“${MK_INSTALLDIR}/package“&lt;/li&gt;
&lt;li&gt;MK_CONFDIR=“${MK_INSTALLDIR}/package/config“&lt;/li&gt;
&lt;li&gt;MK_VARDIR=“${MK_INSTALLDIR}/runtime“&lt;/li&gt;
&lt;li&gt;MK_LOGDIR=“${MK_INSTALLDIR}/runtime/log“&lt;/li&gt;
&lt;li&gt;MK_BIN=“${MK_INSTALLDIR}/package/bin“&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;An SSH Command Restriction could now be looking like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;command=&amp;quot;env MK_INSTALLDIR=/home/parallels/cmk/ /home/parallels/cmk/package/bin/check_mk_agent&amp;quot;,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-ed25519 AAAACmBS bkuhn@MacBook-Pro
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The Base of the Package can be configured in the Agent Bakery. There all Plugins should be configured.&lt;/p&gt;
&lt;h2 id="preparation-of-checkmk-rule"&gt;Preparation of Checkmk Rule&lt;/h2&gt;
&lt;p&gt;Use the Customize Agent Rule to set /cmk as target path.
The Ansible Playbook will then extract to /home/user/ where you have the cmk subfolder then.&lt;/p&gt;
&lt;h2 id="access-from-checkmk"&gt;Access from Checkmk&lt;/h2&gt;
&lt;p&gt;Set the Data source Program as follow:
 &lt;code&gt;ssh $HOSTNAME$ &amp;gt; /dev/null&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You may wan’t to add the SSH User and the Path to the SSH Key.&lt;/p&gt;
&lt;h2 id="ansible-playbook-to-upload-tar-and-ssh-key"&gt;Ansible Playbook to upload Tar and SSH Key&lt;/h2&gt;
&lt;p&gt;Variant to upload the Tar file and prepare the SSH. But best, also check the second version of the YML in the next chapter.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Install and configure CheckMK Agent&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;hosts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;all&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;vars&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;target_user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;parallels&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;ssh_key_file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;playbook_dir&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}/key.pem&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;agent_tar_file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;playbook_dir&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}/agent.tar.gz&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;agent_install_dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;/home/{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}/cmk&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;ssh_command_restriction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p p-Indicator"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="no"&gt;command=&amp;quot;env MK_INSTALLDIR=/home/{{ target_user }}/cmk/ /home/parallels/{{ target_user }}/package/bin/check_mk_agent&amp;quot;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="no"&gt;no-port-forwarding,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="no"&gt;no-X11-forwarding,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="no"&gt;no-agent-forwarding,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="no"&gt;no-pty&lt;/span&gt;

&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;tasks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Read SSH public key from file&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;set_fact&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;ssh_public_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;lookup(&amp;#39;file&amp;#39;,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;ssh_key_file)&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;delegate_to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;localhost&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Add SSH public key with command restriction&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;authorized_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;present&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;ssh_public_key&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;key_options&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;ssh_command_restriction&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;comment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Checkmk&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Monitoring&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Agent&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Create installation directory&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;agent_install_dir&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;directory&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;group&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;#39;0755&amp;#39;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Copy tar file to target system&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;agent_tar_file&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;/{{agent_install_dir}}/checkmk-agent.tar.gz&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;group&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;#39;0644&amp;#39;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Extract agent tar file&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;unarchive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;/{{agent_install_dir}}/checkmk-agent.tar.gz&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;agent_install_dir&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;group&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;target_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;remote_src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;yes&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Clean up temporary tar file&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;/{{agent_install_dir}}/checkmk-agent.tar.gz&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;absent&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2 id="variant-without-ssh-key-and-direct-agent-download"&gt;Variant without SSH Key and direct Agent download:&lt;/h2&gt;
&lt;p&gt;Way better version, downloads from Checkmk directly if Checkmk is reachable:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;hosts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;all&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;gather_facts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;false&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;vars&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;cmk_server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;cmkmaster.company.de&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;cmk_server_port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;443&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;cmk_site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;cmkmaster&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;cmk_user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;automation_oracleinstall&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;cmk_secret&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;xxxx&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;ansible_user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;svc_Monitoring&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;ansible_ssh_private_key_file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;local_id_oracle&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;agent_install_dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;/home/svc_monitoring&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;agent_internal_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{agent_install_dir}}/cmk-agent&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;# As Configured for the Agent in CMK (/cmk-agent)&lt;/span&gt;

&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;tasks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Create Wrapper&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;env&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;MK_INSTALLDIR={{agent_install_dir}}/&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;{{agent_internal_path&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}/default/package/bin/check_mk_agent&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{agent_install_dir}}/agent_wrapper.sh&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;ansible_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;#39;u+x&amp;#39;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Download&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Checkmk&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Agent&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;ansible.builtin.uri&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;https://{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;cmk_server&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}:{{cmk_server_port}}/{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;cmk_site&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}/check_mk/api/1.0/domain-types/agent/actions/download_by_host/invoke?os_type=linux_tgz&amp;amp;host_name={{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;inventory_hostname&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;agent_install_dir&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}/checkmk-agent.tar.gz&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;GET&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;validate_certs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;no&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="nt"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Bearer&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;cmk_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;cmk_secret&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="nt"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;application/octet-stream&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Delete files from previous installation&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{agent_internal_path}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;absent&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p p-Indicator"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;Extract agent tar file&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;unarchive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{agent_install_dir}}/checkmk-agent.tar.gz&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;agent_install_dir&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{{&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;ansible_user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;}}&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nt"&gt;remote_src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l l-Scalar l-Scalar-Plain"&gt;yes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;What you need is maybe a mix of both variants. The Second one is more flexible and powerful, the first one more „manual“.&lt;/p&gt;
&lt;h2 id="reference"&gt;Reference&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://checkmk.com/werk/17900"&gt;Werk17900&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="tags"&gt;Tags&lt;/h2&gt;
&lt;h1 id="checkmk-ansible-knowledgebase"&gt;checkmk #ansible #knowledgebase&lt;/h1&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Sun, 02 Nov 2025 11:12:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-11-02:/2025/11/install-checkmk-agent-in-a-homefolder/</guid><category>Allgemein</category><category>Check-Dokumentation</category></item><item><title>Enable Rabbit MQ Interface on Checkmk Systems</title><link>https://bastian-kuhn.de/2025/10/enable-rabbit-mq-interface-on-checkmk-systems/</link><description>&lt;h1 id="how-to-access-the-rabbit-mq-web-interface-in-checkmk"&gt;How to access the Rabbit MQ Web Interface in Checkmk&lt;/h1&gt;
&lt;p&gt;Checkmk introduced with 2.4 a new function Piggyback Hub which is using RabbitMQ as spooler.&lt;/p&gt;
&lt;p&gt;If you want to debug a bit better or to see what is going on, the Management GUI is Helpful:&lt;/p&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2025/10/grafik-scaled.png"&gt;&lt;img alt="" src="/wp-content/uploads/2025/10/grafik-1024x532.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Only Problem: On default, you cant‘ reach it.&lt;/p&gt;
&lt;h2 id="prepare-checkmk"&gt;Prepare Checkmk&lt;/h2&gt;
&lt;p&gt;In ~/etc/rabbitmq/conf.d you find a 04-managment-ip.conf with the following content:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;# Management API for self monitoring
# Ip set by rabbitmq init script etc/init.d/rabbitmq. Better do not edit manually.
management.tcp.ip = ::1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Here you could set 0.0.0.0 as IP to bind, but Checkmk would overwrite that.&lt;/p&gt;
&lt;p&gt;So copy the file to 05-yourname.conf and set it like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;management.tcp.ip = 0.0.0.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then Restart the Demon:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;omd restart rabbitmq&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now you can reach the Web Interface using the port 15671.
A Login mask is shown. Next Step is to prepare Rabbitmq&lt;/p&gt;
&lt;h2 id="prepare-rabbitmq"&gt;Prepare Rabbitmq&lt;/h2&gt;
&lt;p&gt;To Acces the Gui, you need an user. The User can be created inside the Checkmk Site with the three following commands.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;rabbitmqctl add_user bk password

rabbitmqctl set_permissions -p / bk &amp;quot;.&amp;quot; &amp;quot;.&amp;quot; &amp;quot;.*&amp;quot;

rabbitmqctl set_user_tags bk administrator
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Now you can log in with bk:password&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Thu, 30 Oct 2025 10:49:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-10-30:/2025/10/enable-rabbit-mq-interface-on-checkmk-systems/</guid><category>Allgemein</category><category>Checkmk</category></item><item><title>Problems with Smart Ping</title><link>https://bastian-kuhn.de/en/2025/10/probleme-mit-smart-ping/</link><description>&lt;h1 id="knowledgebase-checkmk"&gt;knowledgebase #checkmk&lt;/h1&gt;
&lt;p&gt;run setcap cap_net_raw+ep on icmpsender and receiver&lt;/p&gt;
&lt;p&gt;/opt/omd/sites/SITE/lib/cmc&lt;/p&gt;
&lt;h1 id="varlogcmclog"&gt;~/var/log/cmc.log&lt;/h1&gt;
&lt;h2 id="error"&gt;Error:&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&amp;quot;Error at pcap_open(): (null): You don&amp;#39;t have permission to capture on that
device (socket: Operation not permitted)&amp;quot;
&amp;quot;Cannot create raw socket (missing SUID root?): Operation not permitted&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2 id="solution"&gt;Solution:&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;chmod u+s /omd/sites/mongui/lib/cmc/icmp&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="error_1"&gt;Error:&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;"Cannot send IP addresses to icmpsender: Broken pipe"&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="solution_1"&gt;Solution&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;chmod o+rx  /omd/sites/mongui/lib/cmc/icmp&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Wed, 29 Oct 2025 10:30:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-10-29:/en/2025/10/probleme-mit-smart-ping/</guid><category>Allgemein</category></item><item><title>Eventconsole Cleanup the History</title><link>https://bastian-kuhn.de/2025/10/eventconsole-cleanup-the-history/</link><description>&lt;h1 id="checkmk-knowledgebase"&gt;checkmk #knowledgebase&lt;/h1&gt;
&lt;h1 id="problems-with-sqlite-and-the-mk-event-history"&gt;Problems with sqlite and the mk event History&lt;/h1&gt;
&lt;p&gt;Since Checkmk 2.4 the History of Checkmk Eventconsole is written to a sqlite file. The Problem is, as bigger these files get, the bigger will be the overhead to udpate them. In a big, Event Based Environment this lead to an crash. Here are workarround to solve that&lt;/p&gt;
&lt;h2 id="export-the-date"&gt;Export the Date&lt;/h2&gt;
&lt;p&gt;First of all how to export the History in a csv file.
For that you need sqlte3 installed.&lt;/p&gt;
&lt;p&gt;Enter the ~/var/mkeventd&lt;/p&gt;
&lt;p&gt;There you find the history.sqlite. No Problem if the file has just some MB. but in the Problem Setup it had 22 GB.&lt;/p&gt;
&lt;p&gt;Use the following commands to export the files zu csv:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&amp;gt;&amp;gt;sqlite3 history.sqlite
sqlite&amp;gt; .headers on
sqlite&amp;gt; .mode csv
sqlite&amp;gt; .output history.csv
sqlite&amp;gt; SELECT * FROM history;
sqlite&amp;gt; .quit
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2 id="logroate"&gt;Logroate&lt;/h2&gt;
&lt;p&gt;If you want to start with an clean history every month, you can rotate this file. Just note, that you are not able to browse the history in the GUI after the rotatin, but you can always Export the csv if you need to find something.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;/omd/sites/cmk/var/mkeventd/history/history.sqlite {
   rotate 16
   monthly
   nocompress
   dateext
   prerotate
       omd stop mkeventd
   endscript
   postrotate
       rm -f /omd/sites/cmk/var/mkeventd/history/history.sqlite
       omd start mkeventd
   endscript
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Dont forget to adjust the path in the first line and then Place this as a file in ~/etc/logrotate.d&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Wed, 29 Oct 2025 10:29:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2025-10-29:/2025/10/eventconsole-cleanup-the-history/</guid><category>Allgemein</category><category>Checkmk</category></item><item><title>Changeing Checkmk Dashboards directly in user Profile</title><link>https://bastian-kuhn.de/2024/11/changeing-checkmk-dashboards-directly-in-user-profile/</link><description>&lt;p&gt;In Checkmk it was always possible to change configuration also directly in the config files. But reading config files is not always the best solution in therms of Performance. Therefore, not only with 2.3 Checkmk started to cache and optimize that.&lt;/p&gt;
&lt;p&gt;So you find yourself maybe in your Checkmk 2.3 Installation wanting to change your dashboard in&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;~/var/check_mk/web/USERNAME/user_dashboards.mk
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;But you will see that nothing in the Frontend will change. This is because of these Caches.
What you need to do, it’s to delete it. So just delete the following two files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;~/tmp/check_mk/pickled_files_cache/var/check_mk/web/USERNAME/user_dashboards.mk.pkl&lt;/li&gt;
&lt;li&gt;~/tmp/check_mk/visuals_cache/cached_dashboards&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After that, the user_dashboard.mk from your profile folder will be read in again.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Tue, 26 Nov 2024 16:20:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2024-11-26:/2024/11/changeing-checkmk-dashboards-directly-in-user-profile/</guid><category>Checkmk</category><category>Checkmk 2</category></item><item><title>Checkmk: Download snmpwak for Plugin Development</title><link>https://bastian-kuhn.de/2023/09/checkmk-download-snmpwak-for-plugin-development/</link><description>&lt;p&gt;In case you ask a Checkmk Developer to develop an SNMP based Checkmk Plugin,
the Developer is gone to ask you for a walk of this device.&lt;/p&gt;
&lt;p&gt;And this walk should not the one created on the command line with the normal snmwalk command,
but one created by Checkmk himself.&lt;/p&gt;
&lt;p&gt;There are two ways to do that, the CLI and the GUI.&lt;/p&gt;
&lt;h2 id="creating-a-walk-in-the-cli"&gt;Creating a walk in the CLI&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Connect to your Server via SSH&lt;/li&gt;
&lt;li&gt;Change to your site: &lt;code&gt;su - sitename&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;cmk --snmpwalk -v device&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Find the walk in ~/var/check_mk/snmpwalks&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2023/09/Bildschirmfoto-2023-09-22-um-15.15.02.png"&gt;&lt;img alt="" src="/wp-content/uploads/2023/09/Bildschirmfoto-2023-09-22-um-15.15.02.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(The Timeout is since I don’t have the correct credentials for the device, you should not see that errors)&lt;/p&gt;
&lt;h2 id="creating-a-walk-in-the-gui"&gt;Creating a Walk in the GUI&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Look for your device, e.g. in Quick search&lt;/li&gt;
&lt;li&gt;Click on the Burger Menue with Check_MK Service&lt;/li&gt;
&lt;li&gt;Click Download SNMP walk&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2023/09/Bildschirmfoto-2023-09-22-um-15.12.30.png"&gt;&lt;img alt="" src="/wp-content/uploads/2023/09/Bildschirmfoto-2023-09-22-um-15.12.30.png"&gt;&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Fri, 22 Sep 2023 14:16:00 +0200</pubDate><guid>tag:bastian-kuhn.de,2023-09-22:/2023/09/checkmk-download-snmpwak-for-plugin-development/</guid><category>Checkmk</category><category>Checkmk 2</category></item><item><title>Checkmk: Find all Context Variables for Notification Plugins</title><link>https://bastian-kuhn.de/2023/09/checkmk-find-all-context-variables-for-notification-plugins/</link><description>&lt;p&gt;The Problem is, that the Gui is not showing all of them.
So you can’t see which variables you can access, when building a new notification plugin.&lt;/p&gt;
&lt;p&gt;A simple Workaround is to build a first test.
Just create a new plugin, as you would do. Make sure it’s in Python and Executable.&lt;/p&gt;
&lt;p&gt;Place it in: &lt;em&gt;~/local/share/check_mk/notifications/&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Then you put this code inside:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="ch"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="c1"&gt;# BK: Test full Context&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pprint&lt;/span&gt;

&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;cmk.notification_plugins&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;utils&lt;/span&gt;
&lt;span class="n"&gt;pprint&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pprint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;utils&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;collect_context&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You will find now a new notification Method „BK: Test full Context“, when you create a new Notification Rule.
If it’s not there, run omd restart apach first.&lt;/p&gt;
&lt;p&gt;Create your rule, trigger a notification and check the log in
&lt;em&gt;~/var/log/notify.log&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2023/09/image.png"&gt;&lt;img alt="" src="/wp-content/uploads/2023/09/image.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There you see now the full context.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Thu, 21 Sep 2023 13:45:00 +0200</pubDate><guid>tag:bastian-kuhn.de,2023-09-21:/2023/09/checkmk-find-all-context-variables-for-notification-plugins/</guid><category>Checkmk</category><category>Checkmk 2</category></item><item><title>Eventconsole: Enable Syslog and Trap Receiver</title><link>https://bastian-kuhn.de/2023/09/eventconsole-enable-syslog-and-trap-receiver/</link><description>&lt;p&gt;The Syslog and Trap Receiver in Checkmk, can be enabled using the Global settings&lt;/p&gt;
&lt;h2 id="global-settings"&gt;Global Settings:&lt;/h2&gt;
&lt;p&gt;Go to Site management, then Event Console:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/wp-content/uploads/inline/23ea82e5b483a579.png"&gt;&lt;/p&gt;
&lt;p&gt;There then, active the wanted Ports and Save:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/wp-content/uploads/inline/473c467babc2c7dc.png"&gt;&lt;/p&gt;
&lt;p&gt;Activate Changes and your done.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Thu, 21 Sep 2023 13:20:00 +0200</pubDate><guid>tag:bastian-kuhn.de,2023-09-21:/2023/09/eventconsole-enable-syslog-and-trap-receiver/</guid><category>Checkmk</category><category>Checkmk 2</category></item><item><title>How Do You Find the Rules for Your Service in Checkmk?</title><link>https://bastian-kuhn.de/en/2021/10/wie-findet-man-in-checkmk-die-regeln-zu-seinem-service/</link><description>&lt;p&gt;In this short YouTube video I present a page that shows all parameters of a service and lets us directly see or change the thresholds that are set.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt;: To use this function, you have to enable the YouTube service in the GDPR (DSGVO) plugin settings.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Wed, 20 Oct 2021 15:39:00 +0200</pubDate><guid>tag:bastian-kuhn.de,2021-10-20:/en/2021/10/wie-findet-man-in-checkmk-die-regeln-zu-seinem-service/</guid><category>Allgemein</category></item><item><title>Privacy despite and with Google and Facebook</title><link>https://bastian-kuhn.de/en/2021/01/privatspahere_mit_google_und_facebook/</link><description>&lt;p&gt;The Netflix documentary "&lt;a href="https://www.netflix.com/de/title/81254224"&gt;The Social Dilemma&lt;/a&gt;" vividly shows why Facebook and Google need our data and how their targeted advertising even enables them to influence our behavior. If you are curious, take a look at your &lt;a href="https://myaccount.google.com/data-and-personalization"&gt;Google activity&lt;/a&gt;, for example.
And Google and Facebook are everywhere by now. Even when we just visit some inconspicuous website, this gets registered and stored in the background. Many of you have surely wondered about this before: you talk about something, you see something somewhere, and suddenly it shows up as an ad everywhere? That is not magic, it is a so called tracker. Put simply, it stores in the background what we search for and when we search for it. As much data as possible is combined to get the most accurate picture of us.  Details follow now. And of course some simple suggestions for solutions as well.&lt;/p&gt;
&lt;h2 id="background"&gt;Background&lt;/h2&gt;
&lt;p&gt;Let's start with Google. Because Google is already everywhere, even if we might not notice it.&lt;/p&gt;
&lt;h3 id="why-is-google-everywhere"&gt;Why is Google everywhere?&lt;/h3&gt;
&lt;p&gt;Google offers countless services, most of them free. As a result, many providers use these services on their websites. And of course, as users, we are happy about our free mailbox too. But here is an incomplete list of places where we find Google.
Even my own website (as of today) can't do without Google because of &lt;strong&gt;reCaptcha&lt;/strong&gt;. Many of you have surely come across this Google service on other websites several times. You have to mark the pictures that show, for example, traffic lights. That is very handy for me as a website operator, because it lets me prevent bots (automated scripts) from using my contact form for spam. Many website administrators also use the  &lt;strong&gt;Google Tag Manager&lt;/strong&gt; to conveniently embed services of other providers into their own  website. Other websites live off &lt;strong&gt;Google Ads&lt;/strong&gt; and use it to display advertising. &lt;strong&gt;Googling&lt;/strong&gt; has become the synonym for searching for something on the internet. If you also use an &lt;strong&gt;Android&lt;/strong&gt; phone, or even just &lt;strong&gt;Google Maps&lt;/strong&gt; on the iPhone, even more data is collected. Even if you then end up on a website that is completely neutral: chances are high that you are among the 80% (as of 10/2020) of internet users who use &lt;strong&gt;Google&lt;/strong&gt; &lt;strong&gt;Chrome&lt;/strong&gt;. You give even more information to the generous free &lt;strong&gt;Gmail&lt;/strong&gt; mailbox. With &lt;strong&gt;Google&lt;/strong&gt; &lt;strong&gt;Calendar&lt;/strong&gt;, &lt;strong&gt;Google&lt;/strong&gt; &lt;strong&gt;Keep, Google Drive, Google Pay, YouTube,&lt;/strong&gt; the list goes on forever. And all of it free of charge, of course.&lt;/p&gt;
&lt;h3 id="what-does-google-get-out-of-it"&gt;What does Google get out of it?&lt;/h3&gt;
&lt;p&gt;Google makes a lot of money with advertising. Mainly because they can target it very precisely at the right audience. And that is where the data comes into play that Google has collected everywhere beforehand.
Google has a complete location history of Android and Maps users. Google also knows exactly which websites you visited when and what you searched for. Google often even knows what we bought where.
From this data, interests, illnesses, habits and behavior can be derived without any trouble. An example: "When do I have to show a user a certain ad so that the chance is highest that he buys something?"&lt;/p&gt;
&lt;h3 id="and-facebook"&gt;And Facebook?&lt;/h3&gt;
&lt;p&gt;Things are no different with Facebook. Facebook lives off advertising just the same and therefore of course has the same interest as Google. To do that, they also want to keep us on their website as long as possible in order to show us this advertising at the right moment. Google already tried its hand at a social network but failed.  The data for Facebook comes, for example, from the &lt;strong&gt;Facebook App&lt;/strong&gt;, &lt;strong&gt;Facebook Messenger&lt;/strong&gt;, &lt;strong&gt;WhatsApp&lt;/strong&gt; and &lt;strong&gt;Instagram&lt;/strong&gt;. And of course there are the trackers on websites mentioned at the beginning, even where we don't expect them at all because we don't see a Like button or Facebook comments.&lt;/p&gt;
&lt;h2 id="what-can-you-do"&gt;What can you do?&lt;/h2&gt;
&lt;p&gt;Doing something about all of this, on the other hand, is not hard at all. In fact, it only takes simple changes, which can achieve a lot, to improve your privacy again.&lt;/p&gt;
&lt;h3 id="google"&gt;Google&lt;/h3&gt;
&lt;p&gt;Giving up Google completely is still hard at the moment. Website tracking, however, is already blocked by various browsers. Among them &lt;a href="https://www.mozilla.org/de/firefox/browsers/"&gt;Firefox&lt;/a&gt; and Safari. Google would of course be shooting itself in the foot if it did this completely in Chrome as well. So I at least recommend using a different browser: &lt;a href="https://www.mozilla.org/de/firefox/new/"&gt;Firefox&lt;/a&gt; (Open Source). Firefox is fast, comfortable and looks good. And of course it also works on your phone. In the Tracking section, I show what else it can do.&lt;/p&gt;
&lt;h4 id="maps"&gt;Maps&lt;/h4&gt;
&lt;p&gt;As of today, it is hard to get around Google Maps; alternatives like Apple Maps or Bing Maps unfortunately can't keep up yet. So no good advice from me here.&lt;/p&gt;
&lt;h4 id="web-search"&gt;Web search&lt;/h4&gt;
&lt;p&gt;Web search works just as well with &lt;a href="https://www.startpage.com/"&gt;Startpage.com&lt;/a&gt; or &lt;a href="https://duckduckgo.com/"&gt;DuckDuckGo&lt;/a&gt; instead of Google. That means: simply stop using Google for searching and use one of the many other search engines. For example, I have been using only &lt;a href="https://www.startpage.com/"&gt;Startpage.com&lt;/a&gt; for years without ever having had the problem of not finding something I was looking for.&lt;/p&gt;
&lt;h4 id="mail"&gt;Mail&lt;/h4&gt;
&lt;p&gt;Even though Google Mail currently no longer systematically scans mails for advertising purposes, this &lt;a href="https://www.zeit.de/digital/2019-08/datenschutz-unternehmen-e-mails-sicherheit-google"&gt;Zeit article&lt;/a&gt; confirms what I write about it here. Google still keeps access to the mails. Therefore: besides free EU providers like web.de or gmx.de, you can get a private mailbox with data protection at &lt;a href="https://mailbox.org/de/"&gt;mailbox.org&lt;/a&gt; starting at  1 euro per month. The operator of Mailbox.org also regularly campaigns for this kind of data protection.&lt;/p&gt;
&lt;h3 id="facebook"&gt;Facebook&lt;/h3&gt;
&lt;h4 id="facebook-website"&gt;Facebook website&lt;/h4&gt;
&lt;p&gt;If you can't do without Facebook, that's not a big deal. You can use Facebook without having the problem with the trackers. More on that in a moment in the section on tracking. And even the worry about an impulse purchase prompted by Facebook advertising is easy to get rid of. For Firefox there is, for example, the &lt;a href="https://addons.mozilla.org/de/firefox/addon/fb_ad_block/"&gt;Add Blocker for Facebook&lt;/a&gt; (Open Source), which can be installed with one click and simply hides Facebook advertising.&lt;/p&gt;
&lt;h4 id="whatsapp-and-facebook-messenger"&gt;WhatsApp and Facebook Messenger&lt;/h4&gt;
&lt;p&gt;Unfortunately the only thing that helps here is using a different app. Popular ones are &lt;a href="https://signal.org/de/"&gt;Signal&lt;/a&gt; and &lt;a href="https://threema.ch/de"&gt;Threema&lt;/a&gt;. Both are Open Source and neither collects data. Signal is free, non profit and only needs your phone number to register. Threema is commercial, you pay once and don't even need a phone number. I use both. But right now I have the feeling that most people are switching to Signal. See also this Heise article: &lt;a href="https://www.heise.de/news/Nach-Nutzeransturm-Messenger-Signal-fuehrt-neue-Funktionen-ein-5022475.html"&gt;After user rush, messenger Signal introduces new features&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Personally, I don't think much of Telegram, the whole thing is too shady. See also these articles: &lt;a href="https://netzpolitik.org/2020/bits-telegram-ist-nicht-so-sicher-wie-das-image-verspricht/"&gt;Telegram not as secure as its image promises&lt;/a&gt;, &lt;a href="https://www.stern.de/digital/smartphones/signal--darum-ist-der-dienst-besser-als-whatsapp-und-telegram-9172812.html"&gt;Signal: why the service is the better WhatsApp and Telegram&lt;/a&gt; and &lt;a href="https://www.basicthinking.de/blog/2020/11/11/telegram-kritik-verschwoerungstheorien/"&gt;Conspiracy criticism.&lt;/a&gt; So if you are switching anyway, better not jump out of the frying pan into the fire.&lt;/p&gt;
&lt;h3 id="tracking"&gt;Tracking&lt;/h3&gt;
&lt;p&gt;The finale of this article are the advertising trackers. Here I want to share what I have done against them.&lt;/p&gt;
&lt;p&gt;I use Firefox, in which I have already set the privacy settings to Strict:&lt;/p&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2021/01/Bildschirmfoto-2021-01-13-um-16.03.19.png"&gt;&lt;img alt="Firefox privacy settings" src="/wp-content/uploads/2021/01/Bildschirmfoto-2021-01-13-um-16.03.19.png"&gt;&lt;/a&gt;So far I have had to make an exception for only one website.&lt;/p&gt;
&lt;p&gt;Against Facebook tracking I use the &lt;a href="https://www.mozilla.org/de/firefox/facebookcontainer/"&gt;Facebook Container&lt;/a&gt; from Firefox. Against Google tracking, the &lt;a href="https://addons.mozilla.org/de/firefox/addon/google-container/"&gt;Google Container&lt;/a&gt;.  These two containers automatically isolate the Facebook and Google websites from all other websites you browse. Including all cookies. So, for example, the Google tracker on website XY can no longer connect to my Google account to see who is browsing right now. The same applies to Facebook. Both containers are installed with one click and work on their own. You just have to log in again, because all login information is deleted from the now public area of the browser. Afterwards it only exists isolated in the container.  You can then tell by the color in the browser tab that the pages are currently in containers. In the following picture a normal page, followed by Facebook and Google websites:&lt;/p&gt;
&lt;p&gt;&lt;a href="/wp-content/uploads/2021/01/Bildschirmfoto-2021-01-13-um-16.16.19.png"&gt;&lt;img alt="Containers in action" src="/wp-content/uploads/2021/01/Bildschirmfoto-2021-01-13-um-16.16.19-1024x209.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I hope this article gave you a somewhat better picture of the background behind what I do.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Wed, 13 Jan 2021 16:34:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2021-01-13:/en/2021/01/privatspahere_mit_google_und_facebook/</guid><category>Allgemein</category></item><item><title>New GUI in Checkmk 2.0</title><link>https://bastian-kuhn.de/en/2020/10/neue-gui-in-checkmk-2-0/</link><description>&lt;p&gt;For the next version of Checkmk, a great new interface has been busily built. It is much tidier and more logical. It's now also much easier to understand where you configure and where the monitoring runs.&lt;/p&gt;
&lt;p&gt;For everyone who wants to take a quick look at Checkmk 2.0, I've made a short video.&lt;/p&gt;
&lt;p&gt;Have fun with it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt;: To use this function, you have to enable the YouTube service in the GDPR plugin settings.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Sun, 25 Oct 2020 17:05:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2020-10-25:/en/2020/10/neue-gui-in-checkmk-2-0/</guid><category>Allgemein</category></item><item><title>Connecting Checkmk with Grafana</title><link>https://bastian-kuhn.de/en/2020/05/checkmk-mit-grafana-verbinden/</link><description>&lt;p&gt;Since version 1.6, Checkmk can be connected to Grafana very easily.&lt;/p&gt;
&lt;p&gt;You can then access all metrics in Checkmk from Grafana quite simply.&lt;/p&gt;
&lt;p&gt;As usual, I show how it works on my YouTube Checkmk channel:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt;: To use this feature, you need to enable the YouTube service in the GDPR plugin settings.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Fri, 22 May 2020 08:33:00 +0200</pubDate><guid>tag:bastian-kuhn.de,2020-05-22:/en/2020/05/checkmk-mit-grafana-verbinden/</guid><category>Allgemein</category></item><item><title>Host and Service Labels</title><link>https://bastian-kuhn.de/en/2019/09/host-und-service-labels/</link><description>&lt;p&gt;There is now a video of mine on YouTube that describes the new host and service labels in Checkmk.&lt;/p&gt;
&lt;p&gt;Labels differ from host tags in that they can not only be discovered automatically, but can also be assigned by rule.&lt;/p&gt;
&lt;p&gt;Here are the details:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt;: To use this feature, you have to enable the YouTube service in the GDPR plugin settings.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Mon, 09 Sep 2019 08:05:00 +0200</pubDate><guid>tag:bastian-kuhn.de,2019-09-09:/en/2019/09/host-und-service-labels/</guid><category>Checkmk</category></item><item><title>New Dynamic Configuration in Check_MK (from 1.6)</title><link>https://bastian-kuhn.de/en/2019/01/neue-dynamische-konfiguration-in-check_mk-ab-1-6/</link><description>&lt;p&gt;The daily builds of the Checkmk Enterprise Edition contain an exciting new feature: dynamic configuration.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Wato item Dynamic Configuration" src="/wp-content/uploads/2019/01/Bildschirmfoto-2019-01-06-um-14.20.36.png" title="Bildschirmfoto 2019-01-06 um 14.20.36.png"&gt;&lt;/p&gt;
&lt;p&gt;With this feature, Checkmk can automatically create new hosts during operation. It is configured via connections. Currently a profile for piggyback data is shipped.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Connector configuration" src="/wp-content/uploads/2019/01/Bildschirmfoto-2019-01-06-um-14.27.22.png" title="Bildschirmfoto 2019-01-06 um 14.27.22.png"&gt;&lt;/p&gt;
&lt;p&gt;Piggyback data is information that third party systems deliver about a host. Inside Checkmk it is automatically assigned to that host.&lt;/p&gt;
&lt;p&gt;The exciting thing about this new feature are the possibilities it opens up. Be it objects from the cloud that automatically end up in the monitoring, or a CMDB that in the future becomes the master for the hosts in the monitoring.&lt;/p&gt;
&lt;p&gt;After creating the connector and activating the changes, you will find the log directly in the overview:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Overview Dynamic Configuration" src="/wp-content/uploads/2019/01/Bildschirmfoto-2019-01-06-um-14.33.18.png" title="Bildschirmfoto 2019-01-06 um 14.33.18.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Kuhn</dc:creator><pubDate>Sun, 06 Jan 2019 14:14:00 +0100</pubDate><guid>tag:bastian-kuhn.de,2019-01-06:/en/2019/01/neue-dynamische-konfiguration-in-check_mk-ab-1-6/</guid><category>Checkmk</category><category>News</category></item></channel></rss>