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

Agent 4.0.2 "Unable to locate any of the following binaries" on Linux

$
0
0
Hello,

I have two servers that I am trying to monitor with Hyperic. I had the 3.2.x agent on them working just fine. However, when I try to run the 4.0.2 agent, I get an error message, every time I try running hq-agent.sh.  Any ideas why?

bin # ./hq-agent.sh start
Unable to locate any of the following binaries:
  /root/hyperic-hq-agent-4.0.2/wrapper/sbin/../../wrapper/sbin/wrapper-linux-intel(r)xeon(tm)cpu2.40ghz-32
  /root/hyperic-hq-agent-4.0.2/wrapper/sbin/../../wrapper/sbin/wrapper-linux-intel(r)xeon(tm)cpu2.40ghz-64
  /root/hyperic-hq-agent-4.0.2/wrapper/sbin/../../wrapper/sbin/wrapper

The files it is looking for seem to be in wrapper/sbin/.  The contents of this directory on my server are:

sbin # ls -l
total 2368
-rwxr-xr-x 1 root root 281540 Dec 18 18:42 wrapper-aix-ppc-32
-rwxr-xr-x 1 root root 319397 Dec 18 18:42 wrapper-aix-ppc-64
-rwxr-xr-x 1 root root  88703 Dec 18 18:42 wrapper-freebsd-x86-32
-rwxr-xr-x 1 root root 176380 Dec 18 18:43 wrapper-hpux-parisc-32
-rwxr-xr-x 1 root root 253808 Dec 18 18:43 wrapper-hpux-parisc-64
-rwxr-xr-x 1 root root 140198 Dec 18 18:42 wrapper-linux-ppc-64
-rwxr-xr-x 1 root root  99401 Dec 18 18:42 wrapper-linux-x86-32
-rwxr-xr-x 1 root root 111027 Dec 18 18:42 wrapper-linux-x86-64
-rwxr-xr-x 1 root root 114052 Dec 18 18:42 wrapper-macosx-ppc-32
-rwxr-xr-x 1 root root 233604 Dec 18 18:43 wrapper-macosx-universal-32
-rwxr-xr-x 1 root root 112536 Dec 18 18:43 wrapper-solaris-sparc-32
-rwxr-xr-x 1 root root 148512 Dec 18 18:43 wrapper-solaris-sparc-64
-rwxr-xr-x 1 root root 110992 Dec 18 18:43 wrapper-solaris-x86-32
-rwxr-xr-x 1 root root 204800 Dec 18 18:42 wrapper-windows-x86-32.exe

BTW:  I am running 32-bit linux, 2.6.17 kernel.

Thanks,
Brian

Websphere 6.1 MBean Monitor Plugin in JMX

$
0
0
Help required. 

To connect to IBM WAS you have to use

service:jmx:iiop://localhost:2809/jndi/JMXConnector -  

It is now a compliant system. 

HQ_JAVA_HOME=C:\program files\ibm\websphere\appserver\java\jre and the command is invoked using HQ_JAVA_HOME. 



I can see the MBean from the agent command line dump.  That gives me

<snip>
MBean: javax.management.modelmbean.RequiredModelMBean

Name:  WebSphere:name=OLC_TO_AUDIT_ACK,process=server1,platform=dynamicproxy,node=Tivoli-VM-3Node01,SIBus=hyro_isb,version=6.1.0.17,ID=F6061F6755333442EF8BB19D_QUEUE_247000018,type=SIBQueuePoint,mbeanIdentifier=com.ibm.ws.sib.admin.impl.JsQueuePoint,cell=Tivoli-VM-3Node01Cell,spec=1.0,SIBMessagingEngine=Tivoli-VM-3Node01.server1-hyro_isb

     0. Attribute: depth = 18 (r)

     1. Attribute: state = ACTIVE (r)

     2. Attribute: id = F6061F6755333442EF8BB19D_QUEUE_247000018 (r)

     3. Attribute: identifier = OLC_TO_AUDIT_ACK (r)

     4. Attribute: highMessageThreshold = 50000 (r)

     5. Attribute: sendAllowed = true (r)
</snip>
( plus a lot of stuff I don't need to know )

Trying to access this however, is giving me fits.  I have set up a plugin

<plugin>
  <service name="was-olc-audit-ack-queue"
           server="Sun JVM" version="1.5">


<!-- We will need to get the Attributes:  depth,  state and identifier  (0,1,3)  -->
<!-- We would like a list of all the SIBQueuePoint beans for "SIBMessagingEngine=Tivoli-VM-3Node01.server1-hyro_isb" -->

    <property name="OBJECT_NAME"
              value=" WebSphere:name=OLC_TO_AUDIT_ACK,process=server1,platform=dynamicproxy,node=Tivoli-VM-3Node01,SIBus=hyro_isb,version=6.1.0.17,ID=F6061F6755333442EF8BB19D_QUEUE_247000018,type=SIBQueuePoint,mbeanIdentifier=com.ibm.ws.sib.admin.impl.JsQueuePoint,cell=Tivoli-VM-3Node01Cell,spec=1.0,SIBMessagingEngine=Tivoli-VM-3Node01.server1-hyro_isb"/>

    <property name="AUTOINVENTORY_NAME"
              value="%platform.name% was-olc-audit-ack-queue"/>

    <plugin type="autoinventory"/>

    <plugin type="measurement"
            class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/>

    <plugin type="control"
            class="org.hyperic.hq.product.jmx.MxControlPlugin"/>

    <!-- reset is an MBean operation, set* are attribute setters -->
    <actions include="reset,setcacheSize,settrainThreshold"/>


    <filter name="template"
            value="${OBJECT_NAME}:${alias}"/>

    <metric name="Availability"
            template="${OBJECT_NAME}:Availability"
            indicator="true"/>
<!-- Work out how to get "true" associated with state = ACTIVE in the MBean -->


    <metric name="Queue Depth"
            alias="depth"
            collectionType="trendsup"
            indicator="true"/>
  </service>
</plugin>

This of course does nothing.  First try, I would've been scared if it had worked, but....  I have gotten way too much nothing since.   Nothing works at all.

I've also tried to set up an alternate JVM service to the sun 1.5 JVM as there are repeatedly problems in setting up this server (the directions for the JMX query page indicate its necessity)  as the IBM version of Java that is running appears to have threading disabled.

The server MUST use the IBM Java.  An attempt to query the MBean list with the standard java came up entirely empty.   The hq-plugin.jar was able to find everything when explicitly told where to go and run with the Java set up properly. 


Note:
Not all plugins are honoring HQ_JAVA_HOME.   It is different from JAVA_HOME and in the case of IBM it is critical to maintain the difference.  

BJ

How to measure cpu % of a process

$
0
0
Hi:

I'm trying to measure the % CPU usage of a process but I get strange results. Currently I'm using sigar 1.6.3. The code I'm using is:

Sigar sigar=new Sigar();
                ProcCpu pcpu = sigar.getProcCpu(sigar.getPid());
                t0=pcpu.getTotal();
                tot0=sigar.getCpu().getTotal();
           
                DO SOME TASKS

                pcpu = sigar.getProcCpu(sigar.getPid());
                t1=pcpu.getTotal();
                tot1=sigar.getCpu().getTotal();

                float percent=(t1-t0)/(tot1-tot0)

When I print the result of t1-t0 I always get 0 when I execute it on Linux 64 bits  but when I execute it on Mac and Windows I obtain correct results. Can someone help me with this?

If I use the getPecent() method I also obtain 0 values

Thanks

Message was edited by: jrds

Monitoring database connection pools in Tomcat

$
0
0
Hello,

How do I monitor database connection pools in my Tomcat 6.0 servers with Hyperic? I did some digging in to the documentation, and I found the below URL referencing the "DataSource Pool Service", but I am not sure if that is what I am looking for, nor how to configure it if it is what I need.

http://support.hyperic.com/display/hypcomm/Apache+Tomcat+6.0+DataSource+Pool+service

My Tomcat servers do not show any DataSource Pools in Hyperic. Hyperic did auto-discover the other metrics referenced in the Tomcat plugin docs, such as Cache, Global Request Processor, Thread pools, etc.

Also, I see at the bottom of the Tomcat config screen in Hyperic that "Auto-Discovery for Caches, DataSource Pools, and other services is ON".

Any idea on how to monitor Tomcat DB connection pools with Hyperic?

Thanks,
Brian

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!

Timed out SQL Query on Oracle 10g

$
0
0
Hi,

We would like to monitor a specific 10g table but the select being quit long to execute it often times out with the following agent stack trace:

2011-06-09 11:00:05,909 ERROR [pool-1-thread-1] [ScheduleThread] Metric 'sqlquery:SELECT COUNT(MSGID) FROM Q WHERE SHIPPINGDONE%3D0:availability:jdbcDriver=oracle.jdbc.Or
acleDriver,jdbcUrl=jdbc%3Aoracle%3Athin%3A@xxx.xxx.xx.xxx%3A1530%3AXXXXX1,jdbcUser=xxx,jdbcPassword=***' took too long to run (5833ms), cancelled (result=true)
2011-06-09 11:00:05,915 DEBUG [pool-6-thread-1] [SQLQueryMeasurementPlugin] AVAIL_DOWN
java.sql.SQLException: Io exception: Socket read timed out
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
        at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:968)
        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1062)
        at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:830)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)
        at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1687)
        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1653)
        at org.hyperic.hq.product.JDBCMeasurementPlugin.getQueryValue(JDBCMeasurementPlugin.java:283)
        at org.hyperic.hq.plugin.sqlquery.SQLQueryMeasurementPlugin.getValue(SQLQueryMeasurementPlugin.java:371)
        at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:176)
        at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)
        at org.hyperic.hq.measurement.agent.server.ScheduleThread.getValue(ScheduleThread.java:439)
        at org.hyperic.hq.measurement.agent.server.ScheduleThread.access$1400(ScheduleThread.java:74)
        at org.hyperic.hq.measurement.agent.server.ScheduleThread$MetricTask.run(ScheduleThread.java:505)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
        at java.lang.Thread.run(Thread.java:595)
2011-06-09 11:00:05,915 WARN  [pool-6-thread-1] [ScheduleThread] Collection of metric: 'SQL Query:sqlquery:SELECT COUNT(MSGID) FROM Q WHERE SHIPPINGDONE%3D0:availability:
jdbcDriver=oracle.jdbc.OracleDriver,jdbcUrl=jdbc%3Aoracle%3Athin%3A@xxx.xxx.xx.xxx%3A1530%3AXXXXX1,jdbcUser=xxx,jdbcPassword=***' took: 5839ms
2011-06-09 11:00:05,916 DEBUG [pool-6-thread-1] [ScheduleThread] [2:11133:AVAILABILITY] Metric='sqlquery:SELECT COUNT(MSGID) FROM Q WHERE SHIPPINGDONE%3D0:availability:jd
bcDriver=oracle.jdbc.OracleDriver,jdbcUrl=jdbc%3Aoracle%3Athin%3A@192.168.50.100%3A1530%3AWANAP1,jdbcUser=mmg,jdbcPassword=***' -> 0 timestamp=1307610005915
2011-06-09 11:00:05,916 ERROR [pool-6-thread-1] [ScheduleThread] Metric Value not found while processing Metric 'SQL Query:sqlquery:SELECT COUNT(MSGID) FROM Q WHERE SHIPP
INGDONE%3D0:Query:jdbcDriver=oracle.jdbc.OracleDriver,jdbcUrl=jdbc%3Aoracle%3Athin%3A@xxx.xxx.xx.xxx%3A1530%3AXXXXX1,jdbcUser=xxx,jdbcPassword=***'
org.hyperic.hq.product.MetricNotFoundException: Query failed for Query, while attempting to issue query SELECT COUNT(MSGID) FROM Q WHERE SHIPPINGDONE=0:Closed Connection
        at org.hyperic.hq.product.JDBCMeasurementPlugin.getQueryValue(JDBCMeasurementPlugin.java:334)
        at org.hyperic.hq.plugin.sqlquery.SQLQueryMeasurementPlugin.getValue(SQLQueryMeasurementPlugin.java:364)
        at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:176)
        at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)
        at org.hyperic.hq.measurement.agent.server.ScheduleThread.getValue(ScheduleThread.java:439)
        at org.hyperic.hq.measurement.agent.server.ScheduleThread.access$1400(ScheduleThread.java:74)
        at org.hyperic.hq.measurement.agent.server.ScheduleThread$MetricTask.run(ScheduleThread.java:505)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: Closed Connection
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
        at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:722)
        at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:698)
        at org.hyperic.hq.product.JDBCMeasurementPlugin.getQueryValue(JDBCMeasurementPlugin.java:282)
        ... 12 more


Is there a way to modify this behavior?

Agent & Server both in 4.5.1.3.

Thx

On WinXP, "SigarException: No Process counters defined (disabled?)"

$
0
0
On WinXP, I am getting an exception:

org.hyperic.sigar.SigarException: No Process counters defined (disabled?)
        at org.hyperic.sigar.ProcMem.gather(Native Method)
        at org.hyperic.sigar.ProcMem.fetch(ProcMem.java:30)
        at org.hyperic.sigar.Sigar.getProcMem(Sigar.java:445)

I am trying to get the process memory using Sigar.getProcMem.  Is this supported on XP?  I should note that it is a VM.

Getting Hyperic to monitor ESXi hosts or vCenter Server

$
0
0

I don't know if I'm in the right place here since I don't see a vFabric Hyperic forum and I'm just starting out on Hyperic as well.

 

I deployed the vFabric Hyperic 5.0 vApp and am finding the documentation either really bad or just too hard to figure out for a beginner. I'm trying to see what I need to do to have Hyperic monitor vCenter 5.1, VMs and ESXi 5.1 hosts assuming it will do all that.

 

I read not to install the agent on the vCenter server then read you should install it on the vCenter server. Then I read to install the agent on another computer and edit the agent.properties file but the edits look like they are already there. I also read ESXi will report to Hyperic as is but cant find what I need to do to make that happen. It also seems that you can have the vCenter agent running and then have agents on all the VMs for application monitoring.

 

If anyone can give me the quickie lesson on what I need to do or point me in the right direction I would appreciate it!


hyperic-agent in maintenance state, fails to start

$
0
0

Hi,

 

I'm running hyperic on HP x86 blades with a 64-bit Solaris OS.

 

The hyperic-agent service keeps entering maintenance state with the following logs;

 

 

xhkny91035>svcs -a | grep hyper
online         Jan_23   svc:/ericsson/eric_3pp/hyperic-server:default
maintenance    11:45:55 svc:/ericsson/eric_3pp/hyperic-agent:default
Look at service log
xhkny91035>svcs -x /ericsson/eric_3pp/hyperic-agent
svc:/ericsson/eric_3pp/hyperic-agent:default (Hyperic Agent)
State: maintenance since Fri Mar 15 11:45:55 2013
Reason: Start method failed repeatedly, last died on Killed (9).
   See: Hyperic Agent-4.6(1)
   See: /var/svc/log/ericsson-eric_3pp-hyperic-agent:default.log
Impact: This service is not running.

xhkny91035>tail /var/svc/log/ericsson-eric_3pp-hyperic-agent:default.log
[ Mar 15 11:40:54 Leaving maintenance because clear requested. ]
[ Mar 15 11:40:54 Enabled. ]
[ Mar 15 11:40:54 Executing start method ("/opt/hyperic-agent/ericsson/bin/hq-service.sh start") ]
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
-n Starting HQ Agent...

[ Mar 15 11:45:55 Method or service exit timed out.  Killing contract 25776 ]
[ Mar 15 11:45:55 Method "start" failed due to signal KILL ]
xhkny91035>tail -20 /var/svc/log/ericsson-eric_3pp-hyperic-agent:default.log
[ Jan 23 15:57:57 Disabled. ]
[ Jan 23 16:05:51 Enabled. ]
[ Jan 23 16:05:51 Executing start method ("/opt/hyperic-agent/ericsson/bin/hq-service.sh start") ]
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
-n Starting HQ Agent...

[ Jan 23 16:10:51 Method or service exit timed out.  Killing contract 5607 ]
[ Jan 23 16:10:51 Method "start" failed due to signal KILL ]
[ Mar 15 11:40:54 Leaving maintenance because clear requested. ]
[ Mar 15 11:40:54 Enabled. ]
[ Mar 15 11:40:54 Executing start method ("/opt/hyperic-agent/ericsson/bin/hq-service.sh start") ]
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
-n Starting HQ Agent...

[ Mar 15 11:45:55 Method or service exit timed out.  Killing contract 25776 ]
[ Mar 15 11:45:55 Method "start" failed due to signal KILL ]

Look at agent log

 

xhkny91035>tail /var/log/hyperic/agent/agent.log

...

 

java.lang.OutOfMemoryError: Java heap space

        at java.util.TreeMap.put(TreeMap.java:554)

        at java.util.TreeSet.add(TreeSet.java:238)

        at org.hyperic.util.file.DiskList.genFreeList(DiskList.java:250)

        at org.hyperic.util.file.DiskList.<init>(DiskList.java:141)

        at org.hyperic.hq.agent.server.AgentDListProvider.intrCreateList(AgentDListProvider.java:100)

        at org.hyperic.hq.agent.server.AgentDListProvider.createList(AgentDListProvider.java:111)

        at org.hyperic.hq.measurement.agent.server.SenderThread.<init>(SenderThread.java:131)

        at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.startup(MeasurementCommandsServer.java:232)

        at org.hyperic.hq.agent.server.AgentDaemon.startHandlers(AgentDaemon.java:796)

        at org.hyperic.hq.agent.server.AgentDaemon.start(AgentDaemon.java:917)

        at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:1014)

        at java.lang.Thread.run(Thread.java:662)

...

Here's the memory dimensioning
memoryusage.PNG
I've had a look at the following after searching on the web.
1-Insufficient memory allocation in hyperic-server configuration file
2-Problems with JVM garbage collection
3-Problems with hyperic plugins being greedy with memory
Need to perform further analysis
-restart hyperic-server and activate garbage collection logging to see rate of memory usage over few days
According to VMware Vfabric Hyperic Server 4.6 documentation:
If you are running Hyperic Server on a 64-bit system with 4GB (4096 MB) or less memory, Hyperic recommends you use 32-bit JVM. A 64-bit JVM is not recommended unless you have more memory. You might need twice as much heap on a 64-bit system as on a 32-bit system to achieve the same performance.
The Model MWS is a 64-bit system with 16GB RAM and 64-bit JVM. Satisfactory.

Vsphere permissions question?

$
0
0

Why does Hyperic require these permissions. it seems a bit much from a monitoring perspective?

 

 

Required Privileges

 

The vCenter user account that the Hyperic Agent uses to connect to vCenter must have a vCenter role with the following privileges: 

  •   Virtual machine > Interaction > Power Off, Power On, Reset, and Suspend
  •   Virtual machine > State > Create Snapshot, Remove Snapshot, Rename Snapshot, and Revert Snapshot

Exchange 2013 Support

$
0
0

Hi,

 

I've just installed the Hyperic 5.8.1 agent on an Exchange 2013 mailbox server, but the agent hasn't picked up that it's an Exchange server... Am I missing something?

 

TIA

Is it possible to customize email alert per resource in Hyperic?

$
0
0

Hi,

 

We are looking at being able to send customized email alerts in Hyperic. We need to change the Subject line and Body of the email alert generated for a resource.

Please let us know if this is possible? If so, please point me to the right direction to find the related documents and procedures? I would help a great deal, if anyone can give me a detailed procedure.

 

Any info would be highly appreciated.

 

Thanks,

Arun

I always get a per process CPU usage of zero when using the C API

$
0
0
I have written a little test program that deliberately goes into a tight CPU loop. This features as high CPU usage on task manager. However, my C++ sigar program shows it with a CPU usage of zero. It shows zero for every process. Here is a redacted version of my code:

int errorCode;
sigar_proc_list_t processList;
errorCode = sigar_proc_list_get(sigar, &processList);
if (errorCode != SIGAR_OK)
{
throw std::runtime_error(sigar_strerror(sigar, errorCode));
}

for (size_t i = 0; i < processList.number; i++)
{
sigar_proc_cpu_t cpu;
errorCode = sigar_proc_cpu_get(sigar, processList.data[i], &cpu);
if (errorCode != SIGAR_OK)
{
continue;
}

std::cout << processList.data[i] << " " << 100.0 * cpu.percent << std::endl;
}

What am I doing wrong please?

-Andrew Marlow

Getting total CPU usage

$
0
0
Hello,

Would anyone know how to go about getting the total cpu usage percentage for all CPU's in a system? I would like to get the result as a double. I am new to SIGAR.

thanks

Get CPU time for process?

$
0
0
I am trying to write some benchmarks of a command line application using Java.  I want to run a number of commands using something like ProcessBuilder or Runtime.exec().  After the command completes, I would like to get the CPU time used by the command, as opposed to just the clock time.  If I were doing this only on Linux, I would just use the time command to run the command and then parse the results.  However, I would like to write something that I could also run on Windows.

Can this be done using SIGAR?  Can someone give some sample code?  I know you can get the PID from ProcessBuilder, so I am thinking that I use that to run the command and then use some SIGAR API to find out how much CPU time the process that was created used.  The process will have ended, so I am wondering if this is still possible to do?

Also wondering if SIGAR has its own classes for running a command that maybe incorporate some of this.

Thanks

Mark

Hyperic 5.8 - Agent Install Errors

$
0
0

I am trying to deploy the Hyperic 5.8.0 agent across some VMs.  I am running vSphere 5.1, vCenter 5.1, Hyperic 5.8.  I have six RHEL Vms all running latest vmtools.  When I push the agent installer via the vCenter Web Client, it will install fine on 5 out of 6 almost identical VM's.  On the 6th one I get, "Install Hyperic Agent: Access Failed: An Unknown Error has occured"  Any ideas?

Session Management Control

$
0
0
I was looking in the product documentation about one specific problem I have.

1)     I´ve one J2EE application (servlets & Jsp) that receive request from one user and he write his credentials and enter to the web application.
2)     The problem is if other user probably has the same account, he could login in other “browser” and have two active sessions at same time
3)     I need a product to solve this problem in order to avoid concurrency with the same account in several browser

I already see hyperic documentation and only get metrics about performance, utilization, etc. and also has control actions and alerts. But
I didn´t see anything about web app active session control & concurrence.

Could you tell me how your product may solve this….or the on-line reference that said how to do it??

Thanks a lot.

no sigar-x86-winnt.dll in java.library.path, using Sigar with Webstart

$
0
0
I am facing problem where sigar dlls are not being picked up when using via Webstart. We need the dlls to be downloaded on the client machine so that Machine specific Sigar calls can be done.

I am able to use sigar API/dll's, when I am using it in a Java application by configuring "java.library.path" to point the location of dlls. (I cannot keep the dll's and jars in the same location.)

For making Sigar.dll work with webstart, I have done the following
1) Made a Jar out of the dll's, named it sigarNative.jar.
2) I have updated the jnlp file on the server as follows.
       <resources os="Windows">
          <property name="sun.java2d.noddraw" value="true" />
          <property name="JINTEGRA_NATIVE_MODE" value="" />
          <nativelib href="<path>/sigarNative.jar"/>
     </resources>

This is how other custom native libraries are configured in our application.

Even after doing the above steps I get the below errors.

[LOGGED STACK TRACE BEGIN]
org.hyperic.sigar.SigarException: no sigar-x86-winnt.dll in java.library.path
     at org.hyperic.sigar.Sigar.load(Sigar.java:154)
     at com.portware.util.health.SigarHealthRetreiver.initialize(SigarHealthRetreiver.java:193)

Can anybody point me to the work around for making Sigar dll's work with Webstart.

Thanks,

VK

Could not create deployment...jboss-service.xml

$
0
0
I found where other have had this issue but could not find a resolution.

This is a new install of v4.1.1 on CentOS5.2 32bit. 1GB memory, non ZEN kernel.
uname -a -> Linux utilpc.example.com 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST 2008 i686 athlon i386 GNU/Linux

File 'jboss-service.xml' has an updated timestamp so the process did touch the file.

Has anyone encountered this and resolved it?

-----------------------
From the server.out log file:

08:23:29,776 WARN  [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss
.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegis
try@d75415)]
08:23:29,835 ERROR [MainDeployer] Could not create deployment: file:/opt/hyperic/server-4.1.1/hq-engine/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
        at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
        at org.jboss.system.ServiceController.install(ServiceController.java:226)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.install(Unknown Source)
        at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

Edit:Added Hyperic version

   
Message was edited by: billygbob

Possible to monitor Amazon SQS ? (simple queue service) ?

$
0
0
Here is a funny one...

Can we monitor an SQS queue?

I think there are just a few things we need to watch:

- New messages/minute
- Age of oldest message
- # of messages in queue

Thoughts?

Thanks!
Viewing all 52618 articles
Browse latest View live


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