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
Next revision
Previous revision
manual:api:reference:trigger:create [2021/01/27 21:18]
127.0.0.1 external edit
manual:api:reference:trigger:create [2021/05/10 12:30]
miks.kronkalns Fixed trigger expression
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(last(/​Linux server/log[/​var/​log/​system,​Service .* has stopped]))<>​0",​
             "​dependencies":​ [             "​dependencies":​ [
                 {                 {