[ZBX-13361] Failure to set item check interval to anything larger than 1d Created: 2018 Jan 18  Updated: 2024 Apr 10  Resolved: 2018 May 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 3.4.6
Fix Version/s: 3.4.10rc1, 4.0.0alpha7, 4.0 (plan)

Type: Problem report Priority: Minor
Reporter: Herbert Buurman Assignee: Miks Kronkalns
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team D
Sprint: Sprint 28, Sprint 29, Sprint 30, Sprint 31, Sprint 32, Sprint 33, Sprint 34
Story Points: 0.5

 Description   

When configuring an existing item to have an update interval of n days with n >1 using the string '2d' (for example), the update fails with the error: "Item will not be refreshed. Please enter a correct update interval."

This happens when reconfiguring the item using the webinterface, but also when reconfiguring the item using the api.

I would have expected the error message to either give details as to what was incorrect about the interval (since the time modifier 'd' is supported according to the docs), or Zabbix to not give an error at all and update the item to the desired interval.



 Comments   
Comment by Aleksejs Petrovs [ 2018 Jan 18 ]

Hello Herbert,

The maximum value is 86400 seconds = 24 hrs = 1d. If you want more specific scheduling, you can use Scheduled/Flexible intervals.

But I can confirm that error contains no information about the correct interval.

Regards,
Aleksejs!

Comment by Glebs Ivanovskis (Inactive) [ 2018 Jan 20 ]

The maximum value is 86400 seconds

How do you know it? https://www.zabbix.com/documentation/3.4/manual/config/items/item#configuration does not say what the maximum allowed update interval is and neither does https://www.zabbix.com/documentation/3.4/manual/config/items/item/custom_intervals

Comment by Nikita Filatovs (Inactive) [ 2018 Mar 19 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13361

Comment by Nikita Filatovs (Inactive) [ 2018 Mar 19 ]

(1) [F] Translation string changes
Strings added:

  • Item will not be refreshed. Specified update interval requires having at least one either flexible or scheduling interval.
  • Item will not be refreshed. Update interval should be between 1s and 1d. Or you can use Scheduled/Flexible intervals.
  • Item will not be refreshed. Update interval should be between 1s and 1d. Also Scheduled/Flexible intervals can be used.

Miks.Kronkalns Translation string improved in r80395.
CLOSED

Comment by Miks Kronkalns [ 2018 May 03 ]

(2) [D] Updated API manual (added sentence "Maximum allowed update interval is 86400 seconds (1 day)."):

  1. 2.2 https://www.zabbix.com/documentation/2.2/manual/config/items/item?do=diff&rev2%5B0%5D=1474616668&rev2%5B1%5D=1525342168&difftype=sidebyside
  2. 3.0 https://www.zabbix.com/documentation/3.0/manual/config/items/item?do=diff&rev2%5B0%5D=1518171882&rev2%5B1%5D=1525341999&difftype=sidebyside
  3. 3.2 https://www.zabbix.com/documentation/3.2/manual/config/items/item?do=diff&rev2%5B0%5D=1518171845&rev2%5B1%5D=1525342262&difftype=sidebyside
  4. 3.4 https://www.zabbix.com/documentation/3.4/manual/config/items/item?do=diff&rev2%5B0%5D=1522760136&rev2%5B1%5D=1525340863&difftype=sidebyside
  5. 4.0 https://www.zabbix.com/documentation/4.0/manual/config/items/item?do=diff&rev2%5B0%5D=1522760066&rev2%5B1%5D=1525340943&difftype=sidebyside

RESOLVED

vmurzins CLOSED

Generated at Wed May 08 17:55:48 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.