[ZBX-14928] Check now on active checks and in templates Created: 2018 Jul 26  Updated: 2024 Apr 10  Resolved: 2018 Dec 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 4.0.3rc1, 4.2.0alpha2, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Dmitrijs Lamberts Assignee: Mārtiņš Tālbergs (Inactive)
Resolution: Fixed Votes: 2
Labels: checknow
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
causes ZBX-16675 Check now function fails with error w... Closed
Sub-task
depends on ZBX-14643 "Check now" button is grayed out in L... Closed
Team: Team B
Team: Team B
Sprint: Sprint 44, Sprint 45, Sprint 46, Nov 2018
Story Points: 1

 Description   

Check now is supposed to work only on passive checks.
If item type is changed to an agent (active) - in item configuration page button is greyed out, however from Items list it is possible to select active items and click on Check now with Successful request sent message after that.

Same thing works on Templates.
Configuration -> Templates -> Items -> Mass select -> Check now



 Comments   
Comment by Alexander Vladishev [ 2018 Aug 06 ]

Moved to ZBXNEXT project.

Comment by Dmitrijs Lamberts [ 2018 Aug 27 ]

It is not a feature request.
In 4.0 Check now button is clickable and displays successful request sent even for active checks (which is not supported by design.)

Comment by Oleg Ivanivskyi [ 2018 Sep 04 ]

The "Check now" (mass select) is working for such items like SNMP traps and Zabbix trapper and "Request sent successfully" message is misleading.

I do believe it is bug also.

Comment by Vitaly Zhuravlev [ 2018 Sep 28 ]

There should be no way to apply 'check now' to items that don't support it. Really misleading.

Comment by Alexander Vladishev [ 2018 Sep 28 ]

Thanks for your comments. Moved back to ZBX project.

Comment by Valdis Murzins [ 2018 Oct 15 ]

As discussed, expected solution should be like this:
1) Don't perform Check Now in item list, if at least one unsupported item is selected. Show error message about it.
2) Hide Check Now button in item list, if only templated items are filtered.

Comment by richlv [ 2018 Oct 15 ]

Valdi, thank you so much for listing the planned changes.
Perhaps it would be better to disable the button instead of hiding it? Disappearing UI elements can be very confusing, and the concept of disabling the buttons is well established & working in the entity lists.

Comment by Valdis Murzins [ 2018 Oct 16 ]

Hi richlv,
You may be right, that disappearing button is not the best solution, but disabling it in some cases, while not disabling in others, will also be inconsistent. On the other hand creation of "perfect" disabling rule, will be JS script heavy, and we would like to avoid it, at least in scope of this task.
As a result, we agreed to keep the button for any items, and only have error message, returned by API, when Check Now operation is performed for unsupported items.

Comment by richlv [ 2018 Oct 16 ]

That also sounds like a great solution - it will always be clear what happened or didn't happen.

Comment by Mārtiņš Tālbergs (Inactive) [ 2018 Oct 18 ]

FIXED in development branch svn://svn.zabbix.com/branches/dev/ZBX-14928

Comment by Marc [ 2018 Oct 18 ]

Will this implementation also enable active agent remote execution?
Currently Zabbix agent time-outs (which should be kept low for good reasons) may conflict with remote execution tasks.

Comment by Andris Zeila [ 2018 Oct 18 ]

No, it's unrelated issue.

Comment by Marc [ 2018 Oct 18 ]

My apologies! I haven't found any related ticket. But now, after having searched again before creating a feature request, I found ZBXNEXT-297. Sorry! I should have searched better.

Comment by Mārtiņš Tālbergs (Inactive) [ 2018 Nov 30 ]

Fixed in:

  • 4.0.3rc1 r87446
  • 4.2.0alpha2 (trunk) r87448
Comment by Alexander Vladishev [ 2018 Dec 02 ]

Updated documentation:

Comment by Brett Anspach [ 2019 Jan 09 ]

Can you please explain why this feature isn't supposed to be used for active checks?

Comment by richlv [ 2019 Jan 09 ]

Brett, because it's not implemented for active checks yet.

Comment by Brett Anspach [ 2019 Jan 09 ]

 Ironically, I used this new feature yesterday for the first time, before seeing this in the release notes for v4.0.3 today. FWIW, it does work (v4.0.2).   It is a "agent (active)" type item with a 1 hour interval.  Selected the 'check now' button and they all updated within ~2 minutes.

Comment by Rostislav Palivoda [ 2019 Jan 10 ]

Wow, bspach can you stable reproduce active agent check now with 4.0.2? 

Generated at Sat Apr 20 08:15:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.