Query for Asynchronous execution and cached data

I gone through this Asynchronous execution related document part.
i have one query in it. if we create a 300 folder and put the plugin script inside as shown below, so when check_mk server query to check_mk-agent ,every 1 minute for latest data.if we keep plugin in 300 number folder , so will that received 5 minutes delayed data? or only in case of the plugin call timeout , it refers data from cache?

/usr/lib/check_mk_agent/plugins300/my_foo_plugin

The delay is at least one agent interval, normally 1 minute. If the check runs longer than the interval, the data is simply transmitted in the next following agent run.

12:00 Agent run
      no cachefile found, start new check in background
12:01 Agent run
      print check result from 12:00
12:02 Agent run
      print check result from 12:00
12:03 Agent run
      print check result from 12:00
12:04 Agent run
      print check result from 12:00
12:05 Agent run
      print check result from 12:00
      cache is outdated, start new check in background
12:06 Agent run
      print check result from 12:05
...
3 Likes

thanks Lasoe

what i observe here is that

if any service stopped/started , which is checked in script from 300 folder ,gets detected in dashboard after 5-6 minutes delay time /usr/lib/check_mk_agent/plugins/300/my_foo_plugin .

at the same time if we check the same service from /usr/lib/check_mk_agent/plugins/60/my_foo_plugin , gets reported in dashboard between 1 -2 minutes delay.

If the service was stopped shortly after the last check run, it takes 5 minutes (check interval 600) until the check is started again by the agent in the background witch updates the Data in the cache file.

It then takes another minute until the agent transfers the refreshed cache data to the core and displays it in the GUI.

So in the worst case it takes 6 minutes until the last know state of the servcies is visible in the GUI.

2 Likes

thanks LaSoe for the reply

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.