Skip to content

mehdy-dev/zabbix-cohesity-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Cohesity Back up Solution Integration

Overview

Template Zabbix + API Request using Cohesity Management SDK to Collect the Protection job Status . https://github.com/cohesity/management-sdk-python

https://share.zabbix.com/cat-app/backup/cohesity-backup-solution

Installation

Zabbix Server

  1. Install the Cohesity Management SDK.

pip install cohesity-management-sdk

  1. Verify API Variables :
username = 'Username'
password = 'Password'
domain = 'Domain' #optional
cluster_vip = 'prod-cluster.eng.cohesity.com' #Cluster IP
  1. Run Tests python /usr/local/lib/python2.7/dist-packages/samples/protection_runs_status/protection_run_status.py

    ('06-01-2021 03:00:02', u'xxxxxxxx', xxxxx, u'kSuccess')

    ('06-01-2021 02:00:01', u'xxxxxxxx', xxxxx, u'kSuccess')

    ('06-01-2021 01:00:01', u'xxxxxxxx', xxxxx, u'kSuccess')

    ('05-31-2021 13:00:01', u'xxxxxxxx', xxxxx, u'kSuccess')

  2. so far so good .

  3. copy file version in the project to your python environments. and run the script with env variables.

  4. Chmode the required permissions.

python /usr/local/lib/python2.7/dist-packages/samples/protection_runs_status/protection_run_status_v2.py #JOBNAME Scripts will return Following Values based on the result of job.

status == 'kSuccess'   : "2"
status == 'kRunning'   : "5"
status == 'kWarning'   : "1"
status == 'kCancelled' : "4"
status == 'kError' 	: "0" 
  1. Update zabbix agent conf on the zabbix server

    EnableRemoteCommands=1 UserParameter=uPJD.discovery,python /usr/local/lib/python2.7/dist-packages/samples/protection_runs_status/protection_run_status_v2.py

    UserParameter=uPJD.value[*],python /usr/local/lib/python2.7/dist-packages/samples/protection_runs_status/protection_run_status_v2.py $1

  2. add the template Cohesity to the Zabbix server host.

  3. Zabbix Agent need to be running on the host in which Cohesity SDK is installed.

  4. passing the Space in the name of job will result in error.

  5. Thanks.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages