Code: Select all
e:D:\source\nscp\trunk\include\socket/connection.hpp:140: Failed to send data: The file handle supplied is not validCode: Select all
e:D:\source\nscp\trunk\include\socket/connection.hpp:140: Failed to send data: The file handle supplied is not validCode: Select all
@echo off
set basePath="C:\progra~1\NSClient++\scripts\StandAlonePortalHeartbeat"
set errorlevel=
java -Dgroovy.starter.conf=%basePath%/groovy//conf/groovy-starter.conf -Dgroovy.home=/%basePath%/groovy/ -Dheartbeat.props=%basePath%/heartbeat.properties -Dlog4j.configuration=file:%basePath%/log4j.xml -Djava.net.preferIPv4Stack=true -Dfile.encoding=Cp1252 -classpath "%basePath%\bin;%basePath%\groovy\lib\groovy-all-1.7.10.jar;%basePath%\groovy\lib\antlr-2.7.7.jar;%basePath%\groovy\lib\asm-3.2.jar;%basePath%\groovy\lib\asm-tree-3.2.jar;%basePath%\groovy\lib\bsf-2.4.0.jar;%basePath%\groovy\lib\commons-cli-1.2.jar;%basePath%\groovy\lib\ivy-2.2.0.jar;%basePath%\groovy\lib\jline-0.9.94.jar;%basePath%\groovy\lib\servlet-api-2.4.jar;%basePath%\lib\mail.jar;%basePath%\lib\log4j-1.2.16.jar;%basePath%\lib\slf4j-api-1.5.8.jar;%basePath%\lib\slf4j-log4j12-1.5.8.jar;%basePath%\lib\selenium-server-standalone-2.25.0.jar" org.codehaus.groovy.tools.GroovyStarter --classpath %basePath%\lib\log4j-1.2.16.jar;%basePath%\lib\mail.jar;%basePath%\lib\slf4j-api-1.5.8.jar;%basePath%\lib\slf4j-log4j12-1.5.8.jar;%basePath%\src;%basePath%\bin --main groovy.ui.GroovyMain %basePath%\src\net\yaanatech\standaloneheartbeat\RMSHeartbeat.groovy
rem echo %errorlevel%
IF ERRORLEVEL 1 GOTO err
IF ERRORLEVEL 0 GOTO ok
:err
echo CRITICAL: RMS Heartbeat failed
exit /B 1
:unknown
echo UNKNOWN: Something went wrong
exit /B 3
:ok
echo OK: RMS Heartbeat successfull
exit /B 0Code: Select all
cd C:\Program Files\NSClient++\
nscp /testCode: Select all
nsclient++ /test