I made a patch providing the variable {ITEM.NAME}.
It contains the description of the triggering item. Example:
Item:
- Description: Performance SMTP-Server (0=offline)
- Key: smtp_perf<25>
Trigger:
- Name: "Keine Verbindung zum Mailserver @ {HOSTNAME} möglich"
- Expression: {tmpl_ux:smtp_perf<25>.avg(120)}=0
Action message:
received eMail:
Patched file: src/zabbix_server/expression.c
Server version: 1.1.3
diff command: diff src/zabbix_server/expression.c.orig src/zabbix_server/expression.c > expression.c.diff
I tested this patch with ./configure, make, make install and it works for me.
WARNING: This is the first time i modified parts of foreign C source and created a patch. So please let me know if there is something that i did wrong!
The attached file is a diff, so just rename it to "expression.c.diff" (remove ".txt")
Maybe, if this patch is ok, i could create more like this...
It contains the description of the triggering item. Example:
Item:
- Description: Performance SMTP-Server (0=offline)
- Key: smtp_perf<25>
Trigger:
- Name: "Keine Verbindung zum Mailserver @ {HOSTNAME} möglich"
- Expression: {tmpl_ux:smtp_perf<25>.avg(120)}=0
Action message:
Code:
Betroffenes System: {HOSTNAME} (IP = {IPADDRESS})
Komponente: {ITEM.NAME} ({TRIGGER.KEY}) = {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
=============================================================
Es erfolgt eine Entwarnung, sobald das Problem behoben ist...
Code:
Betroffenes System: mail-2.bfk (IP = *UNKNOWN*) Komponente: Performance SMTP-Server (0=offline) (smtp_perf<25>) = 0 ms ============================================================= Es erfolgt eine Entwarnung, sobald das Problem behoben ist...
Server version: 1.1.3
diff command: diff src/zabbix_server/expression.c.orig src/zabbix_server/expression.c > expression.c.diff
I tested this patch with ./configure, make, make install and it works for me.
WARNING: This is the first time i modified parts of foreign C source and created a patch. So please let me know if there is something that i did wrong!
The attached file is a diff, so just rename it to "expression.c.diff" (remove ".txt")
Maybe, if this patch is ok, i could create more like this...


*thumbs up*
Comment