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
Next revision Both sides next revision
manual:config:notifications:action:operation:macros [2014/09/26 11:27]
sasha Links adapted because of a move operation
manual:config:notifications:action:operation:macros [2016/02/11 08:28]
martins-v adding example of using {trigger.id} macro in notifications
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 40: Line 40:
  
 == Example 4 == == Example 4 ==
 +Message:
 +  http://<​server_ip_or_name>/​zabbix/​events.php?​triggerid={TRIGGER.ID}&​filter_set=1
 +
 +When you receive the message, it will contain a link to all events of the problem trigger.
 +
 +== Example 5 ==
  
 Informing about values from several hosts in a trigger expression. Informing about values from several hosts in a trigger expression.
Line 54: Line 60:
  
   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 60: Line 66:
  
  
-== Example ​==+== Example ​==
  
 Receiving details of both the problem event and recovery event in a [[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: