Hello everybody,
I use vCenter Appliance (Suse).
I would like to execute shell script on one alarm, and it does not work.
What I have done :
- Create a very short and simple shell script
- name : toto.sh (755) stored on /tmp (777).
- the only line in the script is : echo "my script is running" >> /tmp/toto.txt
- Create an alarm within a VM triggered on VM reconfiguration.
- Create an action as command execution
- Configuration of execution : /tmp/toto.sh
When I generate the alarm, I received an error on the event viewer :
A general system error occurred: Failed to run script: Command exited with non-zero status 127
It seems that vCenter doesn't find my script or can't execute it, but I don't know why !
Does anyone has an idea ?
Best regards
Alain
Ce message a été modifié par : amerfree Problem solved. shell script must define the shell used (i.e. #!/bin/shell_to_use)...