Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all 52618 articles
Browse latest View live

Wrong Units in Tomcat Process CPU Time

$
0
0
Hello all,

I'm getting weird readings from Tomcat's "Process CPU Time per Minute" metrics. Currently it displays values like "5 days 09:40:17", which doesn't make any sense (at least not to me). Could it be possible that the Tomcat plugin is using wrong units in the "ProcessCpuTime" reading? I don't know anything about HQ internals, but I think that the Tomcat plugin expects readings to be in milliseconds. The plugin's hq-plugin.xml says:

<metric name="Process Cpu Time"
            alias="ProcessCpuTime"
            indicator="true"
            template="${OBJECT_NAME}:${alias}"
            units="ms"
            collectionType="trendsup"/>

After some more investigation I found out that Java reports CPU times in nanoseconds. I took a CSV export of collected metrics and divided some sample values by one million (to convert from nanoseconds to milliseconds) and results did look like reasonable fractions of minutes.


I'm monitoring few Tomcat 6 instances running on 64-bit Ubuntu servers with Java 6 (Sun and OpenJDK versions).

Glassfish Plugin

$
0
0
I'm a new hyperic user. I'm a little confused. The documentation says that the
latest version has a Glassfish plugin but I couldn't find a glassfish-plugin.jar nor
did I find glassfish plugin code in svn. Is there a glassfish plug-in?

TNSPING is not working for oracle 10g

$
0
0
Hi,

I am new to hyperic and  have installed hyperic 4.2. I have configured the local oracle 10g server with 'system' user and have configured tnsping service for XE  as follows :

tnslistener : XE
timeout: 10

Listener is been started and from command prompt, tsnping for XE is working, however hyperic is showing that TNSPING service is unavailable.

I am getting below error in agent.log :

java.io.IOException: CreateProcess: ..\..\bundles\agent-4.2.0-1260\pdk\work\scripts\oracle\hq-tns-ping -p C:\oraclexe\app\oracle\product\10.2.0\server\BIN -n XE error=193
     at java.lang.ProcessImpl.create(Native Method)
     at java.lang.ProcessImpl.<init>(Unknown Source)
     at java.lang.ProcessImpl.start(Unknown Source)
     at java.lang.ProcessBuilder.start(Unknown Source)
     at java.lang.Runtime.exec(Unknown Source)
     at org.hyperic.util.exec.Execute.execute(Execute.java:316)
     at org.hyperic.hq.product.ExecutableProcess.collect(ExecutableProcess.java:202)
     at org.hyperic.hq.product.Collector.run(Collector.java:562)
     at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
     at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
     at java.lang.Thread.run(Unknown Source)
2010-12-13 16:00:20,709 ERROR [pool-1-thread-15] [ExecutableProcess] [../../bundles/agent-4.2.0-1260/pdk/work/scripts/oracle/hq-tns-ping, -p, C:\oraclexe\app\oracle\product\10.2.0\server\BIN, -n, XE]: java.io.IOException:
CreateProcess: ..\..\bundles\agent-4.2.0-1260\pdk\work\scripts\oracle\hq-tns-ping -p C:\oraclexe\app\oracle\product\10.2.0\server\BIN -n XE error=193

Please advise.

Thanks in advance.

Send Alert as SMS

$
0
0
Hi,

We are looking to configure the Hyperic HQ to send alerts via SMS when a escalation occurs.

1. Where do we configure the SMS gateway for the same?
2. Are there any free SMS gateways that can be used and if yes how should they be configured?
3. Can a email  be send as a SMS?

Thanks and Regards,
Arun E V

Unidirectional to Bidirectional Communications

$
0
0
Gurus,
Can one of you help me in understanding the difference between Unidirectional and Bidirectional Communications.

What is recommended in what scenario. 

Thanks,
YA

ZFS filesystem support with sigar iostat

$
0
0
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

Errors while performing Hbm2DDLExporter

$
0
0
Hi,

Cannot isnstall hyperic open source in windows 2003 server. The error message:

Choices:
        1: HQ Built-in Database
        2: Oracle 10g/11g
        3: PostgreSQL
        4: MySQL Enterprise / Community Server 5.x
The HQ built-in database is provided for EVALUATION PURPOSES ONLY. For productio
n use, MySQL or Oracle is recommended. What backend database should the HQ serve
r use? [default '1']:
4
Enter the JDBC connection URL for the MySQL Enterprise / Community Server 5.x da
tabase [default 'jdbc:mysql://localhost:3306/HQ']:

Enter the username to use to connect to the database:
hqadmin
Enter the password to use to connect to the database.:
(again):
Enter an encryption key to use to encrypt the database password.:
12345678
What should the username be for the initial admin user? [default 'hqadmin']:

What should the password be for the initial admin user?:
(again):
What should the email address be for the initial admin user? [default 'hqadmin@t
estescma.local']:

Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Checking database permissions...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: C:\Program Files...
Creating server configuration files...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server db-upgrade files...
Copying server libs...
Setting up server database...
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
--------------------------------------------------------------------------------

An ERROR occurred, the installation cannot continue.
FATAL EXCEPTION at C:\Documents and Settings\Administrator\Desktop\hyperic-hq-in
staller-4.5.1\installer\data\setup.xml:493: : The following error occurred while
executing this line:
C:\Documents and Settings\Administrator\Desktop\hyperic-hq-installer-4.5.1\insta
ller\data\setup.xml:502: The following error occurred while executing this line:

C:\Documents and Settings\Administrator\Desktop\hyperic-hq-installer-4.5.1\insta
ller\data\setup.xml:683: The following error occurred while executing this line:

C:\Documents and Settings\Administrator\Desktop\hyperic-hq-installer-4.5.1\insta
ller\data\setup-db-MySQL.xml:16: The following error occurred while executing th
is line:
C:\Documents and Settings\Administrator\Desktop\hyperic-hq-installer-4.5.1\insta
ller\data\setup-db-hibernate.xml:94: org.hibernate.tool.hbm2x.ExporterException:
Errors while performing Hbm2DDLExporter
--------------------------------------------------------------------------------

Deleting temporary JRE

C:\Documents and Settings\Administrator\Desktop\hyperic-hq-installer-4.5.1>

Help please

Thanks

No platforms types available on a Windows 2003 installation of Hyperic

$
0
0
Hello,
  I have installed Hyperic 4.5 on Windows 2003 using the built in database.  It does not appear to have populated the platform types during the installation.  When adding an auto discovered windows client the following error appears:

Unable to import platform : org.hyperic.hq.common.SystemException: org.hyperic.hq.common.SystemException: Unable to find PlatformType [Win32]

If I go to add a platform manually, the platform type drop down just lists the word select.

I do not seem to be the only one having this issue, as there are a couple of posts about this in the forum.  Is this a known bug with version 4.5?  Is there somewhere I can download version 4.4?

I did try truncating the installation directory, as that was the solution in one of the threads about this issue, but that did not resolve the issue for me.

Thank you for your help,
Jeff

HQAPI Error running command: Unable to deserialize result

$
0
0
Hi,

We are getting a fatal error during the execution of the «resource list» command using HQAPI, when applied to a Service that have a higher number of instances created.

We are using Hyperic HQ 4.4.0, and hqapi1-3.2.
Using generic names for sake of description of the problem, we have a Windows «Platform_A» with a server «ServerA» with the following services created (each with a different instance count):

Platform_A
.... Server_A
........ Service_A (1)
........ Service_B (10)
........ Service_C (50)
........ Service_D (2)

When we execute the «resource list» command using HQAPI for Service_A, Service_B, Service_D, we get back the <ResourcesResponse> as expected, without any problems, but when we execute it for the Service_C (which have 50 instances) we get the following fatal error:

# hqapi.bat resource list --prototype="Server_A Service_C" --host localhost --user hqadmin --password hqadmin

DefaultValidationEventHandler: [FATAL_ERROR]: Invalid byte 1 of 1-byte UTF-8 sequence.
     Location: line 1
Error running command: Unable to deserialize result


It seems that an internal error occured in HQAPI, probably due to high number of instances of Service_C.

Is this a bug?
Or how can we workaround this?

Thanks.

Message was edited by: Joaquim Freitas

Message was edited by: Joaquim Freitas

no metrics data on new agent for few hours. Cache, performance...?

$
0
0
Hi!

I upgrade Hyperic server from 4.3 to 4.5.1.
Everythings seems ok, but yesterday i upgraded one of agent and agent not collecting metrics.
I succesfully added new autodiscovery items.

On agent i see these files are 0 byte:
data/measurement_spool
data/measurement_schedule

I reset collection intervals but nothing...
And few hours later measurement_schedule now 158720 bytes and on the server shown some metrics data.
Today all metrics work.

Why need to wait hours?


Maybe a cache problem?
I have Platforms (82) | Servers (383) | Services (3107).
I atteched my health page.
Somebody known which cache settings is wrong?

thanks,
Zoltan

Hyperic agent and Ubuntu Upstart service problems

$
0
0
Hi,

Anyone here that successfully running hyperic agent with Ubuntu Upstart service?

If you do, can you please provide me with your /etc/init upstart .conf file?

We have problems that Upstart hangs during start and stop of the service. Our file looks like this:

description     "Hyperic-agent"
author          "Admin"

start on (net-device-up
          and local-filesystems
          and runlevel [2345])
stop on runlevel [016]

respawn
respawn limit 5 1800

env HOME=/opt/hyperic
umask 022

expect fork

exec /opt/hyperic/hyperic-hq-agent/bin/hq-agent.sh start

ColdFusion 9

$
0
0
Has anyone been able to get Hyperic HQ running with ColdFusion 9 (Enterprise or Standard)?

Thanks!

Hyperic on FreeBSD 8.2 x86-64 with PostgreSQL 9.0

$
0
0
Here is my today experience installing Hyperic HQ on the platform in subject. Hope it will help somebody else going my road.
First of all, this combination is unsupported. It simply does not work from the very beggining with a lot of problems.
Second, I did solve most of them. In this message I will try to tell about the problems & solutions (I can miss some details as I am doing this from memory after full day of hard work).
So, lets start from native libraries. There are two of them - Sigar & Wrapper.
For sigar, you need to copy freebsd*-6*.so to freebsd*-8*.so. It will still link to some old libraries that should be aliases in library mappings.
For Wrapper - there is no x86-64 wrapper for freebsd in the package. I did take wrapper libraries from more fresh wrapper distribution. It worked, but you need to install freebsd 6.x compat port.
Please note that there are multiple places where all the libraries are in. Use find command to find all of them
Also installer makes good verbose log to look into
Next problem is "probe" script - it needs bash, but change /bin/bash to /bin/sh and it will work. It will try to set sysctl that do not exists on FreeBSD, so rollback this in /etc/sysctl.conf
Also by default installer sets up with embedded Postgresql (that does not work on FreeBSD). So, call "setup.sh -postgresql" to install with external postgresql. If you already have binaries copied, remove directory with db or it will try to start it. Also jre directory should also be removed.
Next problem: right after you enter database user name, installation crashes. It can't read password. I had to patch java file (afair Server.java) to make it read password in non-secure way. It worked.
OK, now we got around most FreeBSD specific problems. Now to PostgreSQL 9. It is not supported. First of all you need to patch DB detector to treat it as PostgreSQL 8.
After that you will find out that driver included (8.2) does not work with server 9.0, printing some serialization exception. It should be replaces with more fresh driver.
More fresh driver throws exception on setQueryTimeout (earlier drivers did not throw exception, but still did nothing for this call). Spring context XML must be patched to remove timeout. It's in Hibernate transaction manager definition.
Now, latest problem I did not overcome yet, is more strict setTransactionReadOnly checks in newer driver. I outputs errors now and then, but mostly works. I've managed to set  up one agent. The problem with ReadOnly value seems to come from connection pool that given a connection to Spring with transaction active. And Spring calls setReadOnly that must not be called inside a transaction. I hope to overcome this tomorrow by taking another connection pool (I've already tried to raise pool version - it did not help).
BTW: if somebody has better answer to the last problem, please let me know.

SIGAR w/ maven 2 - how to handle native libs with java.library.path

$
0
0
Hi folks, having some issues building maven and SIGAR using the native libs. 

Any ideas on how to create a custom .pom file and set any necessary config values to have maven create a build with SIGAR bundled and point itself to the proper native libs as well?

Ultimately what I'd like to do is create a .war file (or .jar) that has the .dylib/.so native extensions bundled inside, however this may not be possible.  If not, what is the best way to set the java.library.path value for maven builds?

Here's a snippet of what I'm doing here in the .pom file:


      <!-- need to copy/unzip the SIGAR native libraries to the target directory and tell SIGAR where they are -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-test-resources</phase>
            <configuration>
              <tasks>
                 <echo>SIGAR java library version used is ${sigar.version}</echo>
                 <echo>Copying/unzipping SIGAR native libraries (version ${sigar.version}) to local build directory</echo>
                 <mkdir dir="${project.build.directory}/jboss-sigar" />
                 <copy toDir="${project.build.directory}/jboss-sigar">
                    <fileset dir="${settings.localRepository}/org/hyperic/sigar-dist/${sigar.version}" includes="*.zip" />
                 </copy>
                 <unzip dest="${project.build.directory}/jboss-sigar">
                    <fileset dir="${project.build.directory}/jboss-sigar" includes="*.zip" />
                    <patternset>
                       <include name="**/lib/sigar.jar" />
                       <include name="**/lib/bcel*.jar" />
                       <include name="**/lib/*.so" />
                       <include name="**/lib/*.sl" />
                       <include name="**/lib/*.dll" />
                       <include name="**/lib/*.dylib" />
                    </patternset>
                 </unzip>
                 <move todir="${project.build.directory}/jboss-sigar" flatten="true">
                    <fileset dir="${project.build.directory}/jboss-sigar">
                       <include name="**/lib/*" />
                    </fileset>
                 </move>
                 <delete dir="${project.build.directory}/jboss-sigar/hyperic-sigar-${sigar.version}" />
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>



Can you let me know how you folks are handling this? Thanks!

"result set is closed" error while testing own DB2 plugin.

$
0
0
I have created my own SQL Query plugin for a simple test of db2.

Here is the error I am getting:
Simple ALIS Number of Tables:
   sql:SELECT COUNT(*) FROM syscat.tables:Number of Tables:jdbcDriver=com.ibm.db2.jcc.DB2Driver,jdbcUrl=jdbc%3Adb2%3A//myserver%3A50004/XXX,jdbcUser=myuser,jdbcPassword=*****
getValue failed for metric: Simple ALIS:sql:SELECT COUNT(*) FROM syscat.tables:Number of Tables:jdbcDriver=com.ibm.db2.jcc.DB2Driver,jdbcUrl=jdbc%3Adb2%3A//myserver%3A50004/XXX,jdbcUser=myuser,jdbcPassword=*****
MetricNotFoundException: Query failed for Number of Tables, while attempting to issue query SELECT COUNT(*) FROM syscat.tables:[jcc][t4][10120][10898][3.51.90] Invalid operation: result set is closed. ERRORCODE=-4470, SQLSTATE=null


Here is the metric I am trying to test:
<metric name="Number of Tables"
            template="sql:SELECT COUNT(*) FROM syscat.tables:Number of Tables"
            indicator="true"/>

Here is the command I am using to test:
java -jar ./agent-4.5/bundles/agent-4.5/pdk/lib/hq-pdk-4.5.jar \
-Dplugins.include=simplealis \
-Dcom.ibm.db2.jcc.DB2BaseDataSource.allowNextOnExhaustedResultSet=1  \
-DjdbcUrl=jdbc:db2://myserver:50004/XXX  \
-DjdbcDriver=com.ibm.db2.jcc.DB2Driver  \
-DjdbcUser=myuser \
-DjdbcPassword=***** -t "Simple ALIS"

I tried with and wo com.ibm.db2.jcc.DB2BaseDataSource.allowNextOnExhaustedResultSet=1.

I am able to run the sample SQL Query plugin from this url:
http://support.hyperic.com/display/EVO/SQL+Query+Plugin

I am new to hyperic so this could definitely be a noob error.

Synthetic transaction monitoring

$
0
0
Hi,

I'm testing the free version of hyperic and wanted to know if there's a plugin or anything that allows you to carry out a synthetic web transaction, and measure the time take to execute I.e?

1. goto a website
2. login to the site
3. place an order
4. logout

I've seen the HTTP test but this is a basic response test and not what I'm looking for. Any help would be appreciated.

Sigar FileSystemUsage and large drives

$
0
0
Hello,

I'm investigating using Sigar to get the amount of free and total disk space in a Java application. There is a bug in the Java 1.6 methods (java.io.File.getFreeSpace and getTotalSpace) which cause them to return 0 when the disk is large (over 4 TB).

Does Sigar handle this case?.

Thanks.

- Chris

Average Response Time tomcat 5.5

$
0
0
Hi There,

How do I graph Average Response Time tomcat 5.5 using Version 4.6 enterprise edition?

I cannot figure it out can someone please help me? I have managed to add all the tomcat instances to Hyperic I got all green ticks but I cannot anyway to graph the Average Response Time for tomcat instance.

Thanks

Please let me know if these products are supported by hyperic

$
0
0
Hi can any one let me know if the below products are supported in  Hyperic Enterprise edition

1. SQL Server 2008
2. IBM Portal 6
3.IBM Process Server 6
4. IBM Http Server 6
5. IBM Webshphere MQ 7
6. Oracle Weblogic 7.1
7. PostgreSQL 9.1 and 9.0
8. Apache Tomcate 7.0

SIGAR ProcTime.getStartTime Api returns future time on Solaris Sparc 10

$
0
0
Here the code I am using for testing this on solaris spar system.
uname -a
SunOS cl-test-t5220-1-vm1 5.10 Generic_141414-02 sun4v sparc SUNW,SPARC-Enterprise-T5220

Please let me know if there is any issue in this code or why processTime is returning future time

import org.hyperic.sigar.Cpu;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.FileSystem;
import org.hyperic.sigar.FileSystemUsage;
import org.hyperic.sigar.Mem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;



public class Test{


        public static void main(String args[])
        {

                System.out.println("Inside main method");

                Sigar sigar;

        // process id of current process
         long pid;


                sigar = new Sigar();

//                pid = 14956;
                pid = sigar.getPid();

                System.out.println("Pid : " +pid);

        try{
                System.out.println("Inside try block....");

                long processStarttime = sigar.getProcTime(pid).getStartTime();


                double uptime = sigar.getUptime().getUptime();

                System.out.println("System Up time time in millis : " + uptime
+ " Uptime in date = " + toDate((long)uptime));
                System.out.println("Process Start time in millis : " + processS
tarttime + " in Date Format : " + toDate(processStarttime));
                                long systemCurTime = System.currentTimeMillis()
;
                System.out.println("System Current time : " + systemCurTime + "
In Date Format " + toDate(systemCurTime));

                long processUptime =  systemCurTime-processStarttime;

                System.out.println("Process upTime : "+processUptime);
        }
        catch(SigarException e)
        {
                System.out.println("Sigar Exception ..." +e);
        }


        }

        private static String toDate(long millis) {
            DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SS
S");

            //long now = System.currentTimeMillis();

            Calendar calendar = Calendar.getInstance();
            calendar.setTimeInMillis(millis);

//          System.out.println(now + " = " + formatter.format(calendar.getTime(
)));
            return (formatter.format(calendar.getTime()));

        }
}


Output:
Inside main method
Pid : 16628
Inside try block....
System Up time time in millis : 1068307.0 Uptime in date = 31/12/1969 07:17:48.307
Process Start time in millis : 1330434543000 in Date Format : 28/02/2012 08:09:03.000
System Current time : 1321555976635 In Date Format 17/11/2011 01:52:56.635
Process upTime : -8878566365

Note the process Start time is in Future time.
Viewing all 52618 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>