Solution: Zabbix_sender over proxy (Python)

Development | Software Testing
Author
Description
Zabbix_sender over proxy (Python)
Attachments
No attachments.
Solutions
#!/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)
What masters said
You must sign in to comment!!
All comments
This solution has not been commented yet.