[ZBXNEXT-1374] count function to support an item in the pattern parameter Created: 2012 Aug 24  Updated: 2012 Oct 10

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 2.0.2
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Matteo Cerutti Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: triggerfunctions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It would be nice if the count function could understand in the pattern parameter an item. It can already take a macro as a parameter, however sometimes that it not enough if one for example would want to create a trigger for the system cpu load based on the available number of cpus on a system.

M



 Comments   
Comment by richlv [ 2012 Aug 24 ]

could you please provide an example of how that would look like ?
also, a trigger that takes into account count of cpus probably can be written already - load/cpu.num or so

Comment by Matteo Cerutti [ 2012 Aug 24 ]

(

{TRIGGER.VALUE}=0 & {Template-Linux_Generic:system.cpu.load[,avg1].count(#3,({Template-Linux_Generic:system.cpu.num.last(0)}+2),"gt")}=3 | ({TRIGGER.VALUE}

=1 & {Template-Linux_Generic:system.cpu.load[,avg1].count(#3,(

{Template-Linux_Generic:system.cpu.num.last(0)}

+2),"gt")}>0

Comment by Oleksii Zagorskyi [ 2012 Aug 27 ]

I'd said it looks like a request for support a trigger macro as a parameter for trigger function
AND
support of calculation for trigger parameters.
Looks complicated (especially if remember about templates )

http://www.zabbix.com/documentation/2.0/manual/appendix/macros/supported_by_location

Generated at Thu Mar 28 12:26:16 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.