Skip to content

instana/sigar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Instana patched sigar library

The Instana agent uses sigar to acces system level information. Since the official project is abandoned we maintain our own version in this repository. We build upon the last available distribution, which is org.hyperic:sigar-dist:1.6.5.132-8. Unfortunately this version is not available on any public Maven repository anymore, so its provided on this branch, too. Since we do not build architecture specific libraries for all supported architectures we need to support the Java wrapper which is included with the afore mentioned version. Re-building the latest code from master would result in incompatibilities with the Java wrapper shipped with the Instana agent.

Default branch

Our default branch sigar-1.6-instana was forked from the official sigar-1.6 branch on commit 92062ec. All subsequent commits addressing IPv6 support on the official sigar-1.6 branch are incompatible with the Java wrapper we use.

Building Windows 32bit & 64bit DLLs

Prerequisites

We build patched Windows DLLs on a Windows Server 2016 10.0 node. The following tooling needs to be installed in order to build successfully:

Build 32bit

  • Open "Developer Command Prompt for VS2015" (defaults to 32bit compiler & linker settings)
  • export JAVA_HOME: set JAVA_HOME=<your-java-install>
  • change to bindings\java
  • run ant (no target required)
  • final sigar-x86-winnt.dll & sigar-x86-winnt.lib are in bindings\java\sigar-bin\lib

Build 64bit

  • Open "VS2015 x64 Native Tools Command Prompt" (defaults to 64bit compiler & linker settings)
  • export JAVA_HOME: set JAVA_HOME=<your-java-install>
  • change to bindings\java
  • run ant (no target required)
  • final sigar-amd64-winnt.dll & sigar-amd64-winnt.lib are in bindings\java\sigar-bin\lib

Languages

  • C 46.7%
  • Java 44.4%
  • Perl 3.8%
  • C++ 2.2%
  • C# 1.5%
  • XS 0.6%
  • Other 0.8%