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
1
vote
1 answer

How to get internet speed and CPU temperatures in java

I need to get the internet speed (upload and download per second) in java. I'm currently using the Sigar and Oshi libraries but none of them shows me the speed as I would like. On the network I found this class using Sigar to see the connection…
1
vote
1 answer

Embed SIGAR .so and .dll files into OSGI bundle

I would like to embed .so files and .dll files into OSGI bundle. I tried this: I copied all files into src\main\resources\lib Then I added this dependency: org.hyperic
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
1
vote
0 answers

How to find whether the OS running is on virtual machine or physical using Sigar API

How to find whether the OS running is on virtual machine or physical using Sigar API. I am using Sigar Api, I am able to get all cpu related info, but not the OS is virtual or physical
1
vote
0 answers

Hyperic Sigar API - not working in runnable jar file

Here is the code for CPU and Memory meter. It works well in eclipse mars 1 but not working when make a runnable jar. Just appears a JFrame with two label CPU and RAM, does not gives the percent values. Please help with it. Thank you. package…
Sadidul Islam
  • 1,088
  • 12
  • 13
1
vote
0 answers

What is recordoffset in read method of eventlog in sigar ? I used the recordnumber as parameter in read method and it throwing an exception

RecorNumber - 7518 A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005ae52fa5, pid=3516, tid=4280 JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) …
Kanwar
  • 21
  • 1
1
vote
0 answers

File or database storage?

I'm trying to develop a small app in Java that will monitor my server's CPU load and memory (with SIGAR) and display real time or past data on graphs in the client app (on my home computer). I was wondering which way would be best to store the…
1
vote
1 answer

How fix sigar library when I run spray application?

I have a sbt project written in scala. The project uses akka and spray. There is a class with main function. When I run scala console application sometimes I get [on-spray-can-akka.actor.default-dispatcher-4] [DEBUG] [2014-11-07 16:48:30,336] Sigar:…
Cherry
  • 31,309
  • 66
  • 224
  • 364
1
vote
2 answers

SIGAR API not working after packaging to jar/exe

I am trying to gather system information using the SIGAR API. After including sigar.jar in my library, Netbeans gave the error that sigar-amd64-winnt.dll was not found. After adding that file to the library, it worked perfectly. Now i needed to…
Pranav
  • 323
  • 1
  • 3
  • 16
1
vote
1 answer

Using SIGAR to get oracle process info, from a web app server (glassfish4)

I have been working on a web monitor using sigar to gather the System information, but now i need to get the Oracle's RAM and CPU usage. I did it using sigar.getProcCpu(pid).getTotal() function. But when i deploy the app on glassfish 4, i get the…
JoseGarcia
  • 11
  • 1
1
vote
1 answer

Getting A List of System Processes in Java Using Hyperic SIGAR

I am trying to figure out how to get a list of system processes using Hyperic SIGAR. This is what I have so far: import org.hyperic.sigar.Humidor; import org.hyperic.sigar.ProcExe; import org.hyperic.sigar.SigarException; import…
SquawkBirdies
  • 157
  • 2
  • 13
1
vote
1 answer

JNLP loads Sigar native libs via file: but not http:

I have an app that is using jnlp as the launcher. It uses the Sigar libraries which require dynamically loaded native libraries for platform specific code. For purposes of debugging this I have two JNLP files, one that references the codebase using…
1
vote
1 answer

SIGAR API: when to use gather()

I'm looking at using the SIGAR package to get some system statistics (calling it from Java). In looking through the various classes, sometimes I see a 'gather' routine. I can understand that this needs to be called to get up to date information, and…
Dave Combs
  • 281
  • 2
  • 17
1
vote
0 answers

Is a reliable, monotonic time source available in Hyper-V guests to do benchmarking?

Hyper-V guests encounter horrible clock drifts. If I my memory does not fail me, I saw drifts of many seconds over the course of only a few minutes, if not less. And I'm not talking about cases where the system is hibernated etc. I'd like to…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
1
vote
2 answers

Get Count of hard disc accesses in Java

I want to measure, how much accesses to the hard disc (so how much Bytes readed / written) a program made. I googled the problem, and found out, that Sigar should be able to record things like that, but after continuing the search, I didn't find…
David Georg Reichelt
  • 963
  • 1
  • 15
  • 36
1
vote
1 answer

How to get CPU usage percent in C++ using the Sigar libraries

I'm trying to get the CPU usage percent in c++ using the SIGAR libraries, i wrote the code below to try to get this information, but something is wrong, i always got a value 0.3... instead of a value between 0% to 100 %. How to get the CPU usage…
user1576869