Hi Rob
sorry for the delayed response
I'm not sure what exactly is the issue..
I'm not importing Globals.
In the actiond log i see that the script run successfully:
2013-12-22 12:18:30,908 INFO zen.zenactiond: Event:'vdevvc01|C|/Perf/Filesystem|FreeMegabytes_FreeMegabytes|low disk space|3' Trigger:vctest Action:command Status:SUCCESS Target:James Info:<NotificationSubscription Info "command_clear_vc">
But it doesn't seem the script executed at all (has it's own log and wasn't updated at all)
The script is running from command line.
I added the environment variables:
ZENHOME=/opt/zenoss;PYTHONPATH=/opt/zenoss/lib/python;LD_LIBRARY_PATH=/opt/zenoss/lib
The 'event command' in zenoss:
/opt/operation/vc_c_cleanup.py ${dev/zWinUser} ${dev/zWinPassword} ${dev/manageIp} ${evt/device}
Script imports:
import sys, subprocess, shlex, smtplib, os
from email.mime.text import MIMEText
from datetime import datetime
Any suggestion on how to troubleshoot this?
Thanks