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

Greater than should be greater than or equal to in Action documentation

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 6.0 (plan)
    • None
    • Documentation (D)
    • None
    • Sprint 78 (Jul 2021)
    • 1

      On https://www.zabbix.com/documentation/current/manual/api/reference/action/object, the esc_period (both under the Action object and the Action operation) says "Must be greater than 60 seconds." However, 60 seconds appears to work fine, while 59 does not. I think changing the text to either "greater than or equal to 60 seconds", or more simply "at least 60 seconds" would make this more clear.

      I did attempt to track this down in the source:

      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/include/classes/api/services/CAction.php#2717

      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/include/classes/api/services/CAction.php#2838

      The actual check seems to be done here: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/include/validate.inc.php#586

      And since 60 < 60 == false, the check succeeds. 

            martins-v Martins Valkovskis
            chandlerswift Chandler Swift
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: