{"id":1384,"date":"2020-07-15T17:31:19","date_gmt":"2020-07-15T15:31:19","guid":{"rendered":"https:\/\/blog.mhasin.eu\/?p=1384"},"modified":"2020-07-15T17:31:36","modified_gmt":"2020-07-15T15:31:36","slug":"check_mk-windows-agent-plugin-run-frequency","status":"publish","type":"post","link":"https:\/\/blog.mhasin.eu\/?p=1384","title":{"rendered":"Check_mk windows agent plugin run frequency"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Zmena ako casto sa ma spustat plugin vo windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nastavenie platne pre check_mk agent 1.6 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Config: C:\\ProgramData\\checkmk\\agent\\chck_mk.user.yml<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Priklad pre veeam:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plugins:\n    enabled: yes\n    execution:\n        - pattern: $CUSTOM_PLUGINS_PATH$\\veeam_backup_status.ps1\n          async: yes\n          timeout: 120\n          cache_age: 300\n          retry_count: 2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">cache_age: 300  \u2013 urcije cas ako casto sa bude robit spustane daneho pluginu agentom.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Option<\/th><th>Settings<\/th><th>Description<\/th><\/tr><tr><td>pattern<\/td><td>\u201a@user\\*.ps1\u2018<\/td><td>Sets the ranges of the following options. Here you can also work with wildcards. The options below will then apply to all plug-ins that match the expression. It is determined upfront whether the plug-in should be executed directly from the installation directory or from the data directory.<\/td><\/tr><tr><td>run<\/td><td><strong>yes<\/strong>\/no<\/td><td>Determines whether the execution of a plug-in should be suppressed.<\/td><\/tr><tr><td>async<\/td><td><strong>yes<\/strong>\/no<\/td><td>Executes a plug-in asynchronously and stores the data in a file. With synchronous execution, the output is passed directly to the agent.<\/td><\/tr><tr><td>timeout<\/td><td><strong>60<\/strong><\/td><td>Sets the maximum execution time \u2013 if this is exceeded the plug-in is terminated, even if no output has been produced. The default value orients itself to the agent\u2019s default query interval.<\/td><\/tr><tr><td>cache_age<\/td><td><strong>60<\/strong><\/td><td>Specifies in seconds how long an output is valid. If async is activated, a cache of ??? seconds is automatically created.<\/td><\/tr><tr><td>retry_count<\/td><td><strong>1<\/strong><\/td><td>The number of times a plug-in can fail before discarding its output from the cache.<\/td><\/tr><tr><td>description<\/td><td>\u2018Text\u2019<\/td><td>Here you can enter a free text\/comment to be added to the logs.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">DOC:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:\/\/checkmk.com\/cms_agent_windows.html<\/code><\/pre>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLQUA\" \/><input type=\"hidden\" name=\"blogName\" value=\"c\/LxdwcA\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzS2MAEA\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"c85ITc6Oz81WKM\/MS8kvL1ZITE\/NK1EoyClNz8xTKCrNU0grSi0sTc1LrgQA\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLdW3L7A1NLYwAQA=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"y00syfcwNAIA\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwMtA1MNc1NFUwNLcyMLcytAQA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"jVbbbttGEH33VwycIA9FLFlu4ASyKrewi8ZAGxuwgwKFAWG1OxS3IrnsXmTrzf\/Ql+b3\/CU9u6QpqhYKERBX3J3rmTNDHkxqkoVw7ofDh\/poXhi5PKqFFQsr6vxw+kfJlSCxNCSF84acoFKQq4PzwlNdhIWuaGXoQVfKPLjBZFhPD3D9v9UvsCVWXGmGCeErLJZJ5iyXs3JJYsGVp9HglPYzd2GqTC\/GdDG+v7EGm+Wl8OI+2SuX98kcnpLxQXBsB+uy2M\/0jdXLQqgU34pZlOONXgz5P5rSKD6cTuIybcBx4wPCBRTnBasxrdk1G48sg9emas7jdUS18J5tNaa3F19v765\/m938+vWXqy+3s5uf7j6\/vU8BzOZCLkM9iwUIblC7UWeASLh1JTdOmsvrkk3wYxqdHPe2pQBAM4Azpu+P+weWvV3PpAkVdE4mw5QN0ra8B2DbVonevfl0MhqdUbBS\/8mRRdtsmgfFZM1c+5ZVIIPCLTctu0JDB1NuuIVihx3g+wgx0E8rlrlRaywWv3x6XUewJ0P8jY+37L2uFq7buGQnre4JDZNi\/KlpWxfsqfSckvp09mPk0v13sQZp5\/Ssk4B9Rz5HaqJasCOTpafMFIVBryzIJFduQJ8ZqaxNACQVicKhl4xdoqF8jluhpLAKYnfQbnVozjASD4toFFp1XawJeArsRNSOwDscoUNL4WWeXPMjCugcDAzoypN2pBhJlbpiRaHOrEHPPeQMWZsUWkPkchMKBactZyGutGXp4RNaZRKGQw\/vIgbYHhu7JmM3Igo9uTkaNFD1UbZhg\/DEeQS0mILJk2H7f1iZ7vzyJXa3FXPXVRFwsSMFF+oEA6sdAaTu2TuEnxs0XM9PMpBD0gQHdESlCDSHvw0AUYoyXfCAfo8l7mlson+f5NGzdUiVqkWMeAM7Sh0FUmPsyKNt+FeZnB53ibwmaikedRnKHoTRDD0\/\/U06khdh6BiiZFaIpc8Q7DfVECDHe2JM9qhTmZcUchFJi93aGhUkwE98VpyJUHhaiSIgXauRDrx4x0W2lePz0zfXSf8VGMzSFVxCcUf63QjaD4Capc40ahSJwtJUylGO\/ioghhL2ygB3GqFfZU2h45aQXq+atEUzUSPzzs\/PO1NRKGB8oTUkOmRN0nJU2NUAm8H7KvTR68gjhFUo5+B+HC+oVp+LcZxkQhcAPgMFQR4XR0mcPUD4JauuO1PsO2JSW3Oxcfz89M8dP8aqdFtbU4xjbSLNLTOY8ejxCinL+E5HUdGEQiUGNQUuzML1\/Q7buT1sx\/iwmfZ7vHoury\/2fzvn3tdu\/O7Nh49n6dZ+LAwQ6VCWbpZ4N3v5rMl9\/GDovwj\/BQ==\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\" rel=\"nofollow\"><img src=\"https:\/\/blog.mhasin.eu\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/pdf_32x32.png\" alt=\"\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">\u00a0\u00a0<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">\u00a0\u00a0<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"Zmena ako casto sa ma spustat plugin vo windows. Nastavenie platne pre check_mk agent 1.6 Config: C:\\ProgramData\\checkmk\\agent\\chck_mk.user.yml Priklad pre veeam: cache_age: 300 \u2013 urcije cas ako casto sa bude robit spustane daneho pluginu agentom. Option Settings Description pattern \u201a@user\\*.ps1\u2018 Sets the ranges of the following options. Here you can also work with wildcards. The options below will then apply to all plug-ins that match the expression. It is determined upfront whether the plug-in should be&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"arc_restricted_post":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1384","post","type-post","status-publish","format-standard","hentry","category-monitoring"],"_links":{"self":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1384"}],"version-history":[{"count":1,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1384\/revisions"}],"predecessor-version":[{"id":1385,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1384\/revisions\/1385"}],"wp:attachment":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}