I'm trying to test basic functionality of alarm triggering scripts.
I have 3 versions of a simple script containing:
echo "data" >> data.txt
Two for windows: a bat file and a cmd file. One for linux: a sh file
I run the following commands:
c:\windows\system32\cmd.exe /c c:\test.bat
c:\test.cmd
sh /root/test.sh
My windows Vcenter 5.1 reports success but the data.txt file is not created.
My linux vcenter 5.5 appliance reports:
Alarm 'Dead_Path_Alarm' on 192.168.1.19 did
not complete script: A general system error
occurred: Failed to run script: Failed to invoke
command: Stream is not initialized
My first instinct was a permission issue, so I've made the necessary adjustments, but no luck.
My second instinct was to explore various quote patterns for the command line, but I've tried every possible combination and no luck.
Help is appreciated.