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

"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.

Existing platform is overwritten when trying to add new platform

$
0
0
Hi!

Have tried to add a new platform to Hyperic HQ and just noticed that an existing platform was overwritten. Agent version on both servers is 4.4.0-1509. Just got a message on Dashboard saying "fqdn changed, platform properties changed, IP set changed, server set changed". The only thing I have noticed both Servers have same internal IP address. Has anyone seen this before?

Custom JMX Plugin not discovered in HQ

$
0
0
All,

I've been working to integrate an IBM product with HQ. The product exposes metrics through several MBeans. I've struggled a little with the XML syntax but I think I've got a reasonable sample working from the command line tests as the debug log below seems to show. Trouble is I cannot see this server/service in HQ. I've deployed HQ to a host Windows laptop and the agent to a virtual Linux machine so they are separate and I did properly setup the agent and did discover a number of other servers.

-m discover -a metric:

Platform=Linux, fqdn=vmsuse11blue.tes.ibm.com (SuSE 11)
config...
product..null
metric...platform.config_track.enable=true,platform.log_track.level=Warn,platform.log_track.enable=true,
control..null
cprops...vendorVersion=11,arch=i686,ip=192.168.31.128,primaryDNS=192.168.31.1,version=2.6.32.12-0.7-pae,vendor=SuSE,ram=3984 MB,cpuSpeed=2 @ 1596 MHz,
vmsuse11blue IBM Cognos 10.1 cprops:
vmsuse11blue IBM Cognos 10.1 services:
vmsuse11blue IBM Cognos 10.1 Batch Report Service
config...
product..
metric...
control..null
rt.......null
DEBUG [main] [MxUtil] Opened new connector (@1a341a34) for: service:jmx:rmi://vmsuse11blue/jndi/rmi://vmsuse11blue:9900/server
DEBUG [main] [MxUtil] Caching connector for: service:jmx:rmi://vmsuse11blue/jndi/rmi://vmsuse11blue:9900/server
IBM Cognos 10.1 Batch Report Service Number Of Processes:
com.cognos:type=process,service=batchReportService:NumberOfProcesses:jmx.url=service%3Ajmx%3Armi%3A//vmsuse11blue/jndi/rmi%3A//vmsuse11blue%3A9900/server,jmx.username=cognos,jmx.password=*********
=>0.0<=
vmsuse11blue IBM Cognos 10.1 Report Service
config...
product..
metric...
control..null
rt.......null
IBM Cognos 10.1 Report Service Number Of Processes:
com.cognos:type=process,service=reportService:NumberOfProcesses:jmx.url=service%3Ajmx%3Armi%3A//vmsuse11blue/jndi/rmi%3A//vmsuse11blue%3A9900/server,jmx.username=cognos,jmx.password=*********
=>1.0<=

How To: Installing vFabric Hyperic Server and Agent 4.6.6

Problem with metric views

$
0
0

Hi,

 

Server:  HypericHQ 4.6.6

Agent :  4.6.6

Only reseurces where Metric datas collect 1 min.

Delete Detailed Metric Data Older Than: 7 days BUT the same problems occur when this value 2 days


 

The problem is the following:

this is a standard view:

 

metric_data_8h.PNG

I click to < button, show data 12AM(and every day, every resources where collect 1 min, show this)

metric_data_8h_earlier.PNG

more earlier:

metric_data_8h_earlier_2.PNG

and this repitedly while -2 days(detailed metrics purged)

same problem in 4 hour:

metric_data_4h.PNG

metric_data_4h_earlier.PNG

 

I think data is there because alert still works ok, just couldn't show it.

 

wrapper.log:

INFO   | jvm 1    | 2012/10/08 14:59:51 | Exception in thread "Thread-147941" java.lang.ArrayIndexOutOfBoundsException
INFO   | jvm 1    | 2012/10/08 14:59:51 | Exception in thread "Thread-147942" java.lang.ArrayIndexOutOfBoundsException
INFO   | jvm 1    | 2012/10/08 14:59:51 | Exception in thread "Thread-147943" java.lang.ArrayIndexOutOfBoundsException
INFO   | jvm 1    | 2012/10/08 14:59:51 | Exception in thread "Thread-147944" java.lang.ArrayIndexOutOfBoundsException
INFO   | jvm 1    | 2012/10/08 14:59:53 | Exception in thread "Thread-147945" java.lang.ArrayIndexOutOfBoundsException
INFO   | jvm 1    | 2012/10/08 14:59:53 | Exception in thread "Thread-147947" java.lang.ArrayIndexOutOfBoundsException
INFO   | jvm 1    | 2012/10/08 14:59:53 | Exception in thread "Thread-147949" java.lang.ArrayIndexOutOfBoundsException

Cannot load libsigar-universal-macosx.dylib from jnlp on Mac

$
0
0

Dear all,

 

I'm new to Sigar and I'm developing some features using Sigar. I'm deploying a java application through webstart. Here is my jnlp:

 

I've included the resources tag

  <resources os="Mac OS X">
      <nativelib href="/static/lib/sigar-mac-x86.jar"/>
  </resources>
 
Where I included libsigar-universal-macosx.dylib in sigar-mac-x86.jar and signed it.
In the Java application, I'm loading the library as follows:
try
            {
                System.loadLibrary("libsigar-universal-macosx");
                return true;
            }
            catch (UnsatisfiedLinkError ule)
            {
                Log.severe("Cannot find library: " + ule.getMessage());
            }

 

I always got the UnsatisfiedLinkError exception. However, the same code works fine on Windows.

 

Could anyone give me any clue?

 

Thanks!

UnsatisfiedLinkError: isattay when installing on windows7 64bit

$
0
0
I am having an issue with the  hyperic5.0 install on a lenovoT430s with OS windows7 64bitX.  Every time I attempt an install with the  server and agent I receive the following error:

 

An ERROR occurred, the installation cannot continue
Fatal  Exception  at /hyperic-hq-installer/installer/data/setup.xml: 150  : :The following error occurred while expecting this line:

 

/hyperic-hq-installer/installer/data/setup-interactive.xml:  15 : Could not create type ConfigSchema due to  java.lang.UnsatisfiedLinkError: isatty

 

Any help on this matter would be of great assistance.
Mars

HypericHQ auto-detecting ERS Apache web-server instance

$
0
0

Hi all,

 

I have Hyperic server/agent installed on Linux and detecting my Tomcat (7.0.35)

instance running under a tcServer 2.8.2 deployment.

 

However, Hyperic does not seem to be able to auto-detect the ERS Apache web-server

instance running on this same environment (under same VAH, owned by same userid).

 

I confirmed that the following Apache plug-in modules were available and configured under

httpd.conf (if required here):

 

1. Response Time Module Configuration (LoadModule rt_module modules/mod_rt.so)

2. Simple Network Monitoring Protocol (mod_snmp - enables vhost-level metrics in Hyperic

HQ, not included in original 4.0 release)

 

I then tried to auto-scan/auto-detect from the command-line itself using the appropriate

HQ library with the following result:

 

$ java -jar hq-pdk-4.6.jar -p apache -Dplugins.include=apache -m discover

 

ERROR [Thread-0] [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)

DEBUG [Thread-0] [AutoScan] Running AutoServerDetector for: Apache-ERS 4.x

DEBUG [Thread-0] [Execute] Waiting process

DEBUG [Thread-0] [Execute] End waiting, stop threads

DEBUG [Thread-0] [Execute] Watchdog stopped

DEBUG [Thread-0] [Execute] Stream handler stopped

DEBUG [Thread-0] [Execute] Done exit=0 /fidcnuwlk2/app/ers-4.0.3/apache2.2-64/bin/httpsd.worker -V

DEBUG [Thread-0] [ApacheBinaryInfo] [getVersionCmdInfo] this=version=2.2.17, root=null, binary=/fidcnuwlk2/app/ers-4.0.3/apache2.2-64/bin/httpsd.worker, ctl=/fidcnuwlk2/app/ers-4.0.3/apache2.2-64/bin/httpsd.worker, mpm=worker, build=Jan 20 2011 00:44:05

DEBUG [Thread-0] [ApacheServerDetector] [getServerInfo] info.conf=/fidcnuwlk2/app/ers-4.0.3/servers/fcHttpServer/conf/httpsd.conf, info.root=/fidcnuwlk2/app/ers-4.0.3/servers/fcHttpServer, info.name=null

 

Finally, I note the following automated message getting written out to my agent.log file every

15 mins (per a default auto-scanning interval?):

 

2013-04-22 04:49:58,823 ERROR [Thread-3] [AutoScan] AutoScan failed for Apache-ERS 4.x
2013-04-22 05:04:58,762 ERROR [Thread-3] [AutoScan] AutoScan failed for Apache-ERS 4.x
2013-04-22 05:19:59,322 ERROR [Thread-3] [AutoScan] AutoScan failed for Apache-ERS 4.x

 

Any pointers welcome here.

 

Regards,

Séamus Coyne


Using Sigar from Java on Redhat Enterprise Linux 6 - how?

$
0
0

Hi all,

 

RHEL6 comes with the native sigar library available:

 

http://rhn.redhat.com/errata/RHEA-2011-0670.html

 

This provides the following files:

 

# rpm -q -l sigar

/usr/lib64/libsigar.so

/usr/share/doc/sigar-1.6.5

/usr/share/doc/sigar-1.6.5/AUTHORS

/usr/share/doc/sigar-1.6.5/ChangeLog

/usr/share/doc/sigar-1.6.5/LICENSE

/usr/share/doc/sigar-1.6.5/NOTICE

/usr/share/doc/sigar-1.6.5/README

 

So far so good.

 

We are now trying to use sigar from java on this staging box, and we cannot get our test cases to run at all. we see the following two errors:

 

java.lang.NoClassDefFoundError: Could not initialize class org.hyperic.sigar.Sigar

java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getNativeVersion()Ljava/lang/String;

 

Unfortunately neither error gives us a clue as to why Sigar is failing, the java.lang.UnsatisfiedLinkError message seems to be printing a bogus string instead of the actual error, so we remain in the dark.

 

Reverse engineering the sigar java binding, we find a complex library loading mechanism that attempts to introspect the architecture of the machine and load a custom-named library with the architecture of the machine embedded into it. This mechanism however doesn't seem to contain any mechanism to load a normal, ordinary system library as provided by the operating system as it is in this case.

 

My question is thus this:

 

- How do we use the sigar java bindings with the sigar library as shipped by Redhat?

- Is this even possible?

- Has Redhat done some kind of customisation to make this work, and if so is this documented anywhere?

- Has anyone got this to work?

 

To make things clear, we need to roll out this code on many nodes, we cannot use a custom hacked solution. We either need to discover what we're doing wrong and do it the right way, or if the java bindings can't work with Redhat's system sigar library at all, we will have to maintain a custom version of the sigar library with this bug fixed.

 

Can anyone shed any light on this?

 

Regards,

Graham

--

 

 

How do you get CPU ID or serial number using Hyperic Sigar?

$
0
0

Is there a method in the Sigar API that returns the CPU ID of the host running the JVM?

Monitor Weblogic Webserver Concurrent session

$
0
0

Hello,

 

I am using Hyperic 5.8 to monitor Weblogic web-server concurrent user sessions upto certain level and then if it reaches a threshold trigger a vCO workflow. So far i could understand that Hyperic is not able to monitor user session.

 

I wanted to know if this possible , how can it be done.

 

Need your help !!!

 

Thanks

 

Br,

MG

An ERROR occurred, while installation fusehq server with mysql

$
0
0

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

An ERROR occurred, the installation cannot continue.

FATAL EXCEPTION at /fusehq-installer/installer-4.4.0.2-SNAPSHOT/data/setup.xml:439: : The following error occurred while executing this line:

/fusehq-installer/installer-4.4.0.2-SNAPSHOT/data/setup.xml:448: The following error occurred while executing this line:

/fusehq-installer/installer-4.4.0.2-SNAPSHOT/data/setup.xml:588: The following error occurred while executing this line:

/fusehq-installer/installer-4.4.0.2-SNAPSHOT/data/setup-db-MySQL.xml:16: The following error occurred while executing this line:

/fusehq-installer/installer-4.4.0.2-SNAPSHOT/data/setup-db-hibernate.xml:193: Errors while performing <hbm2ddl>

Nagios, Hyperic, and vCops

$
0
0

Good afternoon,

 

I don't know a lot about the integration between Nagios and Hyperic.  From what I'm reading when you install the Hyperic agent onto a server with Nagios installed it will be able to pull information from what Nagios is monitoring into Hyperic.  From Hyperic you can view quality of service and create alarms based on the Nagios monitoring.  Can this information that has been pulled into Hyperic be viewed in vCOPS?

Hyperic Windows Event Logs Alerting

$
0
0

Hello.

 

Trying to setup Alert definitions based on Windows Event IDs. All good everything works fine except  that the alert  is generated totally random. I can see that the events are collected in the Event Center but it doesn`t always generates an alert for the same Event it was created. In the Alert condition set I did not checked "Generate one alert and then disable alert definition until fixed" so every time the condition is met an alert should generate. Sometimes it generates one sometimes it  doesn`t.

 

Anyone had this issue?

Thanks.

When is the next release for SIGAR scheduled?

$
0
0

I believe the latest release of sigar is 1.6.4. May I know when the next release is scheduled for? Either 1.6.5 or 2.x?

 

Thanks,

Vineet


How to decrease CPU usage of Hyperic HQ agent

$
0
0

I've a problem with some installed hq agents in my platform.

In fact, the agent take very high CPU (over 90% to 140% also)

 

Hyperic HQ Agent process  take high CPU usage.

 

This is a random problem.

Anyone have a idea  to help me ?

Thank you.

Using (REST) API to collect *ALL* measurements on an agent (resource)

$
0
0

Hi,

 

I have been playing around with the Hyperic API to query a Hyperic server for the metrics per connected agent (resource).

E.g. by using this: http://localhost:7080/hqu/hqapi1/metric/getMetrics.hqu

 

But unfortunately it only shows the more or less standard metrics like cpu memory, etc.

 

It does not show *all* the metrics/measurements which I can see from the webgui itself.

I have also created a few custom plugins by following these examples where keypairs are delivering the metric data towards Hyperic server.

In the webGUI I can see the measurement data, but again when I query the getMetrics API command on the resourceID the metrics are not shown.

 

Am I overlooking something simple?

 

I mean basically what I want to achieve is simply by using the API is querying a few hyperic servers to get:

1. per connected server (resource) what are the measurements configured

2. what are their threshold settings

3. what are the actual values of the measurements with timestamp of the last measurement.

 

Is this doable at all by using multipel API commands used in some scripting or will the API not give such information at all??

 

Maarten

PostgreSQL and Hyperic HQ Issue

$
0
0
We are running our Hyper HQ software using Windows 2003 server and we are running into probles witht the PostreSQL.  Once a day we get many errors in event viewer that informs us that: "The description for Event ID (0) in Source (PostgreSQL) cannont be found. The local computer may not have the necessary registry information or message DLL files to diaplay messages from a remote computer.  You may be able to use the /AUXSOURCE = flag to retrieve this description; see Help and Support for details. The following information is part of the event: [2006-08-31 15:23:09.189] FATAL: could not read from statistics collector pipe: No such file or directory." This is usually accompanied by our hypericHQ software telling us that every platform or server that is set up in hypericHQ is unavailable, when we know for a fact that everything is available. If i restart the windows server, the software comes back online and works until that error is posted again in Event Viewer.  Is there somthing wrong with PostgreSQL or our Hyperic software?  Please inform.

"Error registering mbean" Tomcat 5.5

$
0
0
Hi,

I am using hyperic to monitor a tomcat 5.5 instance. It seems to be working, however, my log is littered with error messages like:

JMXWebappMetricServlet: Error registering servlet mbean: javax.management.MalformedObjectNameException: Invalid character ',' in key part of property
javax.management.MalformedObjectNameException: Invalid character ',' in key part of property
        at javax.management.ObjectName.construct(Unknown Source)
        at javax.management.ObjectName.<init>(Unknown Source)
        at org.hyperic.hq.product.servlet.filter.JMXFilterInitServlet.registerServletMBean(JMXFilterInitServlet.java:125)

Other than the error messages, I do not see any effects of this exception. Looking at the code, the exception occurs after the filter is associated with the correct servlet so only the mbean registration fails. I am not sure what is the significance of this mbean or the cause of the error. Any help is appreciated.

Regards,

Ali

Solaris 10 x86 ZFS Volumes

$
0
0
Hi all,

I have just started monitoring a Solaris 10 box with the platform-independent-no-JRE agent download, and it appears to not be able to discover any ZFS-backed storage, despite them all being mounted in the local file system.

Does anyone have any ideas on why this didn't work? Do I really have to go through and add every single one by hand?

Best Regards,

Dave
Viewing all 52618 articles
Browse latest View live


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