Skip to content

Instantly share code, notes, and snippets.

@liveaverage
Created July 29, 2014 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liveaverage/ff3d31fcc6bde71d8d2f to your computer and use it in GitHub Desktop.
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
@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")
@liveaverage
Copy link
Author

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