Ad Widget

Collapse

RefreshActiveChecks in zabbix-agent.x86_64 4.0.0-1.1rc3.el7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stayler
    Junior Member
    • Nov 2019
    • 8

    #1

    RefreshActiveChecks in zabbix-agent.x86_64 4.0.0-1.1rc3.el7

    Hi everyone.

    I like to accumulate my data by external scripts and Trapper items.
    So I have those scripts and some time they could not finished in Timeout time. So I have alerts in log:
    'active check "<NAME>" is not supported: Timeout while executing a shell script.'
    , and this is no problem.
    What I came across:
    I set RefreshActiveChecks=60 , but it`s not working. Active check refreshes in 10 min.

    Whats the problem?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    After changing the config file, did you restart the agent?

    Comment

    • Stayler
      Junior Member
      • Nov 2019
      • 8

      #3
      Originally posted by splitek
      Agent commands/scripts must end in time set in timeout option:
      Timeout no 1-30 3 Spend no more than Timeout seconds on processing.
      If your script take more than 30s to end use zabbix_sender.

      https://www.zabbix.com/documentation.../zabbix_agentd
      RefreshActiveChecks no 60-3600 120 How often list of active checks is refreshed, in seconds.
      Note that after failing to refresh active checks the next refresh will be attempted after 60 seconds.
      list of active checks - is a list of items for monitoring

      Probably you thinking about item refresh (Update interval in Zabbix item configuration).

      My scheme:
      I have 1 active item, 1m refresh, which run bash script. Bash script update all(more then 100) items by Sender (trapper items) and return just Numeric identification of execution: 0 - done; 1- have errors;
      And of course i have triggers on .last()=1 and .nodata(3m)=1

      So, my problem is when script execute more then timeout i receive .nodata alerts for 7 min. And it`s mean, that new active check run after 10 min since failure.
      Am i right understand, that RefreshActiveChecks - it`s only time to update list of checks from zabbix server? If yes, what is configuration parameter should i change in my case?


      Originally posted by dimir
      After changing the config file, did you restart the agent?
      Of course
      Last edited by Stayler; 12-11-2019, 18:51.

      Comment

      Working...