Quantcast
Channel: VMware Communities : All Content - VMware vCenter™
Viewing all articles
Browse latest Browse all 24426

Alarm Script failures

$
0
0

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.


Viewing all articles
Browse latest Browse all 24426

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>