Try putting the script in $ZENHOME/libexec ...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



cwpl_it wrote, On 1/23/2009 10:25 AM:
> Hi there, 
> 
> Our current Zenoss box is on the blink so I'm in the middle of building 
> another one. Most of it is up and running but I am stuck on one small thing.
> 
> The old Zenoss used to run a Script (.sh) file to create text files to be 
> sms`d out to our mobiles when a critical alerts occurs. However, on the new 
> box I'm unable to get it to run a script.
> 
> I've created a simple script to test ( just to make sure there`s nothing 
> wrong with the original script copied from the old server) and placed this in 
> the Command box :-
> 
> /usr/local/zenoss/messages/test.sh
> 
> but this does not seem to work.
> 
> If i replace the above line with :-
> 
> echo "test from alex"> /usr/local/zenoss/messages/critical/clear.txt
> 
> the command executes. 
> 
> I have made sure that test.sh has zenoss:zenoss ownership and have made it 
> excutable by using (chmod +x test.sh). The test.sh script runs fine in a 
> putty session (logged in as zenoss). but yet it still does not seem to run 
> when called from the Zenoss application.
> 
> Many thanks for you help in advance
> 
> Cheers Alex
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=30427#30427
> 
> -------------------- m2f --------------------
> 
> 
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to