The requirement is to get data from a ComAp diesel generator controller's web interface. A Zabbix external script (bash) runs a Selenium script to get the data. When run by user zabbix interactively, via cron or via "at" it works. When run as a Zabbix external script it fails, mostly with "selenium.common.exceptions.WebDriverException : Message: chrome not reachable".
Clearly something differs significantly between the Zabbix external script environment and the others. We have listed environment variables, /proc/$$/limits and /proc/$$/cgroup. Those identified many differences between the environments.
For the Zabbix external script we tried adding ...
... but it made no difference
For the interactive run we tried reducing "the maximum size a process may lock into memory" to the same as in the Zabbix external script environment but it made no difference
We are using zabbix-server-pgsql 1:5.0.19-1+debian10 on a headless Debian Buster server
Clearly something differs significantly between the Zabbix external script environment and the others. We have listed environment variables, /proc/$$/limits and /proc/$$/cgroup. Those identified many differences between the environments.
For the Zabbix external script we tried adding ...
Code:
export HOME=/var/lib/zabbix/ export USER=zabbix
For the interactive run we tried reducing "the maximum size a process may lock into memory" to the same as in the Zabbix external script environment but it made no difference
We are using zabbix-server-pgsql 1:5.0.19-1+debian10 on a headless Debian Buster server
Comment