Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11028

Timeout on externalscripts does not trigger nodata trigger

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 3.0.4
    • Server (S)
    • None
    • Ubuntu 14.04, Zabbix packages from repo.zabbix.com

      We have an external script (written in python) which does an HTTP request to an URL configured in the host macro. At times it could take quite a long time for the endpoint to respond which results in a timeout of the shell script.

      We have already increased the timeout for scripts but loading the content of the URL sometimes exceeds the maximum possible value.

      Since the script times out, it doesn't provide data to Zabbix so I expected the nodata trigger to kick in if no data was being received but this does not appear to be the case.

      What is strange that in "Latest Data" the particular trigger is only visible when you tick the "Show items without data" box.

      The particular trigger:

      {Template Automatic Application Monitoring:aam.py["status", "{HOST.HOST}", "{$AAM_STATUS_ENDPOINT}"].nodata(5m)}=1
      

      I have also tried this variant, but to no avail:

      {Template Automatic Application Monitoring:aam.py["status", "{HOST.HOST}", "{$AAM_STATUS_ENDPOINT}"].nodata(5m)}>0
      

            Unassigned Unassigned
            frank Frank
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: