How to change the date and time formats in Hyperic HQ?
measurement plugin name=Oracle 11g not found
I'm trying to configured in Hyperic HQ an Oracle 11g server running on Windows. I keep
getting the following error:
measurement plugin name=Oracle 11g not found
Anybody run in to this issue? Thanks.
Ed
JMX Plugin for SUN 1.5
We are using JMX Plugin for SUN 1.5 to monitor our application jmx's, we created an xml plugin for it ( this is a spring application and we are using spring to publish our jmx's )
the thing is that hyperic, overtime, opens hundreds of jmx connection and never closes them.. after few hours our tomcat server is using 100% cpu without doing anything.
once i stop hyperic agent, tomcat will go back to 0-1% cpu..
is there any thing that we can do to fix this?
thanks
Alert in all devices by group
Using Sigar to find information of a system in the network
I'm new to Sigar. I want to know whether we can get information of systems in the
network by providing ip or private key. Also can we get non-public information of
those systems by providing username and password using Sigar???
Basically i want to retrieve following information of a system in a network:
Computer name, os version, device SerialNumber, os SerialNumber, lastLogin,
lastReboot, anti virus, network connections info of that system (name, ip,
gateway, network mask, dns server, dhcp server, mac address for each
connection), and softwares information (name, version, product key for each
software)
How can i do this? Any preferred ways? Please guide me.
Thanks in advance.
Regards,
Pop.
SECURITY PROBLEM: WebSphere user name and password stored as a plain text
how can we encrypt passwords stored in this file? Is there a tool or setting change solving this problem?
Adding sigar to j2ee application
I would like to ask 2 questions regarding sigar:
1. When trying to test it on linux OS (see full information below) using your given example CpuInfo.java using the following commands from the hyperic-sigar-1.6.4/sigar-bin/lib directory:
javac -classpath ./sigar.jar CpuInfo.java
java -cp .;./sigar.jar CpuInfo
I am getting the following error:
Segmentation fault
./sigar.jar: line 1: PK: command not found
./sigar.jar: line 2: META-INF/?�PK: No such file or directory
./sigar.jar: line 23: syntax error near unexpected token `('
./sigar.jar: line 23: `s#ל�M:¯�y/f±�
2. How can I add the Sigar to my j2eee application ? is it enough to only add the sigar.jar to the classpath ?
Thanks in advance.
System information:
Sigar version.......java=1.6.4.129, native=1.6.4.129
Build date..........java=04/28/2010 04:26 PM, native=04/28/2010 04:26 PM
SCM rev.............java=4b67f57, native=4b67f57
Archlib.............libsigar-amd64-linux.so
Current fqdn........192.168.168.117
Hostname............nglinux
Current user........esb7
OS description......Red Hat Enterprise Linux 5
OS name.............Linux
OS arch.............x86_64
OS machine..........x86_64
OS version..........2.6.18-194.3.1.el5
OS patch level......unknown
OS vendor...........Red Hat
OS vendor version...Enterprise Linux 5
OS code name........Tikanga
OS data model.......64
OS cpu endian.......null
Java vm version.....2.4
Java vm vendor......IBM Corporation
Java home.........../opt/IBM/WebSphere/ESB7/java/jre
Alert not firing
I have setup an alert that should notify me when the disc space on our database server is getting below 8GB. I have setup the following:
Metric: Total bytes Free
Is less than 8.0 GB
Enable Action once every 120 times conditions are met within a time period of 2 hours.
Somehow the alert is not firing even when the free space is <1MB. In the administration, HQ Server Settings Alerts is turned on.
Does anyone know why this alert is not firing?
How do I create or add new platform Types, ServiceTypes and Server Types?
I have already collected application metrics which has host name, generated time of metrics, application name and service at a method level of metrics.
For Application Metrics Example:
Application1
Service1
Method-1->Metrics- Number of messages MIN, MAX and AVG
-> Metrics- Response time MIN, MAX and AVG
Method-2
Method-n
Services2
Method-1
Method-2
Method-n
I am not sure how to feed this application metrics from a Custom Java App using the Web Services API or plugin.
I was able to create a Platform but had to use a predefinedResourcePrototype like Linux. I need to use a Generic ResourcePrototype because I will not have the type of Operating System (OS) from Application Metrics. I was unable to create my specific serviceA because the Service doesn’t belong in Linux type resource. I had the same issue while creating the Server also.
What approach I can take to achieve this? Or How do I create or add new platform Types, ServiceTypes and Server Types?
Thanks
Jawed
Websphere Configuration cannot be saved ..
-Hello,
I have now installed the hyperic 4.6.6 server and agent. Hyperic server is running in Linux and agent in AIX servers. My aim is to monitor Websphere 6.1 and 7.0 application servers installed in AIX servers ...
I can succesfully connect to agent and the communication works fine but I cannot save websphere configuration.. So it is not showing active... Instead I can read just the AIX server statistics .... Not the Websphere monitoring .... I am getting a read timeout exception ... It just waits when I edit and try to save ....
I have attached the screenshot and the excetion logs.... Have anyone experienced this issue ... I have this problem for a week and spend lot of time for this... Can any one suggest a solution ?? In hyperic agent I use the websphere Java and hyperic Server uses its own java ....
Sigar API for GPU and OpenCL Information
Hello , i would like to see gpu information for sigar will be good.
and also for OpenCL
I can only get CPU Information is useless for me now...
Bug on Service.Create
Hello on Windows 7 , i tried to make new service with help of sigar api.
But there seems much bug.
Below code is not working.
I always got error file path is wrong.
I changed paths even checked all bytes of my strings but it did not solve my problem.
I've looked lpBinaryPathName
MSDN Says:
The fully qualified path to the service binary file. If the path contains a space, it must be quoted so that it is correctly interpreted. For example, "d:\\my share\\myservice.exe" should be specified as "\"d:\\my share\\myservice.exe\"".
But also changing path to that kind of solution did not solve my problem.
On Windows MSDN docs says about CreateService :
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682450(v=vs.85).aspx
So after trying to create service all day with sigar failed.I finally moved to JNA temporary.
My solution became like this:
@Override
public void putOnStartup(String serviceName,String path, String description) {
Pointer pointer = Advapi32.INSTANCE.OpenSCManager(null,null, Advapi32.SC_MANAGER_ALL_ACCESS );
Pointer result = Advapi32.INSTANCE.CreateService( pointer , serviceName ,
description , Advapi32.SERVICE_ALL_ACCESS , Advapi32.SERVICE_WIN32_OWN_PROCESS ,
Advapi32.SERVICE_AUTO_START , Advapi32.SERVICE_ERROR_IGNORE , path , null , null , null , null , null );
if(result != null) {
Advapi32.SERVICE_DESCRIPTION desc = new Advapi32.SERVICE_DESCRIPTION();
boolean success = Advapi32.INSTANCE.ChangeServiceConfig2(result, 1 , desc);
if(!success) {
JPanel panel = new JPanel();
panel.setLayout(new GridLayout( 2 , 2 ));
JLabel label = new JLabel("Enter a password:");
JPasswordField pass = new JPasswordField(10);
panel.add(label);
panel.add(pass);
JLabel label2 = new JLabel("Enter UserName:");
JTextField pass2 = new JTextField(10);
panel.add(label2);
panel.add(pass2);
panel.add(label);
panel.add(pass);
String[] options = new String[]{"OK", "Cancel"};
int option = JOptionPane.showOptionDialog(null, panel, "Windows Password",
JOptionPane.NO_OPTION, JOptionPane.PLAIN_MESSAGE,
null, options, options[1]);
if(option == 0) // pressing OK button
{
char[] password = pass.getPassword();
String strPassword = new String(password);
String userName = pass2.getText();
Advapi32.INSTANCE.CreateService( pointer , SERVICE_NAME ,
description , Advapi32.SERVICE_ALL_ACCESS , Advapi32.SERVICE_WIN32_OWN_PROCESS ,
Advapi32.SERVICE_AUTO_START , Advapi32.SERVICE_ERROR_IGNORE , path , null , null , null , null , null );
}
}
Advapi32.INSTANCE.CloseServiceHandle(result);
}
}
Error while installing Hyperic with embeded postgres
Hi,
I'm trying to install Hyperic Open Source over a RHEL 6.3 64 bits.
I ran into this error during the installation (agent and server at the same time)
"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 /home/hyperic/server-4.6.6/logs/hqdb.log file.
--------------------------------------------------------------------------------
Waiting for server to stop...
Stopping built-in database...
--------------------------------------------------------------------------------
An ERROR occurred, the installation cannot continue.
FATAL EXCEPTION at /opt/hyperic/hyperic-hq-installer-4.6.6/installer/data/setup.xml:523: : The following error occurred while executing this line:
/opt/hyperic/hyperic-hq-installer-4.6.6/installer/data/setup.xml:532: The following error occurred while executing this line:
/opt/hyperic/hyperic-hq-installer-4.6.6/installer/data/setup.xml:777: The following error occurred while executing this line:
/opt/hyperic/hyperic-hq-installer-4.6.6/installer/data/setup-db-PostgreSQL.xml:156: The following error occurred while executing this line:
/opt/hyperic/hyperic-hq-installer-4.6.6/installer/data/setup-db-PostgreSQL.xml:197: The following error occurred while executing this line:
/opt/hyperic/hyperic-hq-installer-4.6.6/installer/data/server.xml:125: exec returned: 1
--------------------------------------------------------------------------------
Deleting temporary JRE "
If a "cat" the log as adviced, I get this message.
"pg_ctl: PID file "/home/hyperic/server-4.6.6/hqdb/data/postmaster.pid" does not exist
Is server running?"
So the problem seems to be related to the embeded database but I have no idea what can I do to fix that...I'm working on a test machine with snapshots so roll backs are easy
Any help is more than welcome!
elgreco81
How to get correctly the percent of used CPU per process
I'm trying to get the percent of used CPU per process on windows with Qt/C++. Firstly i get a list of running processes and after, for each process i try to get the used CPU, for most process the result looks valid (they match with task manager in windows), but with the AIDA64 process (that is running a CPU stress test in background), i got strange values like 312% what is wrong with my c++ code?
sigar_t *sigarproclist;
sigar_proc_list_t proclist;
sigar_open(&sigarproclist);
sigar_proc_list_get(sigarproclist, &proclist);
for (size_t i = 0; i < proclist.number; i++)
{
sigar_proc_cpu_t cpu;
int status1 = sigar_proc_cpu_get(sigarproclist, proclist.data[i], &cpu);
if (status1 == SIGAR_OK)
{
Sleep(50);
int status2 = sigar_proc_cpu_get(sigarproclist, proclist.data[i], &cpu);
if (status2 == SIGAR_OK)
{
sigar_proc_state_t procstate;
sigar_proc_state_get(sigarproclist, proclist.data[i], &procstate);
qDebug() << procstate.name << cpu.percent * 100 << "%";
}
}
}
sigar_close(sigarproclist);
link error with vc2010
hyperic-sigar-1.6.4
VC2010
other APIs looks fine, but I got two errors:
thanks.
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 file: urls and the other using http: urls. The http urls point to localhost apache which is properly serving the files. I can watch JNLP download them during its launch sequence via apache logs so I know the files are getting to my app properly.
Here are the two codebase tags
codebase="file:/Users/siberian/Documents/workspace_mnis/MNIS/localhost/" href="file:/Users/siberian/Documents/workspace_mnis/MNIS/localhost/minis.jnlp"
and
codebase="http://localhost/" href="http://localhost/mnis.jnlp"
If I double click the file: version it works fine. If I load it via my browser it works fine.
If I double click or browser load the http: version it fails to find the dynamic libraries with this error:
JNLPClassLoader: Finding library liblibsigar-universal64-macosx.dylib.dylib [AWT-EventQueue-0] DEBUG Sigar - no libsigar-universal64-macosx.dylib in java.library.path org.hyperic.sigar.SigarException: no libsigar-universal64-macosx.dylib in java.library.path
Now, the interesting to note is that file that it says it cant find liblibsigar-universal64-macosx.dylib.dylib
Note the prefix extra 'lib' and postfix extra '.dylib'.
There are notes on the Sigar/vmware forums about similar problems with no solutions.
The core question is, why is this acting differently in a file: context vs an http: context?
Also of note, I have unsigned and resigned all of my files, there are no signature errors that I can see.
Also: JaNeLa tells me all is fine
How to install on debian
Hi,
I'm trying to install Hyperic open source on debian and this message is shown:
=========================================================================
Installer Started
Current Date/Time: Thu May 02 15:53:51 CEST 2013
=========================================================================
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 5.0.0 Installation...
Checking for existence of install configuration file (-mode)
--------------------------------------------------------------------------------
An ERROR occurred, the installation cannot continue.
The specified Hyperic HQ install configuration file does not exist:
-mode
Make sure that the setup property is set to the correct file and
try running the installer again.
--------------------------------------------------------------------------------
It lookes like invoking setup.sh with "-mode" is wrong. I also tried "-mysql" but the same error occurs.
Did I download the wrong package? hyperic-hq-installer-noJRE-tar-5.0.0.tar.gz
Should I use V4.6.6 instead?
Any help appreciated
Roland
Monitoring ActiveMQ 5.8.0
Hi,
I have to monitor ActiveMQ 5.8.0 . But I am using hyperic 4.6.6 which allows to monitor activeMq up to 5.4.
So my activeMq was not auto discovered. when I manually creat new activeMq server5.4 and added configuration of my ActiveMQ 5.8.0 (process query and installed path) then activeMq was discovered and hyperic started monitoring to it. but still broker ,topic and connector were not discovered . I tried to to manually configure to broker by its name but it giving error of invalid configuration.and i dont know about what to set for Destination in topic setting....
Please someone guide me....???
vCenter Hyperic 5.8 vsphere Plugin
Hi, I was testing with the new version of Hyperic 5.8 and I'm not able to find the HQ vCenter or able to configure the vCenter server into Hyperic.
Checking on the release notes it seems that vsphere/vcenter plugin was a community plugin that should be now downloaded from Marketplace but I'm not able to find it.
Anyone know where to find it?
How do you get CPU ID or serial number using Hyperic Sigar?
Is there a method in the Sigar API that returns the CPU ID of the host running the JVM?