Hello.
I want to know how to pass a parameter from zabbix to my python script. For example, I have an url in my script, example: "http://127.0.0.1/api/information". I need to pass the macro variable {HOST.CONN} in this ip area of my url, like this: "http://{HOST.CONN}/api/information" and this ip will be replaced by my configured ip host on zabbix. Now my python script is working, it's something like this: api_url = req.get("http://ip-address/api/information") but it's static.
Any ideas?
I want to know how to pass a parameter from zabbix to my python script. For example, I have an url in my script, example: "http://127.0.0.1/api/information". I need to pass the macro variable {HOST.CONN} in this ip area of my url, like this: "http://{HOST.CONN}/api/information" and this ip will be replaced by my configured ip host on zabbix. Now my python script is working, it's something like this: api_url = req.get("http://ip-address/api/information") but it's static.
Any ideas?
Comment