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
Last revision Both sides next revision
manual:api:reference:trigger:create [2021/01/27 21:18]
127.0.0.1 external edit
manual:api:reference:trigger:create [2021/05/02 19:25]
martins-v new trigger syntax (ZBXNEXT-6451)
Line 39: Line 39:
         {         {
             "​description":​ "​Processor load is too high on {HOST.NAME}",​             "​description":​ "​Processor load is too high on {HOST.NAME}",​
-            "​expression":​ "{Linux server:system.cpu.load[percpu,​avg1].last()}>​5",​+            "​expression":​ "last(/Linux server/system.cpu.load[percpu,​avg1])>​5",​
             "​dependencies":​ [             "​dependencies":​ [
                 {                 {
Line 48: Line 48:
         {         {
             "​description":​ "​Service status",​             "​description":​ "​Service status",​
-            "​expression":​ "{Linux server:log[/​var/​log/​system,​Service .* has stopped].strlen()}<>​0",​+            "​expression":​ "length(/Linux server/log[/​var/​log/​system,​Service .* has stopped])<>​0",​
             "​dependencies":​ [             "​dependencies":​ [
                 {                 {