kenhen,
Not sure how you are running this, but just tried 2 commands with 2 scripts and they seemed to work. How are you running the command in zenoss?
script 1:
command
python /home/zenoss/eagle2.py
zenactiond success:
2013-09-12 07:31:18,022 DEBUG zen.processqueue: spawning process /bin/sh -c python /home/zenoss/eagle2.py
2013-09-12 07:30:33,808 DEBUG zen.actions: Command finished: 'A process has ended without apparent errors: process finished with exit code 0.'
2013-09-12 07:30:33,808 DEBUG zen.processqueue: Number of process being executed: 0
script 1 content:
#!/usr/bin/env python
import Globals
script2:
command:
python /home/zenoss/eagle.py
zenactiond success:
2013-09-12 07:31:18,022 DEBUG zen.processqueue: spawning process /bin/sh -c python /home/zenoss/eagle.py
2013-09-12 07:31:20,659 DEBUG zen.actions: Command finished: 'A process has ended without apparent errors: process finished with exit code 0.'
2013-09-12 07:31:20,660 DEBUG zen.processqueue: Number of process being executed: 0
script content:
#!/usr/bin/env python
import imp
Globals = imp.load_source('Globals','/opt/zenoss/lib/python/Globals/__init__.py')
Maybe try to source Globals from the file? Definately not a python guy, but seems if it can't find global that might work, but pretty static based on build.
--Rob