Zabbix_sender over proxy (Python)

Development | Software Testing
Description
Zabbix_sender over proxy (Python)
Attachments
No attachments
Jobs
Description
#!/usr/bin/env python
# version 07.09.2019

# import libs
import os

zbx_proxy='' # zabbix proxy ip / hostname
zbx_sender=("/usr/bin/zabbix_sender") # zabbix sender path
agent_config=("/etc/zabbix/zabbix_agentd.conf") # zabbix agent config path
zbx_host='' # zabbix host
key='' # key
value='' # value

# zabbix sender command
zabbix_sender=zbx_sender + ' -z' + zbx_proxy + ' -c ' + agent_config + ' -s ' + zbx_host + ' -k ' + key + ' -o ' + value 

#run
os.system(zabbix_sender)

on September 07th, 2019 (3:44 pm)
All coments
This job has not been commented yet.
You must sign in to comment!! LOGIN
We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our use of cookies. Find out more Accept