Ad Widget

Collapse

Irregular firing of external check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbrijun
    Member
    • Mar 2006
    • 63

    #1

    Irregular firing of external check

    Hello zabbix users,

    I use an external python script to monitor a secure website. Zabbix 1.8.4. The script is scheduled to run every 3 minutes. However, the intervals seem to be irregular. Some are around 3 minutes, some are as short as several seconds. The timeout is set to 30 seconds (the script itself takes around 17s to complete).

    2011.Aug.12 20:56:12 1
    2011.Aug.12 20:56:03 1
    2011.Aug.12 20:53:29 1
    2011.Aug.12 20:53:14 1
    2011.Aug.12 20:50:15 1
    2011.Aug.12 20:50:02 1
    2011.Aug.12 20:47:19 1
    2011.Aug.12 20:47:06 1
    2011.Aug.12 20:44:11 1
    2011.Aug.12 20:44:03 0
    2011.Aug.12 20:41:07 1
    2011.Aug.12 20:40:55 1
    2011.Aug.12 20:38:07 1
    2011.Aug.12 20:38:01 1

    How can I troubleshoot this problem? Thanks!
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    apparently it doesn't always take 17 seconds... also, that means you have increased default server timeout fairly significantly, which can lead to other problems.

    i'd suggest sending values from that script using zabbix_sender, or maybe writing them to temporary files and then picking up with zabbix - the first would involve less steps, but wouldn't give you exact intervals. latter would give exact intervals, although actual value retrieval time would be a bit off.
    Zabbix 3.0 Network Monitoring book

    Comment

    • mbrijun
      Member
      • Mar 2006
      • 63

      #3
      Hi Rich,

      thanks for reply, I will look into the zabbix_sender solution.

      Martynas

      Comment

      • mbrijun
        Member
        • Mar 2006
        • 63

        #4
        a crontab entry that combines my script with the zabbix_sender does the job perfectly.

        i'd suggest sending values from that script using zabbix_sender, or maybe writing them to temporary files and then picking up with zabbix - the first would involve less steps, but wouldn't give you exact intervals.
        why would it not give exact intervals? It runs precisely when crontab tells it to.

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          Originally posted by mbrijun
          why would it not give exact intervals? It runs precisely when crontab tells it to.
          if a script takes 17 seconds to execute, i suspect that time might vary a bit. the value would only be sent when the script finishes, of course, so there might slight drift around those 17 seconds
          Zabbix 3.0 Network Monitoring book

          Comment

          Working...