Instantly share code, notes, and snippets.

What would you like to do?
Local Check_MK: Bulk execute local checks in 64-bit consoles from x86 Check_MK
@echo off
REM Note that SysNative is available on x86 2008, and on x86 2003 with KB942589 applied
CD %ProgramFiles(x86)%\check_mk\local-64
FOR /R %%X IN ("*") DO ( %WINDIR%\SysNative\windowspowershell\v1.0\powershell.exe -File "%%X")

This comment has been minimized.

Copy link
Owner Author

liveaverage commented Jul 29, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment