5.02021-11-21T21:45:41ZTemplatesVEEAM SMTP trapperVEEAM SMTP trapper## Overview
This Veeam Backup & Replication use email and not Powershell snippet. It is as efficient (or more) as other method of integration with Zabbix and it requires a lot less ressources. It monitors even Backup Database backup (which others do not).
Using a specific script it can be applied to Free Agents as well.
It uses zbxsmtptrap (on an idea from here : <https://www.zabbix.com/forum/showthread.php?p=186838>)
<https://github.com/sibiodev/zbxsmtptrap>
NB: a bug was recently corrected about Veeam sending multiline subjects - not really nice... but it can happen if you have long hostnames and happen to be sudenly out of support (which adds some garbage at the begining of the title)
Give it a try!
PS: to use this script with Veeam Free Agents without a VBR server (if you use a VBR server with a Free Agent, then you do not need this script because VBR will report by email to you), you'll need this small script to send the email :
<https://github.com/sibiodev/veeamrun>
## Author
Raynald de Lahondès
TemplatesVEEAM Backup & Recovery job(s)Job DiscoveryTRAPsmtp.trap.subject.discovery[veeamjob]0Job {#VEEAMJOB} messageTRAPsmtp.trap.subject.match.body[veeamjob,{#VEEAMJOB}]00TEXTVEEAM Backup & Recovery job(s)Job {#VEEAMJOB} statusTRAPsmtp.trap.subject.match[veeamjob,{#VEEAMJOB},status]00TEXTVEEAM Backup & Recovery job(s)POST{str(Failed)}=1Failure of job {#VEEAMJOB}HIGH{nodata({$BACKUP_PERIODICITY:"{#VEEAMJOB}"})}=1Job {#VEEAMJOB} did not occur last {$BACKUP_PERIODICITY:"{#VEEAMJOB}"}HIGH{str(Warning)}=1Warning on job {#VEEAMJOB}WARNINGJob {#VEEAMJOB} did not occur last {$BACKUP_PERIODICITY:"{#VEEAMJOB}"}{VEEAM SMTP trapper:smtp.trap.subject.match[veeamjob,{#VEEAMJOB},status].nodata({$BACKUP_PERIODICITY:"{#VEEAMJOB}"})}=1POST{$BACKUP_PERIODICITY}52h