Hello,
we want to check the ESX-Server after Coldstart, therefore we have an powershell script.
but if i try to run this script the execution fails!!!!
i did a sample "bat" file whit this content
the script connects to the vcenter and check's the host! ( this tooks a long time ~40secs)
content of the C:\zabbix\tmp.txt
(there is no END stamp!!!)
I Ad a script to the zabbix Server for testing (testing execution from zabbix Server)
CHECK ESX-HOST AFTER RESTART
Why the script fails to execute ?
And why there is no END stamp?
if i create a simple powershellscript "C:\zabbix\test.ps1"
and execute it in the bat file
now i got the Start and END stamps! in the tmp.txt
seems that the zabbix-agent hangs somwhere and dont execute the 3 command ????
any idea ?
we want to check the ESX-Server after Coldstart, therefore we have an powershell script.
but if i try to run this script the execution fails!!!!
i did a sample "bat" file whit this content
Code:
echo START %date% %time% >> C:\zabbix\tmp.txt powershell.exe -command D:\source_dev\scripts\zabbix\check_ESX_after_start.ps1 -Hostname vcp64-esx-11.xxx.DOMAIN.de echo ENDE %date% %time% >> C:\zabbix\tmp.txt
content of the C:\zabbix\tmp.txt
Code:
START 02.06.2015 18:39:49,80 START 02.06.2015 18:41:11,57 START 02.06.2015 18:45:03,88 START 02.06.2015 18:46:05,36 START 02.06.2015 18:49:56,51
I Ad a script to the zabbix Server for testing (testing execution from zabbix Server)
CHECK ESX-HOST AFTER RESTART
Code:
cmd /c C:\zabbix\test.bat
And why there is no END stamp?
if i create a simple powershellscript "C:\zabbix\test.ps1"
Code:
echo "test"
Code:
echo START %date% %time% >> C:\zabbix\tmp.txt powershell.exe -command C:\zabbix\test.ps1 echo ENDE %date% %time% >> C:\zabbix\tmp.txt
Code:
START 02.06.2015 19:02:18,24 ENDE 02.06.2015 19:02:18,62
any idea ?
Comment