Questions tagged [sigar]

Hyperic's System Information Gatherer And Reporter (SIGAR) is a cross-platform API for collecting software inventory data. SIGAR is core of HQ's auto-discovery functionality, and you can use it to extend auto-discovery behavior.

About

Hyperic's System Information Gatherer And Reporter (SIGAR) is a cross-platform API for collecting software inventory data. SIGAR is core of HQ's auto-discovery functionality, and you can use it to extend auto-discovery behavior.

Overview

The Sigar API provides a portable interface for gathering system information such as:

  • System memory, swap, cpu, load average, uptime, logins
  • Per-process memory, cpu, credential info, state, arguments, environment, open files
  • File system detection and metrics
  • Network interface detection, configuration info and metrics
  • TCP and UDP connection tables
  • Network route table

This information is available in most operating systems, but each OS has their own way(s) providing it. SIGAR provides developers with one API to access this information regardless of the underlying platform.

Bindings

The core API is implemented in pure C with bindings currently implemented for Java, Perl, Ruby, Python, Erlang, PHP and C#.

Version

The current stable version is 1.6.4

Resources

Home Page

JavaDocs API

Downloads

106 questions
0
votes
1 answer

how to get java process virtual memory in windows

I'm trying to get the physical and virtual memeory that my Java process is using in Windows system, like the taskmgr does. I'm able to get the physical memory of my Java progress, but I cannot get the virtual memory. Now I'm thinking using Windows…
jelly
  • 1
0
votes
1 answer

“no sigar-winnt.dll in java.library.path” error when using SIGAR

I'm very new to java. I'm developing a tool that checks if your PC meets some set of specifications. This included writing and executing a separate batch file and including an API (SIGAR) for the model of the CPU. My problem is that when I tried…
0
votes
0 answers

java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Cpu.gather(Lorg/hyperic/sigar/Sigar;)V

The problem exists using eclips on window10 5월 25, 2017 9:15:52 오전 org.apache.catalina.core.StandardWrapperValve invoke 심각: Servlet.service() for servlet [jsp] in context with path [/ESTIS] threw exception [An exception occurred processing JSP page…
0
votes
1 answer

Java Sigar reporting memory usage that disagrees with Windows Resource Monitor

I've downloaded the Java Sigar API (http://support.hyperic.com/display/SIGAR/Home) and would like to use it to get memory usage information about different processes which are running. I've written the following test case to report memory usage of…
jpm290
  • 21
  • 3
0
votes
0 answers

Sigar API Java ClassNotFoundException

I have downloaded Sigar API from their website and included sigar.jar file into my project in Eclipse. But the problem is I need .java files inorder to convert my project into obj-c. So I dowloaded zip file from the github and copied src folder from…
user6528991
0
votes
2 answers

How to install "libhyperic-sigar-java" in CentOS

libhyperic-sigar-java: (System Information Gatherer And Reporter - Java bindings) I know the way to install "libhyperic-sigar-java" in ubuntu to use sudo apt-get install libhyperic-sigar-java Now I want to install libhyperic-sigar-java in…
kevin5476
  • 5
  • 4
0
votes
0 answers

using a library file from within jar

This is a follow up of this question What I try to do: I have an eclipse project that uses th Sigar library in order to get the cpu information (among others). In order to do that Sigar needs a library file to work. Each CPU/OS have a different…
Skaros Ilias
  • 1,008
  • 12
  • 40
0
votes
1 answer

sigar .so files on Eclipse project using Maven

I have a Maven project in Eclipse, where i added the Sigar library using org.fusesource sigar 1.6.4 This was compiling and executing…
Skaros Ilias
  • 1,008
  • 12
  • 40
0
votes
1 answer

Undefined reference to functions

I am trying out C++ and QT but I am walking against a wall trying to solve this problem as most of this is not familiar. I am trying to use the SIGAR library but I am getting the following message from…
John
  • 1,095
  • 3
  • 15
  • 31
0
votes
1 answer

Get process with highest CPU usage

I am trying to write a program which logs the CPU usage & the process which is consuming highest CPU. Suppose firefox.exe is taking highest CPU i.e. 70%, it should log only this process with its CPU usage. I am using sigar library to achive this…
Harshit
  • 5,147
  • 9
  • 46
  • 93
0
votes
0 answers

How can I use the SIGAR Library in Java to get a class cpu and memory usage?

I have been struggling for hours with this. How can I find the cpu and memory usage of a class using the SIGAR library in Java.
george24
  • 331
  • 1
  • 3
  • 11
0
votes
0 answers

Error: undefined reference to `sigar_open@4' In Sigar C++

Hi i m using sigar library for developing an application in c++. but unfortunately i m unable just start.... i m using following starting basic code but getting Error: undefined reference to `sigar_open@4'. This is code i m using: #include…
Strikerz
  • 31
  • 5
0
votes
2 answers

Finding total file descriptors throws exception

I'm trying to find total file descriptors and found that sigar api allows to get those information. However while trying to do the below Sigar sigar = new Sigar(); sigar.getProcFd(); replaced the pid with an actual process if, throws the…
srock
  • 403
  • 1
  • 8
  • 17
0
votes
1 answer

Using SIGAR API to calculate CPU usage

I am using SIAGR API to calculate CPU usage but getting the exception when it is tested with LOAD RUNNER other wise it is ok. org.hyperic.sigar.SigarFileNotFoundException: No such file or directory at org.hyperic.sigar.Cpu.gather(Native Method) …
chandu ram
  • 251
  • 2
  • 5
  • 19
0
votes
1 answer

How to build and use Sigar for C/C++?

Since there are no instructions on their wiki or Github, this is what I tried: Cloned the git repository make To run examples/cpuinfo.c: cd examples/ gcc -Wall -I../include -L../build-src -lsigar cpuinfo.c It gives me: cpuinfo.c:(.text+0x20):…