I am having issues on my Zabbix Server with running remote Python scripts on a Rasp Pi 5 Running Trixie 64 Bit. I need to run DHT22 temp logs using Adafruit libraries running in a VENV environment. I can run the scripts fine locally on the PI but when I trigger from zabbix it keeps reporting Timeout while executing a shell script.
Below is my Item Key command
system.run[sudo "/dht22/env/bin/python" "/dht22/humidity.py"]
I thought it it was a permission issue but root has rwx permissions
I am sure there is a simple way to get Zabbix server to run VENV python scripts but I just can't figure out what I am doing wrong.
zabbix_agentd.conf includes AllowKey=system.run[*]
visudo includes
# user privilege specification
root ALL=(ALL:ALL) ALL
pi ALL=(ALL:ALL) ALL
zabbix ALL=(ALL:ALL) ALL
I have includes some screen images if anyone has a suggestion.
Below is my Item Key command
system.run[sudo "/dht22/env/bin/python" "/dht22/humidity.py"]
I thought it it was a permission issue but root has rwx permissions
I am sure there is a simple way to get Zabbix server to run VENV python scripts but I just can't figure out what I am doing wrong.
zabbix_agentd.conf includes AllowKey=system.run[*]
visudo includes
# user privilege specification
root ALL=(ALL:ALL) ALL
pi ALL=(ALL:ALL) ALL
zabbix ALL=(ALL:ALL) ALL
I have includes some screen images if anyone has a suggestion.
Comment