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 configur sigar with libsigar-x86-linux.so automatically in maven project

I'm using sigar API in maven project, I have add the sigar maven dependencies and log4j dependencies into the pom file, but when I build the project it gives the following error DEBUG Sigar - no libsigar-x86-linux.so in…
Ujitha
  • 28
  • 7
0
votes
2 answers

Finding how much virtual memory is allocated to a process

Is there a way to find out how much total virtual memory is allocated to a specific process? I have a program and I am also putting in a performance tracker which will monitor how much memory the process is using and how much is left for it to use.…
G Boggs
  • 381
  • 1
  • 6
  • 19
0
votes
0 answers

Can't seems to load dlls in java Web Start

I'm having a huge problem with my java webstart application, I have tries a lot of solutions, but none seems to work correctly in th end. I need to write a webstart applet to load basic hardware info about the client computer to check if my client…
0
votes
1 answer

Get process ID by part of its process name at Sigar

I'm using Sigar library to get the process ID and monitor it. I have a process which can change of name depending on the version of the application which runs that process. For example: myProcess64.exe myProcess65.exe Is there a way using Sigar…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

Java cannot be accessed error from outside package error

CpuPerc() is not public in CpuPerc; cannot be accessed from outside package ... import org.hyperic.sigar.*; import org.hyperic.sigar.Cpu; import org.hyperic.sigar.CpuPerc; /** * * @author John */ public class GetCpu { public void Start() { …
Arc
  • 441
  • 1
  • 9
  • 26
0
votes
0 answers

SIGAR error: Operation not permitted

I need a Java library that can tell me the current load of a server, so after searching I found that SIGAR is currently the most well known and well accepted amongst the community. I am using Linux Mint 64-bit as operative system (it is a slight…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
0
votes
1 answer

ClassNotFoundException with SIGAR API

I'm trying to work with the SIGAR API, and I added the external jar "sigar.jar" to my Build Path eclipse project. It compiles with no problem, but when I try to run the main class, that only does : Cpu cpu = new Cpu(); it gives me this error: …
iara
  • 1
  • 2
0
votes
1 answer

How to correctly get a per process percent of used CPU using the SIGAR libraries

I'm writing a code to get a per process percent of used CPU, but something is wrong with my code. That displays strange values like 3.63499e+262 % and 0%, while the task manager displays a value bigger than 0% and lower or equal a 100%. What i'm…
Antonio Dias
  • 2,751
  • 20
  • 40
0
votes
1 answer

SIGAR For Java in Mac OS X Seems to be Locking Up

I have been trying to write a simple CPU utilization monitor as a proof of concept for a larger project. I am writing in Eclipse Juno. When I press "Run", my application works as expected- the CPU utilization is displayed as a percent that updates…
SquawkBirdies
  • 157
  • 2
  • 13
0
votes
1 answer

undefined reference to Sigar library

I'm writing a code to get the CPU Usage with the Sigar library but when i try to compile the code i get this error: undefined reference to `sigar_cpu_perc_calculate(sigar_cpu_t*, sigar_cpu_t*, sigar_cpu_perc_t*)@12' What is wrong with my code? in…
user1576869
0
votes
2 answers

How to run SIGAR API using perl?

I am looking for any information or instruction on how to run SIGAR API using perl. I looked into the binding directory where the Makefile.PL is placed and created makefile and then ran make command, it went fine but i cannot run any of the…
user1595858
  • 3,700
  • 15
  • 66
  • 109
0
votes
3 answers

How to use SIGAR to remotely fetch another machine's system info?

I'm working on a project that requires to show the CPU usage as well as other system information of remote machines. People suggest using SIGAR to achieve this, but I don't know how to use it. The source code didn't quite make sense to…
Luka Yu
  • 31
  • 4
-1
votes
1 answer

Monitor System CPU, memory, disk I/O and network usage at diff frequency

I need to monitor the CPU, N/w , memory and Disk I/O usage of a computer . Currently I'm using Ubuntu and will be running this using a Java code. Also the monitoring frequency/ sampling interval must be customisable. I've already read this. There's…
P R
  • 1,293
  • 7
  • 28
  • 58
-1
votes
1 answer

SIGAR api throwing NoClassDefFoundError

I'm using the latest IntelliJ IDEA , and the SIGAR.jar has been added to my project using the external library option from menu. Although everything seems fine from IDE , it showing the error when i try to run the plugin. The error which gets…
-2
votes
1 answer

Any C API or Perl Module to get the system info?

I am looking for an API or perl module which collects the system architecute of different flavors of UNIX and Windows versons. Such as Unix Version, hardware, Number of CPU, Memory size etc. I am using SIGAR api to monitor the system resource, but…
user1595858
  • 3,700
  • 15
  • 66
  • 109