manual:config:notifications:action:operation:macros

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:config:notifications:action:operation:macros [2014/09/25 14:40]
sasha Page moved from 2.2:manual:config:notifications:action:operation:macros to manual:config:notifications:action:operation:macros
manual:config:notifications:action:operation:macros [2014/12/03 07:56]
martins-v removing unnecessary '0' from function parameters in trigger expression examples
Line 5: Line 5:
 In message subjects and message text you can use macros for more efficient problem reporting. In message subjects and message text you can use macros for more efficient problem reporting.
  
-A [[:2.2/manual/appendix/macros/supported_by_location|full list of macros]] supported by Zabbix is available.+A [[manual:appendix:macros:supported_by_location|full list of macros]] supported by Zabbix is available.
  
 === Examples === === Examples ===
Line 21: Line 21:
 == Example 2 == == Example 2 ==
 Message: Message:
-  Processor load is: {zabbix.zabbix.com:​system.cpu.load[,​avg1].last(0)}+  Processor load is: {zabbix.zabbix.com:​system.cpu.load[,​avg1].last()}
  
 When you receive the message, the message will be replaced by something like: When you receive the message, the message will be replaced by something like:
Line 29: Line 29:
 == Example 3 == == Example 3 ==
 Message: Message:
-  Latest value: {{HOST.HOST}:​{ITEM.KEY}.last(0)}+  Latest value: {{HOST.HOST}:​{ITEM.KEY}.last()}
   MAX for 15 minutes: {{HOST.HOST}:​{ITEM.KEY}.max(900)}   MAX for 15 minutes: {{HOST.HOST}:​{ITEM.KEY}.max(900)}
   MIN for 15 minutes: {{HOST.HOST}:​{ITEM.KEY}.min(900)}   MIN for 15 minutes: {{HOST.HOST}:​{ITEM.KEY}.min(900)}
Line 54: Line 54:
  
   Trigger: Processor load is too high on a local host   Trigger: Processor load is too high on a local host
-  Trigger expression: {Myhost:​system.cpu.load[percpu,​avg1].last(0)}>5 | {Myotherhost:​system.cpu.load[percpu,​avg1].last(0)}>5+  Trigger expression: {Myhost:​system.cpu.load[percpu,​avg1].last()}>​5 | {Myotherhost:​system.cpu.load[percpu,​avg1].last()}>​5
   ​   ​
   1. Item value on Myhost: 0.83 (Processor load (1 min average per core))   1. Item value on Myhost: 0.83 (Processor load (1 min average per core))
Line 62: Line 62:
 == Example 5 == == Example 5 ==
  
-Receiving details of both the problem event and recovery event in a [[:2.2/manual/config/notifications/action#​configuring_an_action|recovery]] message:+Receiving details of both the problem event and recovery event in a [[manual:config:notifications:action#​configuring_an_action|recovery]] message:
  
 Message: Message: