Ad Widget

Collapse

Count function - Need clarification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #1

    Count function - Need clarification


    Does count(5m) mean just count the number of values instead of counting the values itself? So if there is nodata for 2 minutes, then count(5m) value would be 3 correct? And if there is data for 5 minutes then count(5m) would value would be 5 correct?

    I know that count(5m,1) means count the number of values equal to "1" in 5 minutes.

    Code:
    {Template App Zabbix Agent:agent.ping.count(5m)} # Sample trigger.. I'm not trying to use count on ping but rather a custom item.
    I'm trying to use this with a nodata(5m) trigger because for some reason nodata(5m)=0 triggers falsely so I want to include count(5m) and so we know there is data for the last 5 minutes.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Unfortunately count is not a time based function as you would have expected and will not trigger if there are no values for the last 5 minutes as nodata does. Count needs values to be coming in to get a new evaluation.
    See https://support.zabbix.com/browse/ZBXNEXT-1604 for more details. There is also a dirty workaround if that is applicable in your case.

    Comment

    Working...