Ad Widget

Collapse

last() vs last(0) in triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • meetpradeepp
    Junior Member
    • Jul 2013
    • 17

    #1

    last() vs last(0) in triggers

    Hello Experts,

    Recently I was trying to do an import of templates from Zabbix 2.2 to Zabbix 2.0 where it was realized that it was not able to be imported because last() was not supported in 2.0.

    Is there any difference between these and where could I read the details of such additional changes?

    Thanks in advance.

    Pradeep
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Before 2.2 trigger functions must not be empty hence 0 had to be used as placeholder.

    I searched around for quite some time but didn't found a proper statement - I was sure to have read one in the past though.
    All I found was the corresponding announcement: "What's new in Zabbix 2.2.0: Some trigger function parameters can be empty"
    and the underlying feature request ZBX-6883.

    To answer your question: There is no difference between using last(0) and last() in trigger expressions.

    Edit:
    ZBX-9090 requests to update the documentation accordantly.
    Last edited by BDiE8VNy; 30-11-2014, 11:55.

    Comment

    • meetpradeepp
      Junior Member
      • Jul 2013
      • 17

      #3
      Custom API output

      Thank you for the details. They were really assuring that I was not messing around.

      Do you think we will be able to add an option to configuration.export API where we can download the result in pre 2.0 or post option?

      I haven't touched API php files yet so not sure how much of efforts are involved.

      Thank you again for the time.

      Pradeep

      Comment

      Working...