Sometimes it is necessary to run plugins or local checks asynchronous. Here is a guidance on how to achieve this!
Step-by-step guide
- Required settings
- Set cache age for plugins and local checks
- A cache age limit on plugins and local checks. If set, the output of plugins is cached and reused until this much time has passed.
Setup → Agents → Windows, Linux, Solaris, AIX → Agent rules → Set cache age for plugins and local checks → Edit rule: Set cache age for plugins and local checks
Info
- Set execution mode for plugins and local checks
- Some scripts are slow and can therefore stall the execution of the agent. To remedy this, such scripts may be run asynchronously. With this rule asynchronous execution can be set on a per-script basis.
Setup → Agents → Windows, Linux, Solaris, AIX → Agent rules → Set execution mode for plugins and local checks → Edit rule: Set execution mode for plugins and local checks
Info Note About the pattern: The pattern (wildcards supported) by which to select the affected scripts.
Now my mssql.vbs plugin will run asynchronously with a cache age of 600 seconds!
- Some scripts are slow and can therefore stall the execution of the agent. To remedy this, such scripts may be run asynchronously. With this rule asynchronous execution can be set on a per-script basis.
- Set cache age for plugins and local checks
- Optional settings
- Reloading...aSetupAgentsSet timeouts for plugins and local checks
- A timeout on plugins and local checks keeps those checks from staling the whole agent. If no timeout is configured here, the default is 60 seconds.
- Setup → Agents → Windows, Linux, Solaris, AIX → Agent rules → Set timeouts for plugins and local checks → New rule: Set timeouts for plugins and local checks
- A timeout on plugins and local checks keeps those checks from staling the whole agent. If no timeout is configured here, the default is 60 seconds.
- New rule: Set retry count for plugins and local checks
- qIf set, the plugin may be called repeately - up to this many times or until it finishes successfully.
- Setup → Agents → Windows, Linux, Solaris, AIX → Agent rules → Set retry count for plugins and local checks → New rule: Set retry count for plugins and local checks
- qIf set, the plugin may be called repeately - up to this many times or until it finishes successfully.
- Reloading...aSetupAgentsSet timeouts for plugins and local checks
Note |
---|
About the pattern: The pattern (wildcards supported) by which to select the affected scripts. |
Info |
---|
All options are explained here, if you're not able to use agent bakery: https://docs.checkmk.com/latest/en/agent_windows.html#customizeexecution |
...