Ad Widget

Collapse

Zabbix Agent running a UserParameter script twice, breaking the process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FonTim
    Junior Member
    • Jan 2013
    • 15

    #1

    Zabbix Agent running a UserParameter script twice, breaking the process

    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...
  • TiagoLuis
    Junior Member
    • Sep 2013
    • 1

    #2
    Hello FonTim have you fix this?... I have the same problem

    Comment

    • FonTim
      Junior Member
      • Jan 2013
      • 15

      #3
      Unfortunatly not, I ended up just moving the script to a cron job.
      Not ideal at all

      Comment

      Working...