manual:api:reference:trigger:create

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:api:reference:trigger:create [2021/05/02 19:25]
martins-v new trigger syntax (ZBXNEXT-6451)
manual:api:reference:trigger:create [2021/05/10 12:30] (current)
miks.kronkalns Fixed trigger expression
Line 48: Line 48:
         {         {
             "​description":​ "​Service status",​             "​description":​ "​Service status",​
-            "​expression":​ "​length(/​Linux server/​log[/​var/​log/​system,​Service .* has stopped])<>​0",​+            "​expression":​ "​length(last(/Linux server/​log[/​var/​log/​system,​Service .* has stopped]))<>​0",​
             "​dependencies":​ [             "​dependencies":​ [
                 {                 {