Ad Widget

Collapse

How to use Scripts on a Zabbix server to execute a Python .py on a Zabbix Host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • treefox
    Junior Member
    • Nov 2019
    • 6

    #1

    How to use Scripts on a Zabbix server to execute a Python .py on a Zabbix Host

    I made a simple py script to blink a LED on my raspberry pi, but I do not know the correct way to get Python to execute it on the raspberry pi from my Zabbix server. I followed the link (https://www.zabbix.com/documentation...ration/scripts), went to Administration --> Scripts --> "Create script" and in "Create script" under "Commands", I typed:
    Code:
    /home/pi/Desktop/blink.py
    Which is the location of the py script on my host, but I am wondering what I need to type in the "Commands" section to get Python, which is on the Zabbix raspberry pi agent, to execute blink.py. I would like to control Python scripts on my host from my Zabbix server.
Working...