Hi,
All traps are forwarding to Zabbix via zabbix_sender :
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k zabbixTrapKey -o 'params=[1]:"click.serviceStatus.ComponentStatusEvent", [2]:"host10", [3]:"NA", [4]:"Component: EventFileWrit", [5]:"EventFileWriter", [6]:"there is a problem with", [7]:"click.logging.ContextLog", [8]:"EventFileWriter",[9]:"ERROR",[10]:"public", [11]:.1.3.6.1.4.1.12345.60'
Trigger is :
({Template SNMP:zabbixTrapKey.regexp(\[9\]:"ERROR".*60)}=1)|({TRIGGER.VALUE} = 1 & {Template SNMP:zabbixTrapKey.regexp(\[9\]:"OK".*60)}#1)
The alert in colsole should be - [6] + [8] + on {HOST.NAME} :
"there is a problem with EventFileWriter on host10"
As I understand, alert in colsole - it's trigger name
How can I add to trigger name only part of value? (TRIGGER.VALUE - will add whole string but I need only part of it )
Thanks!
All traps are forwarding to Zabbix via zabbix_sender :
zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k zabbixTrapKey -o 'params=[1]:"click.serviceStatus.ComponentStatusEvent", [2]:"host10", [3]:"NA", [4]:"Component: EventFileWrit", [5]:"EventFileWriter", [6]:"there is a problem with", [7]:"click.logging.ContextLog", [8]:"EventFileWriter",[9]:"ERROR",[10]:"public", [11]:.1.3.6.1.4.1.12345.60'
Trigger is :
({Template SNMP:zabbixTrapKey.regexp(\[9\]:"ERROR".*60)}=1)|({TRIGGER.VALUE} = 1 & {Template SNMP:zabbixTrapKey.regexp(\[9\]:"OK".*60)}#1)
The alert in colsole should be - [6] + [8] + on {HOST.NAME} :
"there is a problem with EventFileWriter on host10"
As I understand, alert in colsole - it's trigger name
How can I add to trigger name only part of value? (TRIGGER.VALUE - will add whole string but I need only part of it )
Thanks!