5.02021-11-21T22:03:34ZTemplatesArcserve UDP VM Backup CheckArcserve UDP VM Backup Check## Overview
**Zabbix-Template Arcserve UDP VM Backups**
This template checks out-of-the-box only VM Backups from Arcserve UDP. This script only counts the number of successful or unsuccessful backup jobs and throws a trigger if necessary.
Installation steps für Arcserve UDP VM Backup checks:
1. Copy the script file "Arcserve\_UDP\_VMCount.ps1" to your Zabbix Agent Script folder on the Arcserve UDP Host.
2. Modify script parameter if necessary (protocol, port, JobID)
3. Test the script manually on the Arcserve UDP Host:
`.\Arcserve_UDP_VMCount.ps1 JobSuccessCount`
4. For debugging of errors you can enable "$Debug=$True" in the script..
5. Check the script for correct results of the VM backup jobs.
6. Add the UserParameter to the zabbix\_agentd.conf:
UserParameter=custom.arcserveudpvm[*],powershell.exe -NoProfile -ExecutionPolicy Bypass -file "C:\Program Files\Zabbix Agent\Scripts\Arcserve\_UDP\_VMCount.ps1" $1 $2 $3 $4 $5
7. Import des Zabbix Template "Template\_Arcserve UDP VM Backup Check.xml" to the Zabbix Server.
8. Assign the template to the Zabbix host for ARcserve UDP.
9. Modify the macro "{$ARCSERVE\_DOMAIN}", "{$ARCSERVE\_USER}" and "{$ARCSERVE\_PASS} with the read only user login for Arcserve UDP.
10. Check the latest value of application "ArcserveUDP Jobs".
## Author
R.P.Wimmer
TemplatesArcserveUDP EventlogArcserveUDP JobsArcserveUDP Services- Arcserve UDP JobCancelledCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobCancelledCount",{$ARCSERVE_HOST}]5mArcserve UDP JobCancelledCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup cancelledWARNINGArcserve VM Backup VM Backup cancelled count.
- Arcserve UDP JobFailedCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobFailedCount",{$ARCSERVE_HOST}]5mArcserve UDP JobFailedCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup failedHIGHArcserve VM Backup FAILED count.
- Arcserve UDP JobIdleCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobIdleCount",{$ARCSERVE_HOST}]5mArcserve UDP JobIdleCount from VM BackupsArcserveUDP Jobs
- Arcserve UDP JobIncompleteCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobIncompleteCount",{$ARCSERVE_HOST}]5mArcserve UDP JobIncompleteCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup incompleteAVERAGEArcserve VM Backup INCOMPLETE count.
- Arcserve UDP JobInProgressCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobInProgressCount",{$ARCSERVE_HOST}]5mArcserve UDP JobInProgressCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup activeINFOArcserve VM Backup running.
- Arcserve UDP JobMissedCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobMissedCount",{$ARCSERVE_HOST}]5mArcserve UDP JobMissedCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup missedAVERAGEArcserve VM Backup MISSED count.Arcserver UDP all VM Backup missed{Arcserve UDP VM Backup Check:custom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobMissedCount",{$ARCSERVE_HOST}].last()}>0 and {Arcserve UDP VM Backup Check:custom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobSuccessCount",{$ARCSERVE_HOST}].last()}=0
- Arcserve UDP JobOtherCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobOtherCount",{$ARCSERVE_HOST}]5mArcserve UDP JobOtherCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup otherINFOArcserve VM Backup VM Backup other count.
- Arcserve UDP JobSuccessCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobSuccessCount",{$ARCSERVE_HOST}]5mArcserve UDP JobSuccessCount from VM BackupsArcserveUDP Jobs{last()}>0Arcserver UDP VM Backup OKArcserve VM Backup OK count.
- Arcserve UDP JobWaitingCountcustom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobWaitingCount",{$ARCSERVE_HOST}]5mArcserve UDP JobWaitingCount from VM BackupsArcserveUDP Jobs
- ArcserveBackup: Arcserve UDP-Identitätsdienstservice_state[ArcserveUDPIS]2m7dArcserveUDP ServicesWindows service state
- ArcserveBackup: Arcserve UDP-Verwaltungsport-Freigabedienstservice_state[ArcserveUDPPS]2m7dArcserveUDP ServicesWindows service state{last(0)}<>0 and {last(0)}<>255{HOST.NAME} - ArcserveBackup - UDP-Verwaltungsport-Freigabediensthttps://{$ZABBIX_DNS}/zabbix/latest.php?fullscreen=0&hostids%5B%5D={HOST.ID1}&application=ArcserveBackup&select=&filter_set=FilterAVERAGEThe Arcserve UDP-Verwaltungsport-Freigabedienst service is not running on this server.
- ArcserveBackup: Arcserve Event Log Watchservice_state[ASLogWatch]2m7dArcserveUDP ServicesWindows service state{last(0)}<>0 and {last(0)}<>255{HOST.NAME} - ArcserveBackup - Event Log Watchhttps://{$ZABBIX_DNS}/zabbix/latest.php?fullscreen=0&hostids%5B%5D={HOST.ID1}&application=ArcserveBackup&select=&filter_set=FilterAVERAGEThen Arcserve Event Log Watch service is not running on this server.
- ArcserveBackup: Arcserve UDP-Verwaltungsdienstservice_state[CAARCAppSvc]2m7dArcserveUDP ServicesWindows service state{last(0)}<>0 and {last(0)}<>255{HOST.NAME} - ArcserveBackup - UDP-Verwaltungsdiensthttps://{$ZABBIX_DNS}/zabbix/latest.php?fullscreen=0&hostids%5B%5D={HOST.ID1}&application=ArcserveBackup&select=&filter_set=FilterAVERAGEThe Arcserve UDP-Verwaltungsdienst service is not running on this server.
- ArcserveBackup: Arcserve UDP-Aktualisierungsdienstservice_state[CAARCUpdateSvc]2m7dArcserveUDP ServicesWindows service state
- ArcserveBackup: Arcserve UDP-Agent-Dienstservice_state[CASAD2DWebSvc]2m7dArcserveUDP ServicesWindows service state{last(0)}<>0 and {last(0)}<>255{HOST.NAME} - ArcserveBackup - UDP-Agent-Diensthttps://{$ZABBIX_DNS}/zabbix/latest.php?fullscreen=0&hostids%5B%5D={HOST.ID1}&application=ArcserveBackup&select=&filter_set=FilterAVERAGEThe Arcserve UDP-Agent-Dienst service is not running on this server.
- ArcserveBackup: Arcserve UDP-RPS-Port-Freigabedienstservice_state[CASARPSWebSvc]2m7dArcserveUDP ServicesWindows service state{last(0)}<>0 and {last(0)}<>255{HOST.NAME} - ArcserveBackup - UDP-RPS-Port-Freigabediensthttps://{$ZABBIX_DNS}/zabbix/latest.php?fullscreen=0&hostids%5B%5D={HOST.ID1}&application=ArcserveBackup&select=&filter_set=FilterAVERAGEThe Arcserve UDP-RPS-Port-Freigabedienst service is not running on this server.
- ArcserveBackup: Arcserve UDP-RPS-Datenspeicherdienstservice_state[CASDatastoreSvc]2m7dArcserveUDP ServicesWindows service state{last(0)}<>0 and {last(0)}<>255{HOST.NAME} - ArcserveBackup - UDP-RPS-Datenspeicherdiensthttps://{$ZABBIX_DNS}/zabbix/latest.php?fullscreen=0&hostids%5B%5D={HOST.ID1}&application=ArcserveBackup&select=&filter_set=FilterAVERAGEThe Arcserve UDP-RPS-Datenspeicherdienst service is not running on this server.
{$ARCSERVE_DOMAIN}{$ARCSERVE_HOST}{$ARCSERVE_PASS}{$ARCSERVE_USER}{Arcserve UDP VM Backup Check:custom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobMissedCount",{$ARCSERVE_HOST}].last()}>0 and {Arcserve UDP VM Backup Check:custom.arcserveudpvm[{$ARCSERVE_DOMAIN},{$ARCSERVE_USER},{$ARCSERVE_PASS},"JobSuccessCount",{$ARCSERVE_HOST}].last()}=0Arcserver UDP all VM Backup missedHIGHArcserve UDP all VM Backup are MISSED count.Windows service state0Running1Paused2Start pending3Pause pending4Continue pending5Stop pending6Stopped7Unknown255No such service