Zabbix Share

Zabbix templates, modules & more
Log in
Choose social to login:
Login With Google
Login With Github

Nav view search

Navigation

Advanced Search
  • Applications
  • Cloud
  • Databases
  • Network Appliances
  • Network Devices
  • Official Templates
  • Operating Systems
  • Power (UPS)
  • Printers
  • SCADA, IoT, Energy, Home Automation, Industrial monitoring
  • Server Hardware
  • Storage Devices
  • Telephony
  • Unsorted
  • Virtualization
    • Citrix
    • Containers
    • Docker
    • Hyper-V
    • Kubernetes
    • KVM
    • Mesos
    • Proxmox
    • VMware
  • Zabbix
  • Recently Added
  • Recently Updated
  • Popular
  • Most Rated
  • Top Rated
  • Most Reviewed

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

Rating
500
0 vote

Listing Details

Type
Template
Min Zabbix version
3.0.x
Features
  • Low Level Discovery (LLD)
  • Zabbix Agent
  • Custom Script
Created
2016-06-24
Modified
Never
Version 3.0
Download (492 downloads)
1 version, '2016-06-24 09:16' modified
Owner
Sean Nienaber
RecommendReportOwner's listing
All resources created by third parties; use at your own risk
© 2001-2018 by Zabbix SIA. All rights reserved. Trademark Policy · Contact us