Zerto Replication VPG monitoring for vSphere
Hi,
I built this script and template for Zerto Virtual Replication monitoring and wanted to share it given the benefit I've gained from the Zabbix community.
I discovers all Zerto virtual protection groups (VPGs) and creates items for various aspects and a few associated triggers.
Please note: I'm no PowerShell expert as is obvious in the script code, happy to have someone with more skill rework it.
I've only tested this on v3.0.2 but suspect it will work on previous versions of Zabbix.
Installation
- Install the Zerto Replication Manage PowShell cmdlets (requires PowerShell v4)
- Add the script to the Windows server running the ZRM webclient in a path accessible by the agent
- Update the script with your vCenter details (I know this could be passed as host macros but just didn't get round to it)
- Setup the UserParameter in the Zabbix Agent to run the script:
UserParameter=zerto[*],%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -nologo -command "& C:\Zabbix\ZertoMonitoringAPI.ps1" "$1" "$2"
- Create a Value map called "ZertoStatus" with the following maps:
- 0 ⇒ Initializing
- 1 ⇒ MeetingSLA
- 2 ⇒ NotMeetingSLA
- 3 ⇒ RpoNotMeetingSLA
- 4 ⇒ HistoryNotMeetingSLA
- 5 ⇒ FailingOver
- 6 ⇒ Moving
- 7 ⇒ Deleting
- 8 ⇒ Recovered
- Install the template and add it to the ZRM host
Tips and tricks
- The script takes a bit of time to run, it's worth increasing your timeouts on the Zabbix server or proxy to at least 10 seconds
- If you run the script with the "RawVPGData"parameter, it displays the raw unfiltered data coming back from the API, useful if you want to add additional items relating to VPGs
- e.g. C:\Zabbix\ZertoMonitoringAPI.ps1 RawVPGData
S
Listing Details
Type
Min Zabbix version
3.0.x
Created
Modified
Never
Version 3.0
Download (492 downloads)
1 version, '2016-06-24 09:16' modified
1 version, '2016-06-24 09:16' modified
Owner