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

Hyperic : Auto hot deployment issue

$
0
0
Hi All,

We are facing some problem of auto hot deployment in hyperic.
some of the *.xml files are automatically get hot deploy on temp deploy folder.

I can see the files with changed time stamp in hq-server/server/default/tmp/deploy folder.
due to which hyperic stops monitoring and not allow to login to Hyperic UI.

we are using : Hyperic 4.3 version
Environment: Linux

Let me know if any one has any idea, suggestions and have this problem observed.

Thanks in advance

Sunny Ratra

IOwait CPU alert

$
0
0
Hello
I've Hyperic NE and monitoring 3 Linux server. I need setting IOwait  alert for platform but I dont find correct option . ¿where is IO wait option?

Thanks

Message was edited by: miguel_

Message was edited by: miguel_

Message was edited by: miguel_

Testing Sigar.NetStat.getAllInboundTotal() and getAllOutboundTotal()

$
0
0
Hello Hyperic community,
I need to be able to collect bandwidth information from the current machine I am attempting to use Sigar API for this due to Sigar's cross-platform compatibility.

However, my test doesnt seem to be working.
All the test does is go in an infinite loop and collect bandwidth total every two seconds.
However, no matter what I am downloading, the api always returns the same values.

I also cant find anywhere in the documentation that indicates if the values are in bits, bytes, KB or other measurements.

Any clarity or help on this would be greatly appreciated.


Here is the code:
@Test
    public void incomingOutgoingDataTest() throws Exception {
        Sigar.load();
        Sigar sigar = new Sigar();

        int totalIncoming = 0;
        int totalOutgoing = 0;

        InetAddress ia = InetAddress.getLocalHost();
        sigar.getNetStat().stat(sigar, ia.getAddress(), 80);

        int i = 1;
        while(true) {
            int incoming = sigar.getNetStat().getAllInboundTotal();
            int outgoing = sigar.getNetStat().getAllOutboundTotal();
            totalIncoming += incoming;
            totalOutgoing += outgoing;

            System.out.println("incoming : "+incoming);
            System.out.println("outgoing : "+outgoing);
            System.out.println("totalIncoming : "+totalIncoming);
            System.out.println("totalOutgoing : "+totalOutgoing);

            Thread.sleep(2000);
        }
    }




And here is the output:
incoming : 1
outgoing : 115
totalIncoming : 1
totalOutgoing : 115
incoming : 1
outgoing : 115
totalIncoming : 2
totalOutgoing : 230
incoming : 1
outgoing : 115
totalIncoming : 3
totalOutgoing : 345
incoming : 1
outgoing : 115
totalIncoming : 4
totalOutgoing : 460
incoming : 1
outgoing : 117
totalIncoming : 5
totalOutgoing : 577
incoming : 1
outgoing : 116
totalIncoming : 6
totalOutgoing : 693
...
...
...

Critical installer bug

$
0
0
This is an issue in at least 4.5.2. I say critical because it essentially renders the entire HQ webapp unusable; not sure if it affects data/metric collections.

Problems start to arise when one opts to install Hyperic HQ against an existing Oracle DB. First, there is the problem of setup instructions at this link being inaccurate: http://support.hyperic.com/display/EVO/Set+Up+Oracle#SetUpOracle-ObtainOracleJDBCDriver%28HypericHQonly%29

Step 6 should read: Copy the driver jar file to hyperic-hq-installer-4.x.y/installer/lib

Second, and more importantly, is the fact that the installer fails to do anything about the JDBC driver jar not getting copied to hq-engine/hq-server/webapps/ROOT/WEB-INF/lib. Clearly, without this step the site will not work at all, as evidenced by this stack trace on server startup:

2011-08-15 19:41:38,738 WARN  [main] [org.hibernate.cfg.SettingsFactory@117] Could not obtain connection metadata
java.sql.SQLException: oracle.jdbc.driver.OracleDriver
        at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:208)
        at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:157)
        at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:617)
        at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:561)
        at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:427)
        at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:132)
        at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:94)
.............
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:202)
        ... 136 more

It appears that the installer does make an attempt to copy the supplied ojdbc*.jar to the resultant lib/ directory of the server but that is insufficient for Tomcat to load the driver!

The workaround is to either copy the driver to hq-engine/hq-server/webapps/ROOT/WEB-INF/lib or hard-link it there (NOTE: By default, Tomcat does not support symlinks - at least not the way it's bundled with HQ).

I am not sure whether the Oracle JDBC driver could not be bundled with with the installer for licensing reasons, but the problem does not seem to affect MySQL installs since the connector jar is in the WEB-INF/lib already.

I am contemplating patching the tarball (server-4.5.2.tar.gz) locally to include the driver jar and repackaging it with the install here internally, since we have to do this anyway to automate installation with new HQU and other plugins. Is there a legal reason to not do this, keeping in mind the package will not redistributed?

Difficulty in configuring Sigar API in Eclipse project

$
0
0
Dear all,

I'm a newbie to Sigar API. I need to develop a simple java application to validate the system configurations (CPU, RAM, HD etc) against a given set of recommended configurations.

I'm developing in Eclipse Indigo, and in my project I have added sigar.jar (sigar 1.6.4 is used) to the project build path and set it's native library location to sigar-bin/lib. However when I try to retrieve configuration info using Sigar API, it always returns null, 0 results.  I used CpuInfo class to retrieve my cpu info, and NetInfo to get network info, thus far  was unsuccessful with them. (eg: cpu.getTotalCores() always return 0 and netInfo.getDefaultGateway() always returns null).

Is this because the native library path is not properly set to my project classpath? Or some incompatibility with Sigar API and my system? Can you guys please give me any tip on what could be the reason for my application not to work as expected?

My system configurations :
    CPU:  Intel Core i7-2630QM CPU @ 2.00GHz × 8
    RAM: 8 GB
    OS : Ubuntu 11.04 (64 bit)
Any help on this matter is much appreciated.

Thanks,
Dileepa

vFabric Hyperic 4.6.0.1 agent error

$
0
0

Cannot auto-discover the ERS 4.x on 4.6 and 4.6.0.1 vFabric Hyperic 403apache.JPGagent with the 4.6.0.1 vFabric Hyperic server.

 

Getting 403 error on Hyperic server web console and below error.

 

2012-03-01 10:13:14,769 ERROR [AgentDaemonMain] [MeasurementCommandsService] Error getting real time measurement: Plugin error: org.apache.http.conn.HttpHostConnectException: Connection to http://10.125.12.7:0 refused
2012-03-01 10:13:15,042 ERROR [AgentDaemonMain] [MeasurementCommandsService] Error getting real time measurement: Plugin error: 403 (Apache)

2012-03-06 11:11:09,389 WARN  [MeasurementEnabler1] [org.hyperic.hq.measurement.server.session.MeasurementManagerImpl@1668] Error turning on default metrics, configuration (port=7080,snmpPort=1610,ssl=false,snmpUser=username,platform.id=10501,platform.fqdn=SS93VPWB01S.sg.visaps.com,ServerConf=/app/ERS/4.0.3/servers/qaweb/conf/httpsd.conf,platform.name=SS93VPWB01S.sg.visaps.com,path=/,server.log_track.files=logs/error.log,snmpIp=127.0.0.1,snmpVersion=v2c,snmpPrivacyType=none,platform.log_track.level=Warn,protocol=http,server.log_track.level=Error,server.config_track.enable=false,platform.log_track.enable=true,snmpTransport=udp,hostname=10.125.31.167,snmpAuthType=none,platform.config_track.enable=true,installpath=/app/ERS/4.0.3/servers/qaweb,server.log_track.enable=false,platform.type=Solaris,platform.ip=10.125.25.64,server.port=7080,sotimeout=10,server.name=SS93VPWB01S,snmpCommunity=public,) couldn't be validated
org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Plugin error: 403 (Apache)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1586)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.enableDefaultMetrics(MeasurementManagerImpl.java:1666)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.handleCreateRefreshEvents(MeasurementManagerImpl.java:1499)
        at sun.reflect.GeneratedMethodAccessor807.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
        at org.hyperic.hq.monitor.aop.aspects.PerformanceMonitor.monitorServiceMethod(PerformanceMonitor.java:84)
        at sun.reflect.GeneratedMethodAccessor262.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy60.handleCreateRefreshEvents(Unknown Source)
        at org.hyperic.hq.measurement.server.session.MeasurementEnabler.processEvents(MeasurementEnabler.java:84)
        at org.hyperic.hq.zevents.TimingListenerWrapper.processEvents(TimingListenerWrapper.java:44)
        at org.hyperic.hq.zevents.BufferedListener$BufferedEventRunnable.run(BufferedListener.java:64)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Plugin error: 403 (Apache)
        at org.hyperic.hq.measurement.agent.client.AgentMonitor.getLiveValues(AgentMonitor.java:191)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.getLiveMeasurementValues(MeasurementManagerImpl.java:1621)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1584)
        ... 29 more

 

2012-03-08 19:09:53,917 ERROR [Thread-3] [AutoScan] AutoScan failed for Apache-ERS 4.x
java.lang.NullPointerException
        at org.hyperic.hq.plugin.apache.ApacheServerDetector.configureServer(ApacheServerDetector.java:389)
        at org.hyperic.hq.plugin.apache.ErsApacheServerDetector.getServerList(ErsApacheServerDetector.java:104)
        at org.hyperic.hq.plugin.apache.ErsApacheServerDetector.getServerResources(ErsApacheServerDetector.java:190)
        at org.hyperic.hq.autoinventory.scanimpl.NullScan.scan(NullScan.java:83)
        at org.hyperic.hq.autoinventory.Scanner.start(Scanner.java:198)
        at org.hyperic.hq.autoinventory.ScanManager.mainRunLoop(ScanManager.java:141)
        at org.hyperic.hq.autoinventory.ScanManager.access$000(ScanManager.java:41)
        at org.hyperic.hq.autoinventory.ScanManager$1.run(ScanManager.java:107)

 

 

ERS conf setup as below.

 

LoadModule covalent_snmpcommon_module "/app/ERS/4.0/apache2.2/modules/covalent/mod_snmpcommon.so"
LoadModule covalent_snmpagt_module "/app/ERS/4.0/apache2.2/modules/covalent/mod_snmpmonagt.so"

LoadModule rt_module "/app/ERS/4.0/apache2.2/modules/covalent/mod_rt.so"

 

 

#-------SNMP Start-------------
ExtendedStatus On
LogFormat "%s" rt_log
LogFormat "%R" enduser
CustomLog "|/usr/local/apache2/bin/rotatelogs
logs/rt_log.%Y-%m-%d-%H-%M-%S 300"        rt_log
CustomLog "|/usr/local/apache2/bin/rotatelogs
logs/enduser.%Y-%m-%d-%H-%M-%S 300"  enduser

 

<Location /server-status>
Sethandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>

 

<IfModule mod-snmpcommon.c>
    SNMPvar "/app/ERS/4.0/servers/<instance name>/var"
    SNMPconf "/app/ERS/4.0/servers/<instance name>/conf"
</IfModule>

"process cpu time" metrics for tomcat

$
0
0

I want the meaning of following metrics of Tomcat:

1.Process cpu time

2. Process cpu time per min

3. Heap memory free

4. Free Physical memory size

issue with MQ Series plugin configuration

$
0
0

Hi,

 

using Hyperic HQEE 4.6.6, I try to monitor MQ Series activity with the related plugin. But I don't succeed in configuring the server monitoring.

I've created a new server monitoring (WSMQ7) with its related type as "Websphere MQ QManager 7" and gave it the install path of the MQ server.

Then, the plugin ask me to modify the "configuration properties".

Giving it a "queue.manager.name" and validating the input QM_HUB, the plugin says that "The configuration has not been set for this resource due to : Invalid  configuration: Error contacting resource:  mqseries-mgr:Mgr=QM_HUB:ConnectionCount".

 

Do you have an idea where I'm wrong in my configuration or if it's coming from my MQ server.

 

Thanks for helping me with this issue

 

Vincent

-----------------------------------------------------------------------------------------------

my env and logs :

 

* the MQ server monitored is a 7.1.0.1 one under a Linux 64bits

 

* server.log:

05-11-2012 15:35:04,026 CET INFO  [RuntimeAIEnabler1] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerImpl@780] Toggling Runtime-AI for 2:10025
05-11-2012 15:35:04,033 CET ERROR [tomcat-http--32] [org.hyperic.hq.ui.action.resource.common.inventory.EditConfigPropertiesAction@311] Invalid config org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource:mqseries-mgr:Mgr=QM_HUB:ConnectionCount
05-11-2012 15:35:04,601 CET INFO  [RuntimeAIEnabler1] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerImpl@780] Toggling Runtime-AI for 2:10025
05-11-2012 15:35:04,603 CET WARN  [MeasurementEnabler1] [org.hyperic.hq.measurement.server.session.MeasurementManagerImpl@1650] Error turning on default metrics, configuration (platform.log_track.level=Warn,platform.type=Linux,platform.ip=10.103.44.110,platform.name=dvdsif47,platform.log_track.enable=true,platform.config_track.enable=true,installpath=/opt/mqm/,platform.id=10003,                                                  platform.fqdn=10.197.87.110,) couldn't be validated
org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource: mqseries-mgr:Mgr=%queue.manager.name%:ConnectionCount
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1568)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.enableDefaultMetrics(MeasurementManagerImpl.java:1648)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.handleCreateRefreshEvents(MeasurementManagerImpl.java:1467)
        at sun.reflect.GeneratedMethodAccessor897.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
        at org.hyperic.hq.monitor.aop.aspects.PerformanceMonitor.monitorServiceMethod(PerformanceMonitor.java:84)
        at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy60.handleCreateRefreshEvents(Unknown Source)
        at org.hyperic.hq.measurement.server.session.MeasurementEnabler.processEvents(MeasurementEnabler.java:85)
        at org.hyperic.hq.zevents.TimingListenerWrapper.processEvents(TimingListenerWrapper.java:42)
        at org.hyperic.hq.zevents.BufferedListener$BufferedEventRunnable.run(BufferedListener.java:64)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Error contacting resource: mqseries-mgr:Mgr=%queue.manager.name%:ConnectionCount
        at org.hyperic.hq.measurement.agent.client.AgentMonitor.getLiveValues(AgentMonitor.java:191)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.getLiveMeasurementValues(MeasurementManagerImpl.java:1603)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1566)
        ... 29 more
05-11-2012 15:35:05,239 CET WARN  [MeasurementEnabler1] [org.hyperic.hq.measurement.server.session.MeasurementManagerImpl@1650] Error turning on default metrics, configuration (platform.log_track.level=Warn,platform.type=Linux,platform.ip=10.103.44.110,platform.name=dvdsif47,platform.log_track.enable=true,platform.config_track.enable=true,installpath=/opt/mqm/,platform.id=10003,platform.fqdn=10.197.87.110,) couldn't be validated
org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource: mqseries-mgr:Mgr=%queue.manager.name%:ConnectionCount
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1568)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.enableDefaultMetrics(MeasurementManagerImpl.java:1648)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.handleCreateRefreshEvents(MeasurementManagerImpl.java:1467)
        at sun.reflect.GeneratedMethodAccessor897.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
        at org.hyperic.hq.monitor.aop.aspects.PerformanceMonitor.monitorServiceMethod(PerformanceMonitor.java:84)
        at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy60.handleCreateRefreshEvents(Unknown Source)
        at org.hyperic.hq.measurement.server.session.MeasurementEnabler.processEvents(MeasurementEnabler.java:85)
        at org.hyperic.hq.zevents.TimingListenerWrapper.processEvents(TimingListenerWrapper.java:42)
        at org.hyperic.hq.zevents.BufferedListener$BufferedEventRunnable.run(BufferedListener.java:64)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Error contacting resource: mqseries-mgr:Mgr=%queue.manager.name%:ConnectionCount
        at org.hyperic.hq.measurement.agent.client.AgentMonitor.getLiveValues(AgentMonitor.java:191)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.getLiveMeasurementValues(MeasurementManagerImpl.java:1603)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1566)
        ... 29 more

 

* agent.log:

05-11-2012 15:35:03,548 CET ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: mqseries-mgr:Mgr=QM_HUB:ConnectionCount
05-11-2012 15:35:03,554 CET ERROR [commandlistener-generic-0] [MeasurementCommandsService@248] Error getting real time measurement: Error contacting resource: MQJE001: Completion Code '2', Reason '2495'.


HQ 5 server install error on Windows 2008 R2

$
0
0

I'm trying a fresh HQ Server install on Windows 2008 R2 and keep getting an error.  Here's the details:

 

 

Setting permissions on F:\Program Files\hyperic/server-5.0.0...

Setting permissions on server binaries...
Fixing line endings on text files...

--------------------------------------------------------------------------------

 

An ERROR occurred, the installation cannot continue.
FATAL EXCEPTION at F:\temp\hyperic-hq-installer-5.0.0\installer\data\setup.xml:553: : The following error occurred while executing this line:

F:\temp\hyperic-hq-installer-5.0.0\installer\data\setup.xml:562: The following error occurred while executing this line:

F:\temp\hyperic-hq-installer-5.0.0\installer\data\setup.xml:878: The following error occurred while executing this line:

F:\temp\hyperic-hq-installer-5.0.0\installer\data\setup.xml:948: java.io.FileNotFoundException: F:\Program Files\hyperic\server-5.0.0\bin\db-start.bat (Access is denied)

 

 

Upon instpecting db-start.bat (as administrator) I can see the file but I have no access to it.  I ran the install again and when db-start.bat is initially created I have full access and ownership until installation reches this step.

getProcState may return wrong value on consecutive calls

$
0
0

Hi,

 

In my application code I found that consecutive calls to getProcState may return wrong value.

 

My box is a Linux amd64, and this test case fails with both 1.6.4 and 1.6.5:

 

package test;

import org.hyperic.sigar.ProcState;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;

public class ProcStateTest {

     private Process process;     private Sigar sigar;     private long processPid;     public static void main(String[] args) throws Exception {          ProcStateTest test = new ProcStateTest();          try {               test.setup();               test.testIsRunning();          } finally {               test.tearDown();          }     }     public void setup() throws Exception {          process = Runtime.getRuntime().exec("watch echo hellosigar");          if (!isAlive(process)) {               throw new RuntimeException("process is not alive");          }          sigar = new Sigar();          processPid = processPid();          if (processPid == -1) {               throw new RuntimeException("process not found");          }     }     public void tearDown() {          if (process != null) {               process.destroy();          }     }     public void testIsRunning() throws Exception {          if (!isRunning(getProcState())) {               throw new RuntimeException("Expected process to be running");          }          process.destroy();          do {               Thread.sleep(5000);          } while (isAlive(process));          for (int i = 0; i < 10; i++) {               if (isRunning(getProcState())) {                    throw new RuntimeException(                              "Expected process to be down at step[" + i + "]");               }          }     }     private long processPid() throws SigarException {          long[] pids = sigar.getProcList();          long processPid = -1;          for (long pid : pids) {               String[] procArgs = sigar.getProcArgs(pid);               for (String procArg : procArgs) {                    if (procArg != null && procArg.contains("hellosigar")) {                         processPid = pid;                         break;                    }               }               if (processPid != -1) {                    break;               }          }          return processPid;     }     private boolean isAlive(Process process) {          if (process == null) {               return false;          }          try {               process.exitValue();               return false;          } catch (IllegalThreadStateException e) {               return true;          }     }     private ProcState getProcState() {          ProcState procState = null;          try {               procState = sigar.getProcState(processPid);          } catch (SigarException ignore) {          }          return procState;     }     private boolean isRunning(ProcState procState) {          boolean running = false;          if (procState != null) {               running = (procState.getState() == ProcState.RUN                         || procState.getState() == ProcState.SLEEP || procState                         .getState() == ProcState.IDLE);          }          return running;     }

}

 

The only way to get it work is to have at least a 2 seconds interval between calls to getProcState.

 

Did I miss something or is this really a bug?

 

Thanks and regards,

Thomas

How to get correctly the percent of used CPU per process

$
0
0

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);

Failed to lookup OID for BIGIP F5 device

$
0
0

I have setup hyperic and added an f5 device. Under Inventory > Configuration properties it gives the error:

 

This resource is turned off or has not been configured properly.

The problem is: Invalid configuration: Invalid request: Failed to lookup OID for name=sysHttpStatNumberReqs (last lookup failure=null)

 

I have added F5-BIGIP-SYSTEM-MIB.txt, F5-BIGIP-GLOBAL-MIB.txt and F5-BIGIP-LOCAL-MIB.txt to /usr/share/snmp/mibs. I then ran export MIBS=ALL

 

When running snmpwalk -v 2c -c community IP 1.3.6.1.4.1.3375.2.1.1.2.4.7 I get the errors:

 

Cannot adopt OID in F5-BIGIP-SYSTEM-MIB:

 

When running snmptranslate sysHttpStatNumberReqs I also get the same errors

 

Any help will be greatly appreciated.

HQ Agent not starting properly. Unable to send autoinventory platform data to server

$
0
0

Hi All,

       

Server RHEL 5.9

HQ Server - 4.4.0

 

HQ Agent - Windows

HQ Agent Version - 4.4.0

 

 

Initially HQ agent in windows was installed and working fine.. Post  some plugin deployment in Agent and server side, agent is not communicating with Server properly. 

 

Agent Logs

=========

error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:29:48,010 ERROR [Thread-2] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying.  Error: IO error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:29:48,534 ERROR [Thread-2] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying.  Error: IO error: Connection failure: HTTP/1.1 500 Internal Server Error

 

2013-06-29 12:31:01,773 ERROR [Thread-2] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 50 secs before retrying.  Error: IO error: Connection failure: HTTP/1.1 500 Internal Server Error

2013-06-29 12:31:45,449 ERROR [Thread-1] [SSLConnectionListener] Rejecting client from /*:.*.*.*  Passed an invalid auth token (1372105007729-2177401052998788304-4549319728569690623)

org.hyperic.hq.bizapp.agent.TokenNotFoundException: Token not found

    at org.hyperic.hq.bizapp.agent.TokenManager.getToken(TokenManager.java:147)

    at org.hyperic.hq.bizapp.agent.server.SSLConnectionListener.handleNewConn(SSLConnectionListener.java:102)

 

 

Server Logs

=========

 

 

2013-06-29 00:38:37,786 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.ScanState@548] Server not added because another scan method already detected it:[AIServerExtValue: {queueStatus=0 customProperties=[B@78389d86 productConfig=[B@4cee0613 controlConfig=null measurementConfig=[B@1ed0f0da responseTimeConfig=null diff=0 ignored=false serverTypeName=Active Directory name=NY2PDC Active Directory autoinventoryIdentifier=C:\Windows\NTDS installPath=C:\Windows\NTDS description=null servicesAutomanaged=false id=null mTime=null cTime=1372335272136} ExtServices=]

2013-06-29 00:38:37,787 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@698] Received auto-inventory report from AgentMachine ; IPs -> 192.168.215.25,127.0.0.1; CertDN -> CAM-AGENT-1372090762852-6052812090061276900-2160452068520360577; (8 servers)

2013-06-29 00:38:37,788 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.ScanState@548] Server not added because another scan method already detected it:[AIServerExtValue: {queueStatus=0 customProperties=[B@78389d86 productConfig=[B@4cee0613 controlConfig=null measurementConfig=[B@1ed0f0da responseTimeConfig=null diff=0 ignored=false serverTypeName=Active Directory name=AgentMachine Active Directory autoinventoryIdentifier=C:\Windows\NTDS installPath=C:\Windows\NTDS description=null servicesAutomanaged=false id=null mTime=null cTime=1372335272136} ExtServices=]

2013-06-29 00:38:37,796 ERROR [Thread-2882] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@741] Ignoring non-existent server type: Active Directory 2008

javax.ejb.FinderException: name not found: Active Directory 2008

        at org.hyperic.hq.appdef.server.session.ServerManagerEJBImpl.findServerTypeByName(ServerManagerEJBImpl.java:708)

        at sun.reflect.GeneratedMethodAccessor914.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)

 

 

 

2013-06-29 00:38:37,807 INFO  [Thread-2882] [org.hyperic.hq.appdef.server.session.AI2AppdefDiff@471] CpuCount changed for AgentMachine from: 4, to: 2

2013-06-29 00:38:37,811 INFO  [Thread-2882] [org.hyperic.hq.appdef.server.session.AIQSynchronizer@106] Queueing new platform: AgentMachine

2013-06-29 00:38:37,819 INFO  [Thread-2882] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl@778] reassigning platform agent (fqdn=AgentMachine,id=10111) from={address=192.168.215.25 port=2144 authToken=1372110843468-7806543436836096273-8442563087520726054  to={address=192.168.215.35 port=2144 authToken=1372105007729-2177401052998788304-4549319728569690623

2013-06-29 00:38:37,825 WARN  [Thread-2882] [org.hibernate.util.JDBCExceptionReporter@77] SQL Error: 1062, SQLState: 23000

2013-06-29 00:38:37,827 ERROR [Thread-2882] [org.hibernate.util.JDBCExceptionReporter@78] Duplicate entry 'AgentMachinel' for key 2

2013-06-29 00:38:37,828 ERROR [Thread-2882] [org.hibernate.event.def.AbstractFlushingEventListener@301] Could not synchronize database state with session

org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)

        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

        at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)

        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)

        at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)

 

 

 

 

Server to Agent and Agent to Server telnet is communicating fine.   We tried removing the deployed plugin and restart the agent by deleting data folder, but facing same issue.

Hyperic showing wrong heap memory reading for tomcat 7

$
0
0

Hello,

 

  I am new to hyperic HQ.I am using it now to monitor tomcat server7 with web application deployed on it.

Actually I am monitoring heap sized committed,used and deployed.I have purposely deployed application which creates OutOfHeap memory error.

When OutOfHeap error occurs,I took Heap dump and crossed checked heap memory free and used,But hyperic showing wrong results;

 

My machine details:

RAM:30g

I have set -Xms 512m,-Xmx1024m

heap dump after error:total heap-450mb

                                frre heap-13mb

 

but hyperic showing;

       heap committed;340mb

       heap used:35mb

       heap max:6g

 

here hyperic showing default heap setting,even i set -Xms 512m,-Xmx1024m

also it not showing my webApplication name/service name

 

Please answer my question or guide me

Need help to use Sigar Java API in Linux Environment

$
0
0

Hi,

 

I have a certain requirements where I need to start & stop the service & kill if it is not stopping. I found the Sigar API provides the cross platform functionality for the same. I just make a demo application to test. My Demo app is working fine in windows environment. When I am testing the same app in Linux (Ubuntu) I am getting following errors.

 

I added the libsigar-x86-linux.so file to my java library path. Even then when I am trying to read all services by using Service.getServiceNames(); gives me UnsatisfiedLinkError.  if I am not included the same .so file then it is showing UnsatisfiedLinkError and missing the library libsigar-x86-linux.so.

 

If I am adding .so file to library path then it is showing while executing the Service.getServiceNames() method. I am using java 1.7 & Sigar 1.6.4 version.

 

Do we need to include .h (sigar\include folder) files to java bin folders ?

 

What is happening in my case, please help me to solve this issue.

 

 

Regards

Sekhar



monitor a Microsoft SQL cluster

$
0
0

Anybody use Hyperic to monitor a two node Microsoft SQL cluster?  I've installed the Hyperic Agent (5.8.0) onto the two nodes but the Agent has no awareness of what is clustered.  If there is a failover alarms on disks missing or the SQL service being down fly.  They I reconfigure the agents and the next time the failover occurs it happens all over again.  It's not maintainable in an environment where there are clusters.

frustrating experience with Hyperic and vCops integration

$
0
0

I'm new to Hyperic and vCops.  We have a mostly virtualized environment but I've been installing Hyperic on virtual machine and physical machines in our environment.  For virtual machines I want to monitor specific windows services and processes that aren't captured with vCops alone.  So I install the Hyperic agent on some machines and setup monitoring of specific windows services.  Then I setup the HypericApiAdapter Win32 attribute package to generate a critical alarm when services are not available.  I assign this attribute package to all Win32 resource kinds.  After that I configured the emailFitler.xml filter to send an email when the Win32 resource kind has a critical alarm.  Everything worked appropriately until a network connection to a site dropped.  What happens is that I get an alarm that the machine is down, then I get an alarm for the services that I configured for monitoring are down, and then I get additional alarms for every processor, disk drive, and network adapter in the machine being down.  Hyperic considers a CPU, network adapter, disk drive, etc as a service in addition to a monitor for a specific windows service.  To me that is excessive.  If the machine is down why does there need to be notifications for every single service.  It almost makes it impossible to use the email functionality from vCops when you are integrating with Hyperic.  Has anybody experienced this and how are you working around it?  Do you just use the email functionality from Hyperic for Hyperic resources?  I wanted to manage everything from vCops but I'm beginning to think this may not be possible?

 

Thanks for the help.

vFabric Hyperic 5.7 Standalone - MQ QManager 7 plugin

$
0
0

Hey,

 

I am having a problem getting the MQ QManager 7 plugin to auto-discover a running Websphere MQ 7.5.0.2 using Hyperic 5.7.  I have also tried manually configuring the plugin, but I continue to run into the following error.

     The configuration has not been set for this resource due to : Invalid configuration: Plugin error: Plugin class not found: com/ibm/mq/MQException (invalid classpath or corrupt plugin jar)

The MQSeriesJRE and MQSeriesJava are both installed for the version of MQ I am running.  I have tried starting the hyperic agent by using the java provided by Websphere MQ and also setting the Library Path.  Please advise.

 

Thanks

Hyperic server internal architecture info and diagrams.

$
0
0

Back when version 4.6.6. was released, Hyperic documentation contained diagrams that showcased its internal architecture.
I checked documentation for 5.7 and 5.8, and cant seem to find any such documentation/diagrams.
I would like to know more about the internal components of Hyperic server, example - frameworks used, server deployed on, java libs used, etc.
I can probably get these details by digging though the gitorious codebase, but i was hoping VMWare would publish these details somewhere in their documentation.

 

Does anyone know more about this?

 

Thanks.

Unable to register agent: Error communicating with agent: Unauthorized

$
0
0
I'm running hyperic 4.0.1 server (on OS Version: 2.6.25-gentoo-r7 ) and agent, on the server where it is installed, I'm able to get the agent to connect fine, but any other devices gives me a problem:

-- Received temporary auth token from agent
-- Registering agent with Q
-- Unable to register agent: Error communicating with agent: Unauthorized

The agent communication works fine when it tests the connection with the server.

I have searched all the threads but can not find any info to help resolve this.
This occurs on our CentOS and Ubuntu Linux installs.

Thanks,
Leo
Viewing all 52618 articles
Browse latest View live


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