Hi all,
I am trying to set up a Selenium-based web check from a Zabbix Agent.
I have the python script running fine, it creates an Xvfb display to launch Firefox via Selenium, executes the steps it needs (and sends back a trapper item for each step), and closes.
When I su as the zabbix user, the script works just fine and prints out the total time taken for the check to run, but when it is run by the agent as an active check it fails.
One odd thing is that the agent always seems to try and run the script twice, so I get two "Active check [selenium.test] is not supported. Disabled." lines in the log.
The script log seems to fail when the java is launched (when Selenium is started by the script) or when Firefox is launched (when I run Selenium as a daemon). I am wondering if the problem is something with launching another process from within the Zabbix check...
I am trying to set up a Selenium-based web check from a Zabbix Agent.
I have the python script running fine, it creates an Xvfb display to launch Firefox via Selenium, executes the steps it needs (and sends back a trapper item for each step), and closes.
When I su as the zabbix user, the script works just fine and prints out the total time taken for the check to run, but when it is run by the agent as an active check it fails.
One odd thing is that the agent always seems to try and run the script twice, so I get two "Active check [selenium.test] is not supported. Disabled." lines in the log.
The script log seems to fail when the java is launched (when Selenium is started by the script) or when Firefox is launched (when I run Selenium as a daemon). I am wondering if the problem is something with launching another process from within the Zabbix check...
Comment