Created
July 29, 2014 14:08
-
-
Save liveaverage/ff3d31fcc6bde71d8d2f to your computer and use it in GitHub Desktop.
Local Check_MK: Bulk execute local checks in 64-bit consoles from x86 Check_MK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Note that SysNative is available on x86 2008, and on x86 2003 with KB942589 applied | |
set CONSOLE_WIDTH=500 | |
CD %ProgramFiles(x86)%\check_mk\local-64 | |
FOR /R %%X IN ("*") DO ( %WINDIR%\SysNative\windowspowershell\v1.0\powershell.exe -File "%%X") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a stupid trick to force execution of select local Check_MK checks within a 64-bit console/context. Just create local-64 directory under %ProgramFiles(x86)%\check_mk. Drop your scripts requiring 64-bit context into the local-64 folder, then drop the above batch file into the standard local checks folder.