Hi, forum.
I'm trying to create a trigger for our backup system.
Currently, I have Zabbix look at the Windows event log and have made three separate items for this:
I was hoping to create a trigger that would fire on ANY value from the error item and only recover when a Successful item was found with the same name.
Currently I have this as my trigger:
Is anyone that can help me here?
Sorry for obfuscating the software name, cannot share this.
If we can make this work I will submit all the working code along with the other items for this software
I'm trying to create a trigger for our backup system.
Currently, I have Zabbix look at the Windows event log and have made three separate items for this:
- Name - Key
- BackupSoftwareName Image Successful - eventlog[BackupSoftwareName/Operational,,Information,,812]
- BackupSoftwareName Image Start- eventlog[BackupSoftwareName/Operational,,Information,,801]
- BackupSoftwareName Errors - eventlog[BackupSoftwareName/Operational,,Information,,813]
I was hoping to create a trigger that would fire on ANY value from the error item and only recover when a Successful item was found with the same name.
Currently I have this as my trigger:
- Name - Expression
- Backup failed on {ITEM.LASTVALUE}
- Problem: {BackupSoftwareName:eventlog[BackupSoftwareName/Operational,,Error,,813].str(*)}=1
- Recovery: {BackupSoftwareName:eventlog[BackupSoftwareName/Operational,,Information,,812].str({ITEM.LASTVALUE})}=0
Is anyone that can help me here?
Sorry for obfuscating the software name, cannot share this.
If we can make this work I will submit all the working code along with the other items for this software
Comment