Host Monitoring: Osiris Build for Windows

Perhaps you want a host integrity monitoring solution for windows? Here is a simple recipe to compile the free Osiris agent on windows for windows (so “make test” will work).

Ingredients:

  1. NSIS
  2. Active State Perl
  3. MinGW
  4. MSYS
  5. OpenSSL

You can get these all from shmoo as a single convenient build kit, or download individually using the links above. The build kit is stable, but the individual items are likely to give you more recent releases.

Install all five in the order listed with the defaults, except for MSYS. Change the installation path of MSYS from the version number to just “c:\msys”. When MSYS asks for the MinGW installation path, enter “c:/mingw”

To compile/install OpenSSL, follow these steps:

  1. Unpack the tar file. It might be most convenient to put it below the c:\msys directory
  2. Open the “Configure” file (you can use vi in MSYS but Wordpad may also work) and comment out or delete the following line: “$IsMK1MF=1 if ($target eq “mingw” && $^O ne “cygwin” && !is_msys());”
  3. Type “perl Configure mingw” to run the Configure script
  4. If successful, you will see a “Configured for mingw” message and you should have openssl.exe in the apps directory and two lib files (libssl.a and libcrypto.a) at the toplevel
  5. Type “make test” to verify the build (this will take a while)

To compile/install Osiris, follow these steps:

  1. Download and unpack the Osiris 4.2.3 source. It might be most convenient to put it below the c:\msys directory
  2. Start MSYS (Use the shortcut or C:\msys\msys.bat -norxvt)
  3. Change into the c:\msys\osiris… directory
  4. Type ./configure with the following options:
    –with-ssl-dir=/c/msys/openssl… –with-root-dir=/c/msys/osiris… where “…” is the full pathname and –with-osiris-user=osiris or whatever user it will run as
  5. Once the configure is done type “make”
  6. To reduce the size of the installer use strip: “strip src/cli/osiris.exe”; “strip src/osirisd/osirisd.exe”; and “strip src/osirismd/osirismd.exe”
  7. Open explorer and right click on C:\msys\osiris-4.2.3\src\install\windows\osiris_install.nsi, and choose “compile installer”

Tada! Your Osiris agent should be ready to deploy on windows hosts. It will be in the osiris-4.2.3\src\install\windows directory.

One thought on “Host Monitoring: Osiris Build for Windows”

  1. Any Idea how to patch the code to enable osiris to connect to Windows 2008 servers?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.