{"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>Zmena ako casto sa ma spustat plugin vo windows.<\/p>\n\n\n\n<p>Nastavenie platne pre check_mk agent 1.6 <\/p>\n\n\n\n<p>Config: C:\\ProgramData\\checkmk\\agent\\chck_mk.user.yml<\/p>\n\n\n\n<p>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>cache_age: 300  &#8211; 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>&#8218;@user\\*.ps1&#8216;<\/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>DOC:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;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=\"MzIwMtA1M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8WZCIWnlSgC0rUa6cCLd1xkezk+P313nfQ\/gcEsXcElFA+k342g1wFQs9SZRo0iUViaSjnK0V8FxFDCXhngTiP066wpdFwS0utVk7ZoxmZk3sXFRWcqCgWML7SGRIdsSFqOCocaYDddX4Q+ehl5hLAK5Rzcj+MF1epzMY6TTOgCwGegIMjj4iiJswcIb7PqujPFfiAmtTcXG8fPT\/\/d8zpWpVvam2IcaxNpbpnBjLXHOVGW8QhGUdGEQiUGNQUuzML1\/Q7buT1sx\/iwmfbb8+Xq5vL152zufe3G799+\/HSebu3ZPkA4Q1m6WSLXbPt\/IvfxfO8faf8D\" \/> \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\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/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 &#8211; urcije cas ako casto sa bude robit spustane daneho pluginu agentom. Option Settings Description pattern &#8218;@user\\*.ps1&#8216; 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}]}}