You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
(927) |
Apr
(419) |
May
(352) |
Jun
(431) |
Jul
(463) |
Aug
(345) |
Sep
(304) |
Oct
(596) |
Nov
(466) |
Dec
(414) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(348) |
Feb
(313) |
Mar
(665) |
Apr
(688) |
May
(434) |
Jun
(311) |
Jul
(540) |
Aug
(554) |
Sep
(467) |
Oct
(341) |
Nov
(365) |
Dec
(272) |
2009 |
Jan
(386) |
Feb
(293) |
Mar
(279) |
Apr
(239) |
May
(229) |
Jun
(199) |
Jul
(186) |
Aug
(111) |
Sep
(196) |
Oct
(146) |
Nov
(116) |
Dec
(140) |
2010 |
Jan
(170) |
Feb
(159) |
Mar
(151) |
Apr
(161) |
May
(90) |
Jun
(56) |
Jul
(28) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(23) |
Dec
(12) |
2011 |
Jan
(8) |
Feb
(8) |
Mar
(22) |
Apr
(24) |
May
(4) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mark P. <mar...@gm...> - 2011-03-15 20:32:40
|
Thanks, that does help. I am having a problem now though because it is apparently a lot more difficult to get the PID of a command you run from Java than I realized. I assumed the Process object has it. I tried using SIGAR's ProcessFinder but it never finds my process, probably because it has ended when I am trying to find it. Does SIGAR provide a helper class for running command line apps? I would think that SIGAR could capture the PID and expose it so that you could use its API easier. Likewise, should I assume that if my process has ended I cannot retrieve its process info anyway? Maybe this why the *nix time command wraps another command? |
From: Mirko P. <m.p...@gm...> - 2011-03-15 20:28:08
|
Hi, you can always download the shared libs from hudson http://hudson.hyperic.com/view/sigar/job/sigar-master-amd64-linux-2.6/ I wonder why it is looking for a file called liblibsigar-amd64-linux.so, the name of the library should be libsigar-amd64-linux.so. Did you build SIGAR yourself ? Cheers, Mirko |
From: Mirko P. <m.p...@gm...> - 2011-03-14 19:23:59
|
Hi, there is no really a workaround for this, since the OS does not allow access to process information. So you would basically have to hack the OS ;-) If you only want to monitor processes of a certain user, you might want to start the Agent using the same user. Cheers, Mirko |
From: Shervin A. <sh...@as...> - 2011-03-14 18:05:18
|
Hi. I am trying to use Sigar for the first time and I want to use the PS class to get information about processes running. Ps ps = new Ps(); ps.processCommand(pidArray); seems to work fine. However it prints the output in PrintStream (Console) How can either change the PrintStream to PrinterWriter or get the output in a list, string or something I can actually check programatically? Thanks for great library! |
From: Mark P. <mar...@gm...> - 2011-03-14 18:05:06
|
I am trying to write some benchmarks of a command line application using Java. I want to run a number of commands using something like ProcessBuilder or Runtime.exec(). After the command completes, I would like to get the CPU time used by the command, as opposed to just the clock time. If I were doing this only on Linux, I would just use the time command to run the command and then parse the results. However, I would like to write something that I could also run on Windows. Can this be done using SIGAR? Can someone give some sample code? I know you can get the PID from ProcessBuilder, so I am thinking that I use that to run the command and then use some SIGAR API to find out how much CPU time the process that was created used. The process will have ended, so I am wondering if this is still possible to do? Also wondering if SIGAR has its own classes for running a command that maybe incorporate some of this. Thanks Mark |
From: Mirko P. <m.p...@gm...> - 2011-03-13 19:28:48
|
Hi, have a look at the sigar commandline tool java -jar sigar-1.6.4.jar pinfo You will get some information about processes, e.g. cpu={LastTime=627591, StartTime=1300044278000, Percent=0.0, Sys=30, User=250, Total=280} I think this is the class you are after http://www.hyperic.com/support/docs/sigar/org/hyperic/sigar/ProcTime.html And an example how to use it https://github.com/hyperic/sigar/blob/master/bindings/java/src/org/hyperic/sigar/cmd/ProcInfo.java Hope this helps, Mirko |
From: Andrew B. <an...@be...> - 2011-03-09 09:41:25
|
On Wed, Mar 2, 2011 at 10:54 PM, Doug MacEachern <dma...@vm...> wrote: > Hi Adam, > > Thanks for the patches! > I need to take a closer look, but wondering if we could change sigar_net_interface_config_get rather than change the return values of sigar_net_interface_list: > sigar_net_interface_config_get("ethX", &config); Until recently I probably would have agreed with you, however given the recent shift away from ethX even on Linux, I'm not convinced that it makes sense to continue using it on Windows where it has no real meaning. Worse, the number of ethX entries does not even match the number of physical devices (there are two additional "pseudo devices" for every physical one). The other issue is that anything wanting to present network information to users must do the translation - again, since ethX is meaningless on Windows. So I guess my answer here is, "yes we could and if you insist we will, but I really don't think we should" :-) > > Then either change the value of config.description to use FriendlyName, or even add a new field to sigar_net_interface_config_t? > > Thanks, > -Doug > > On Feb 28, 2011, at 7:48 AM, Adam Stokes wrote: > >> Hi, >> >> I'm Adam, one of the developers for matahari project (http://github.com/matahari). We are attempting to provide some useful apis over a remote interface (qpid.apache.org) that is cross platform. >> >> The resources used for cross compilation is mingw32. The first patch is for allowing sigar to compile successfully under those requirements. >> >> Some of the routines in the api (specifically network) we expose the ability to start/stop network interfaces through Windows netsh application. With the current sigar implementation interfaces are listed as 'ethX' which is fine when doing read only within the realm of sigar. When attempting to branch out and use application such as netsh in conjunction with sigar this fails due to netsh requiring a Friendly Name of the network interface. The second patch allows us to capture the interfaces friendlyname and at worst its interface description. >> >> >> The pull request can be found here, >> >> https://github.com/hyperic/sigar/pull/5 >> >> Thank you >> Adam >> >> > > |
From: cds <sig...@hy...> - 2011-03-04 18:21:18
|
You are right, thanks for the reply. But I dont have that shared library. So I wanted to know how can I build one? There are lot of other shared libraries in the lib folder that has the sigar.jar file as well, but not the one that it is expecting. So I thought of building it on my own, but I did not find how I can build it on the Hyperic SIGAR website. Regards, Chetan |
From: jrallen9 <jus...@te...> - 2011-03-04 01:21:38
|
The problem you have is with the location of the file liblibsigar-x86_64-linux.so. This file needs to be located in the same directory where you run the sigar.jar or is available on the classpath when you run the Java VM. Setting the class path can be done in the users login environment, but is commonly done using the -cp (-classpath) option like: java -cp /path/to/dir/with/lib Hope that helps. |
From: cds <sig...@hy...> - 2011-03-03 18:32:22
|
When I run the sigar.jar I get the following error: liblibsigar-x86_64-linux.so: liblibsigar-x86_64-linux.so: cannot open shared object file: No such file or directory org.hyperic.sigar.SigarException: liblibsigar-x86_64-linux.so: liblibsigar-x86_64-linux.so: cannot open shared object file: No such file or directory at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172) at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:100) at java.lang.Class.initializeClass(libgcj.so.7rh) at java.lang.Class.forName(libgcj.so.7rh) at org.hyperic.sigar.SigarLoader.class$(SigarLoader.java:77) at org.hyperic.sigar.SigarLoader.getLocation(SigarLoader.java:77) at org.hyperic.sigar.cmd.Runner.main(Runner.java:176) Exception in thread "main" java.lang.NullPointerException at java.io.File.normalizePath(libgcj.so.7rh) at java.io.File.<init>(libgcj.so.7rh) at org.hyperic.sigar.cmd.Runner.getLibJars(Runner.java:73) at org.hyperic.sigar.cmd.Runner.addJarDir(Runner.java:134) at org.hyperic.sigar.cmd.Runner.main(Runner.java:180) I am running the test on a (RHEL 6.5). Java provides the OS information as Operating System:Linux 2.6.18-92.el5 Architecture:amd64 Number of processors:2 So what is the native shared lib that it should use? If the shared library is identified how do I make it available to the application? Regards, Chet |
From: hamzaoui k. <ham...@gm...> - 2011-03-03 18:32:05
|
Hi, Is it possible to get NetInfo object for a specific NetworkInterface (eth0,eth1...)? I am working with sigar.jar library and did not find a such feature within it; what it handels is that the sigar object has a method getNetInfo that returns the same data information (gateway,dns..), but my machine has many network interfaces. many thanks |
From: Doug M. <dma...@vm...> - 2011-03-02 22:19:50
|
Hi Adam, Thanks for the patches! I need to take a closer look, but wondering if we could change sigar_net_interface_config_get rather than change the return values of sigar_net_interface_list: sigar_net_interface_config_get("ethX", &config); Then either change the value of config.description to use FriendlyName, or even add a new field to sigar_net_interface_config_t? Thanks, -Doug On Feb 28, 2011, at 7:48 AM, Adam Stokes wrote: > Hi, > > I'm Adam, one of the developers for matahari project (http://github.com/matahari). We are attempting to provide some useful apis over a remote interface (qpid.apache.org) that is cross platform. > > The resources used for cross compilation is mingw32. The first patch is for allowing sigar to compile successfully under those requirements. > > Some of the routines in the api (specifically network) we expose the ability to start/stop network interfaces through Windows netsh application. With the current sigar implementation interfaces are listed as 'ethX' which is fine when doing read only within the realm of sigar. When attempting to branch out and use application such as netsh in conjunction with sigar this fails due to netsh requiring a Friendly Name of the network interface. The second patch allows us to capture the interfaces friendlyname and at worst its interface description. > > > The pull request can be found here, > > https://github.com/hyperic/sigar/pull/5 > > Thank you > Adam > > |
From: Andrew B. <an...@be...> - 2011-02-28 19:08:22
|
On Feb 28, 2011, at 4:48 PM, Adam Stokes wrote: > Hi, > > I'm Adam, one of the developers for matahari project (http://github.com/matahari). We are attempting to provide some useful apis over a remote interface (qpid.apache.org) that is cross platform. > > The resources used for cross compilation is mingw32. The first patch is for allowing sigar to compile successfully under those requirements. > > Some of the routines in the api (specifically network) we expose the ability to start/stop network interfaces through Windows netsh application. With the current sigar implementation interfaces are listed as 'ethX' which is fine when doing read only within the realm of sigar. When attempting to branch out and use application such as netsh in conjunction with sigar this fails due to netsh requiring a Friendly Name of the network interface. The second patch allows us to capture the interfaces friendlyname and at worst its interface description. The other thing to point out (and thus help justify the increased size of fields such as 'ifname') is that with the recent trend away from ethX for Linux device names[1], its likely that 16 bytes may no longer be sufficient there either. [1] http://digitizor.com/2011/01/25/fedora-15-network-device-naming/ > > > The pull request can be found here, > > https://github.com/hyperic/sigar/pull/5 > > Thank you > Adam > > |
From: Adam S. <aj...@re...> - 2011-02-28 18:37:15
|
https://github.com/hyperic/sigar/pull/5 Patches to allow for mingw32 compilation and list friendly names on win32 network list -Adam Stokes |
From: Adam S. <aj...@re...> - 2011-02-28 15:54:17
|
https://github.com/hyperic/sigar/pull/5 Patches to allow for mingw32 compilation and list friendly names on win32 network list -Adam Stokes |
From: Adam S. <aj...@re...> - 2011-02-28 15:48:47
|
Hi, I'm Adam, one of the developers for matahari project (http://github.com/matahari). We are attempting to provide some useful apis over a remote interface (qpid.apache.org) that is cross platform. The resources used for cross compilation is mingw32. The first patch is for allowing sigar to compile successfully under those requirements. Some of the routines in the api (specifically network) we expose the ability to start/stop network interfaces through Windows netsh application. With the current sigar implementation interfaces are listed as 'ethX' which is fine when doing read only within the realm of sigar. When attempting to branch out and use application such as netsh in conjunction with sigar this fails due to netsh requiring a Friendly Name of the network interface. The second patch allows us to capture the interfaces friendlyname and at worst its interface description. The pull request can be found here, https://github.com/hyperic/sigar/pull/5 Thank you Adam |
From: prabin m. <pra...@tc...> - 2011-02-24 17:53:09
|
Hi All, I am trying to install Hyperic HQ Server in my Linux box having Fedora OS. I get following information on installation: Configuring database... Starting repopulation of configuration table... Waiting for built-in database to start (on port 9432)... Starting built-in database... -------------------------------------------------------------------------------- An ERROR occurred, the installation cannot continue. An error occurred trying to start the HQ built-in database. More information may be available in the /opt/hyperic/server-4.4.0/logs/hqdb.log file. -------------------------------------------------------------------------------- Waiting for server to stop... Stopping built-in database... -------------------------------------------------------------------------------- An ERROR occurred, the installation cannot continue. FATAL EXCEPTION at /dev/Installer/hyperic/installer-4.4.0/data/setup.xml:439: : The following error occurred while executing this line: /dev/Installer/hyperic/installer-4.4.0/data/setup.xml:448: The following error occurred while executing this line: /dev/Installer/hyperic/installer-4.4.0/data/setup.xml:588: The following error occurred while executing this line: /dev/Installer/hyperic/installer-4.4.0/data/setup-db-PostgreSQL.xml:158: The following error occurred while executing this line: /dev/Installer/hyperic/installer-4.4.0/data/setup-db-PostgreSQL.xml:199: The following error occurred while executing this line: /opt/hyperic/server-4.4.0/data/server.xml:168: exec returned: 127 I went through the hqdb.log file where I find this details: [billing@Billing hyperic]$ cat /opt/hyperic/server-4.4.0/logs/hqdb.log /opt/hyperic/server-4.4.0/bin/db-stop.sh: line 8: /opt/hyperic/server-4.4.0/hqdb/bin/pg_ctl: No such file or directory On trying to find file pg_ctl at /opt/hyperic/server-4.4.0/hqdb/bin/ I can only see pg_ctl.exe. I am not being able to install Hyperic HQ Server in Fedora. I have been strugling on this since long time. Could you please gudie me on this. Thanks and Regards, Prabin Munankarmi pra...@tc... |
From: Trey <sig...@hy...> - 2011-02-17 18:57:03
|
Looks like the process information situation improves somewhat on FreeBSD when you mount procfs. I'll see if that helps sigar any in a few days. |
From: Heff21 <sig...@hy...> - 2011-02-16 19:58:23
|
Hello, Would anyone know how to go about getting the total cpu usage percentage for all CPU's in a system? I would like to get the result as a double. I am new to SIGAR. thanks |
From: rhuang <rh...@po...> - 2011-02-14 18:44:06
|
any experts on this? |
From: neha <sig...@hy...> - 2011-01-28 18:35:32
|
Hi, I am using Sigar api to get the system and an applications information like CPU Utilization and number of DB Connections. I am able to use the sigar apis sucessfully on Windows. But i am not sure how to use the same on AIX. I have an application running on Websphere on an AIX system. The application is deployed as a *.war file. Can anyone tell me how to load / link the .so file on AIX? Thanks nehad |
From: Scott G. <gre...@fa...> - 2011-01-19 18:35:20
|
I am struggling with the same thing. If you change the template in your metric to this: template="sigar.ptql:Type=ProcState,Arg=:State:State.Name.eq=java,Args.*.ct=iipax.config.file" then it should correctly detect when the process is up. But in my testing using this kind of template, it doesn't correctly change the state to down when the process goes away. I'm guessing this is because sigar errors out instead of returning a ProcState value that indicates the process isn't running. Manually running the plugin with this kind of template gives this: sigar.ptql:Type=ProcState,Arg=:State:State.Name.eq=jsvc,Args.*.eq=-Dcatalina.home=/home/fs/tomcat,State.Name.Peq=jsvc getValue failed for metric: fs-public-api:sigar.ptql:Type=ProcState,Arg=:State:State.Name.eq=jsvc,Args.*.eq=-Dcatalina.home=/home/fs/tomcat,State.Name.Peq=jsvc MetricNotFoundException: Query did not match any processes |
From: Scott G. <gre...@fa...> - 2011-01-19 18:35:20
|
Ok, after some further digging through the source code I think I know how to make this work. The second field of the template (fields separated by colons) is expected to be a list of name/value pairs, with pairs separated by commas. The problem is that there is a comma in your PTQL query, which is causing the field not to parse correctly. You need to replace the comma with %2C which get converted back to a comma after the fields are broken up. So just change your template to this: template="sigar:Type=ProcState,Arg=State.Name.eq=java%2CArgs.*.ct=iipax.config.file:State" and I think it will work for you. Good Luck! |
From: sturat1972 <stu...@gm...> - 2011-01-18 22:11:59
|
Take a look at: http://forums.hyperic.com/jiveforums/thread.jspa?messageID=36469蹵 Sigar 1.6.4 binaries are available under Apache 2.0 license |
From: sberthol <sig...@hy...> - 2011-01-17 20:29:54
|
Hi, Trying to get io statistics with sigar iostat (jar version with latest 1.7.0 from git repository) on a ZFS filesystem (on solaris 10 64b), I always the following error: sigar> iostat /local Filesystem Mounted on Reads Writes R-bytes W-bytes Queue Svctm local /local -1 -1 - - - - while iostat works without any problem with an UFS fielsystem on the same host: sigar> iostat / Filesystem Mounted on Reads Writes R-bytes W-bytes Queue Svctm /dev/dsk/c0t0d0s0 / 18065 18856 168M 32M 0.00 0.00 Is it an already known issue ? Or is there a way to get the actual R/W numbers from a zfs filesystem ? Thanks and regards, Seb |