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

Hyperic support CPU / Hard disk temperature ?

$
0
0

Dear All,


Does Hyperic supports monitoring of CPU / Hard disk temperature ?


-

Sree


Announced sigar-amd64-winnt.dll missing in sourceforge's distributive

$
0
0
Hi!

In fact all the question is in subject. On SIGAR documentation you write that Windows amd64 is supported platform and sigar-amd64-winnt.dll library is included into binary distribution. But this file is missing in binary distribution downloaded from http://sourceforge.net/project/showfiles.php?group_id=172552 and as a result CIGAR fails when running on 64-bit Windows via 64-bit JVM.

How to set up Hyperic to minitor ActiveMQ?

$
0
0
I am quite new to Hyperic.

First I followed the installation guide for installing both server and agent. For testing purpose, the Hyperic server and agent are at one Linux box, which is the same box as ActiveMQ is at. Then I started Hyperic server and agent. The auto-discovery didn't find ActiveMQ.

I could manually add ActiveMQ 5.0 server. But I don't think I set it correctly. Because when I start ActiveMQ, "Process Start Time" in the monitoring tab doesn't change. The settings I have are:

process.query: State.Name.sw=java,Args.*.eq=-Dactivemq.home=/home/XYZ/apache/apache-activemq/apache-activemq-5.1.0        
jmx.url:       service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

So how should I do to set up Hyperic to monitor ActiveMQ? Thank you very much.

How to get XEON CPU model number (e.g. 5530) from SIGAR API

$
0
0
Hello,

Is it possible to get the XEON CPU model number (e.g. 5530) from SIGAR API?

If this is not possible, is there a way to extend SIGAR to get this kind of information?

Thanks,
Jean

amd64 lib appears to be missing in distributable and unable to compile

$
0
0
I'm trying to access this library from my C/C++ codebase and have been unsuccessful so far.

Environment:
Visual Studio 2008 Professional
Windows 7 x64

1. I see `unresolved external symbols` while compiling with my project [1]. I will take a guess at the issue - the following files are included in the package:

sigar-amd64-winnt.dll
sigar-x86-winnt.dll
sigar-x86-winnt.lib

Shouldn't there be a `sigar-amd64-winnt.lib`?


2. I tried to build from the source. I am stuck with the errors listed in [2]. I see the declarations and use of those 2 functions in the codebase, but I do not see their implementations!


3. I tried building the project with Ant. I have no experience with Java or Ant, so please forgive me if I'm doing something very stupid here. I see the error in [3].

[1]
Creating library C:\Users\RjOllos\Workspace\T834-RO\tmp\runAcq.lib and object C:\Users\RjOllos\Workspace\T834-RO\tmp\runAcq.exp
6>SystemInfo.obj : error LNK2019: unresolved external symbol sigar_close referenced in function "public: __cdecl SystemInfo::~SystemInfo(void)" (??1SystemInfo@@QEAA@XZ)
6>SystemInfo.obj : error LNK2019: unresolved external symbol sigar_cpu_info_list_get referenced in function "public: __cdecl SystemInfo::SystemInfo(void)" (??0SystemInfo@@QEAA@XZ)
6>SystemInfo.obj : error LNK2019: unresolved external symbol sigar_open referenced in function "public: __cdecl SystemInfo::SystemInfo(void)" (??0SystemInfo@@QEAA@XZ)
6>C:\Users\RjOllos\Workspace\T834-RO\tmp\runAcq.mexw64 : fatal error LNK1120: 3 unresolved externals
6>Build Time 0:00
6>Build log was saved at "file://C:\Users\RjOllos\Workspace\T834-RO\tmp\Acquisition Server\x64\Release\BuildLog.htm"
6>Acquisition Server - 4 error(s), 0 warning(s)\


[2]
Creating library C:\Users\RjOllos\Workspace\T834-RO\tmp\sigar-amd64-winnt.lib and object C:\Users\RjOllos\Workspace\T834-RO\tmp\sigar-amd64-winnt.exp
3>win32_sigar.obj : error LNK2019: unresolved external symbol sigar_proc_args_wmi_get referenced in function sigar_remote_proc_args_get
3>win32_sigar.obj : error LNK2019: unresolved external symbol sigar_proc_exe_wmi_get referenced in function sigar_proc_exe_get
3>C:\Users\RjOllos\Workspace\T834-RO\tmp\sigar-amd64-winnt.dll : fatal error LNK1120: 2 unresolved externals

[3]
C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java>ant
Buildfile: C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build.xml

jni-init:
    [mkdir] Created dir: C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build\clas
ses
     [echo] jni.src=win32, jni.jdk.os=win32, 64-bit
    [javac] C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\hyperic_jni\jni-build.x
ml:165: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to fals
e for repeatable builds
    [javac] Compiling 6 source files to C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\
java\build\classes
    [javac] Note: C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\hyperic_jni\src\o
rg\hyperic\jni\ArchLoader.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
  [libarch] amd64-winnt
     [echo] java.home=C:\Program Files\Java\jdk1.6.0_24

sigar-version:
     [echo] SIGAR git revision exported

version-file:
     [echo] cp ./src/org/hyperic/sigar/SigarVersion.java.in -> C:\Users\RjOllos\Downloads\hyperic-si
gar-1.6.4-src\bindings\java\build/./src/org/hyperic/sigar/SigarVersion.java
     [copy] Copying 1 file to C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build
\src\org\hyperic\sigar

version-file:
     [echo] cp ../../src/sigar_version.c.in -> C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bi
ndings\java\build/src/sigar_version.c
     [copy] Copying 1 file to C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build
\src

version-file:
     [echo] cp ../../src/os/darwin/Info.plist.in -> C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-s
rc\bindings\java\build/src/Info.plist
     [copy] Copying 1 file to C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build
\src

version-file:
     [echo] cp ../../src/os/win32/sigar.rc.in -> C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\
bindings\java\build/src/sigar.rc
     [copy] Copying 1 file to C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build
\src

sigar.rc:

BUILD FAILED
C:\Users\RjOllos\Downloads\hyperic-sigar-1.6.4-src\bindings\java\build.xml:179: Execute failed: java
.io.IOException: Cannot run program "rc" (in directory "C:\Users\RjOllos\Downloads\hyperic-sigar-1.6
.4-src\bindings\java\build\src"): CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
        at java.lang.Runtime.exec(Runtime.java:593)
        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
        ... 23 more

Total time: 2 seconds

Sigar - win 7 (64b) - Java7 - Intel

$
0
0

Hi, i'm new to sigar api and i try tu get a simpel MemInfo with using the Sigar API.
Im using Java7, Eclipse Indigo, Windows 7 (64Bit), Intel Processor.

So at first im adding the sigar,jar to the buildpath and coping the sigar-amd64-winnt.dll to the jre7/lib and to the project-root-container.

Then i only create a new sigar

 

Sigar sig = new Sigar();

 

but i only get an exception:

Failed to load sigar-amd64-winnt: java.lang.NullPointerException
org.hyperic.sigar.SigarException: Failed to load sigar-amd64-winnt: java.lang.NullPointerException
    at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:170)
    at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:100)
    at Test.main(Test.java:10)

 

i already tryed, to load the native library by myself but unsuccessfully the exception is still standing.

so now my question, is it possible the sigar doenst work for intel x64?? or it doent matter?

Hyperic 4.6.6 Agent Startup Failure

$
0
0

Hey,

 

We have been using Hyperic extensively for monitoring more than 150 platforms for the past 3-4 months. We have recently upgraded the version from 4.4 to 4.6.6.

 

The issue is with the Hyperic Agent Startup and it is coming intermittently on few of the VM's. Steps to reproduce this:

1) Stop the Hyperic Agent

2) Start the Hyperic Agent

 

What I see on the console is:

Error:Error contacting agent: Error sending argument: Unable to connect to 127.0.0.1:2144: Connection refused, retried 5 times, cmd=agenting

 

The logs in log/agent,log:

 

19-02-2013 13:12:01,000 UTC INFO  [AgentDaemonMain] [AgentDaemon@1050] Attempting to rollback agent bundle
19-02-2013 13:12:01,001 UTC INFO  [AgentDaemonMain] [AgentDaemon@1059] Rollback of agent bundle was successful
19-02-2013 13:12:01,001 UTC INFO  [AgentDaemonMain] [AgentDaemon@1064] Restarting JVM...
19-02-2013 13:12:01,002 UTC INFO  [AgentDaemonMain] [AgentUpgradeManager@67] restart requested
19-02-2013 13:12:20,748 UTC ERROR [AgentDaemonMain] [AgentDaemon@1004] Agent configuration failed:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
        at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:653)
        at org.hyperic.util.security.MarkedStringEncryptor.decrypt(MarkedStringEncryptor.java:74)
        at org.jasypt.properties.PropertyValueEncryptionUtils.decrypt(PropertyValueEncryptionUtils.java:72)
        at org.hyperic.util.security.SecurityUtil.decrypt(SecurityUtil.java:101)
        at org.hyperic.hq.agent.server.AgentDListProvider.init(AgentDListProvider.java:371)
        at org.hyperic.hq.agent.server.AgentDaemon.createStorageProvider(AgentDaemon.java:384)
        at org.hyperic.hq.agent.server.AgentDaemon.configure(AgentDaemon.java:430)
        at org.hyperic.hq.agent.server.AgentDaemon.newInstance(AgentDaemon.java:184)
        at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:1001)
        at java.lang.Thread.run(Thread.java:662)
While the logs in log/wrapper.log are as follows:
STATUS | wrapper  | 2013/02/19 13:11:21 | JVM requested a restart.
INFO   | jvm 1    | 2013/02/19 13:11:22 | Stopping agent ...
INFO   | jvm 1    | 2013/02/19 13:11:34 | Success -- agent is stopped!
STATUS | wrapper  | 2013/02/19 13:11:39 | Reloading Wrapper configuration...
STATUS | wrapper  | 2013/02/19 13:11:39 | Launching a JVM...
INFO   | jvm 2    | 2013/02/19 13:11:39 | WrapperManager: Initializing...
INFO   | jvm 2    | 2013/02/19 13:11:41 | - Invoking agent
INFO   | jvm 2    | 2013/02/19 13:11:41 | - Agent thread running
INFO   | jvm 2    | 2013/02/19 13:11:41 | - Verifying if agent is running...
INFO   | jvm 2    | 2013/02/19 13:11:41 | Error invoking agent: Agent reported an error while starting up
STATUS | wrapper  | 2013/02/19 13:11:41 | JVM requested a restart.
INFO   | jvm 2    | 2013/02/19 13:11:42 | Stopping agent ...
INFO   | jvm 2    | 2013/02/19 13:11:54 | Success -- agent is stopped!
STATUS | wrapper  | 2013/02/19 13:11:59 | Reloading Wrapper configuration...
STATUS | wrapper  | 2013/02/19 13:11:59 | Launching a JVM...
INFO   | jvm 3    | 2013/02/19 13:11:59 | WrapperManager: Initializing...
INFO   | jvm 3    | 2013/02/19 13:12:00 | - Invoking agent
INFO   | jvm 3    | 2013/02/19 13:12:00 | - Agent thread running
INFO   | jvm 3    | 2013/02/19 13:12:00 | - Verifying if agent is running...
INFO   | jvm 3    | 2013/02/19 13:12:01 | Error invoking agent: Agent reported an error while starting up
STATUS | wrapper  | 2013/02/19 13:12:01 | JVM requested a restart.
INFO   | jvm 3    | 2013/02/19 13:12:02 | Stopping agent ...
INFO   | jvm 3    | 2013/02/19 13:12:14 | Success -- agent is stopped!
STATUS | wrapper  | 2013/02/19 13:12:19 | Reloading Wrapper configuration...
STATUS | wrapper  | 2013/02/19 13:12:19 | Launching a JVM...
INFO   | jvm 4    | 2013/02/19 13:12:19 | WrapperManager: Initializing...
INFO   | jvm 4    | 2013/02/19 13:12:20 | - Invoking agent
INFO   | jvm 4    | 2013/02/19 13:12:20 | - Agent thread running
INFO   | jvm 4    | 2013/02/19 13:12:20 | - Verifying if agent is running...
INFO   | jvm 4    | 2013/02/19 13:12:20 | Error invoking agent: Agent reported an error while starting up
STATUS | wrapper  | 2013/02/19 13:12:20 | JVM requested a restart.
INFO   | jvm 4    | 2013/02/19 13:12:21 | Stopping agent ...
INFO   | jvm 4    | 2013/02/19 13:12:33 | Success -- agent is stopped!
STATUS | wrapper  | 2013/02/19 13:12:38 | Reloading Wrapper configuration...
STATUS | wrapper  | 2013/02/19 13:12:38 | Launching a JVM...
INFO   | jvm 5    | 2013/02/19 13:12:39 | WrapperManager: Initializing...
INFO   | jvm 5    | 2013/02/19 13:12:40 | - Invoking agent
INFO   | jvm 5    | 2013/02/19 13:12:40 | - Agent thread running
INFO   | jvm 5    | 2013/02/19 13:12:40 | - Verifying if agent is running...
INFO   | jvm 5    | 2013/02/19 13:12:40 | Error invoking agent: Agent reported an error while starting up
INFO   | jvm 5    | 2013/02/19 13:12:41 | Stopping agent ...
INFO   | jvm 5    | 2013/02/19 13:12:53 | Success -- agent is stopped!
ERROR  | wrapper  | 2013/02/19 13:13:14 | Shutdown failed: Timed out waiting for signal from JVM.
ERROR  | wrapper  | 2013/02/19 13:13:14 | JVM did not exit on request, terminated
STATUS | wrapper  | 2013/02/19 13:13:15 | JVM received a signal SIGKILL (9).
STATUS | wrapper  | 2013/02/19 13:13:15 | on_exit trigger matched.  Restarting the JVM.  (Exit code: 1)
FATAL  | wrapper  | 2013/02/19 13:13:15 | There were 5 failed launches in a row, each lasting less than 60 seconds.  Giving up.
FATAL  | wrapper  | 2013/02/19 13:13:15 |   There may be a configuration problem:please check the logs.
STATUS | wrapper  | 2013/02/19 13:13:15 | <-- Wrapper Stopped

Any help on this would be really appreciated.
Regards,
Yashika

Build sigar.dll on 32/64-bit Windows

$
0
0

Hi guys,

 

Just want to know if there's a clear documentaion about how to build the "sigar.dll" on 32/64-bit Windows.

I'm using Windows7/8 with "Microsoft VisualStudio 10.0".

 

The "winbuild.bat" seems very old and won't works (complains about missing cmake, mysql, etc.).

 

So, is there a way to simplify this building process?

 

Thx

Mica


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.

Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperic/hq/bizapp/agent/client/AgentClient

$
0
0

We are trying to use this product to monitor SOA 11g on Weblogic Server on Linux 86-64 bit.....  We are getting this error...

 

/oracle/hyperic/agent-4.6.6/bin

[oracle@soa01 bin]$ ls

hq-agent.bat  hq-agent.sh

[oracle@soa01 bin]$ ./hq-agent.sh stop

Stopping HQ Agent...

Stopped HQ Agent.

[oracle@soa01 bin]$ ./hq-agent.sh start

Starting HQ Agent...... running (1996).

Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperic/hq/bizapp/agent/client/AgentClient

Caused by: java.lang.ClassNotFoundException: org.hyperic.hq.bizapp.agent.client.AgentClient

  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

  at java.security.AccessController.doPrivileged(Native Method)

  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: org.hyperic.hq.bizapp.agent.client.AgentClient.  Program will exit.

 

-- SETTINGS are for JRE are here...which are used for WLS for SOA also.... ( the default JRE home was giving same error we tried our luck with what we sued for WLS - same issue )

 

/oracle/hyperic/agent-4.6.6/bundles/agent-4.6.6/conf/wrapper.conf

# default JAVA_HOME in case it is not already set

set.default.HQ_JAVA_HOME=/oracle/jdk1.7.0_51/jre

 

 

-- SETTINGS for... agent.properties file

 

# required to find server/lib/weblogic.jar

weblogic.installpath=/oracle/middleware/wlserver_10.3/

 

-- SETTINGS for bundles/bin/hq-agent.sh

 

ENT_CLASSPATH="${AGENT_LIB}/cryptoj.jar"

CLIENT_CLASSPATH="${AGENT_LIB}/wlfullclient.jar"

Access Failed. Authentication error - invalid credentials

$
0
0

Im running Hyperic 5.8.  I'm starting to see this error pop up in the vSphere web client under cluster/manage/hyperic agents.  It seems to be spreading.  I've looked in HQ, but don't see anywhere that an agent password, etc is created. 

 

Any ideas?

Trying to add Cisco router to hyperic - where are the log files ?

$
0
0

I have a hyperic server. I create a new network platform to get snmp information from my cisco router.

 

I put in the snmplp $ip , the snmpCommunity .. and i thought i was done..

 

well, i am not able to collect any metrics.

 

My question is , where are the log files for this ?

 

seems that you need an "agent connection" i assume that means, to use any server running the hyperic agent on it ?

Monitoring ActiveMQ 5.8.0

$
0
0

Hi,

 

          I have to monitor ActiveMQ 5.8.0 . But I am using hyperic 4.6.6 which allows to monitor activeMq up to 5.4.

So my activeMq was not auto discovered. when I manually creat new activeMq server5.4 and added configuration of my ActiveMQ 5.8.0 (process query and installed path) then activeMq was discovered and hyperic started monitoring to it. but still broker ,topic and connector were not discovered . I tried to to manually configure to broker by its name but it giving error of invalid configuration.and i dont know about what to set for Destination in topic setting....

       Please someone guide me....???

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?

Hyperic Server 5.8.2 Open Soure Support E-Mail Alert ?

$
0
0

Hello All,

 

I use Hyperic 5.8.2.

Does Open source version of Hyperic supports Alerts thro E-Mail ?or is it available only in Enterprise Version ?

 

I set Availability alert and I am getting a similar kind of error as shown in this link.

Re: Alerts via SnmpTrap

I added Notify Other  Recipients and mentioned an E-Mail Address.

When ever the alert occurs, recipient  email id is not getting any alerts

 

I see these logs meesages in server.log

 

org.hyperic.hq.events.server.session.AlertConditionsSatisfiedListener@7bf092f11] [org.hyperic.hq.events.server.session.Action@259] Error getting initialized action for org.hyperic.hq.bizapp.server.action.integrate.OpenNMSAction

WARN  [org.hyperic.hq.events.server.session.AlertConditionsSatisfiedListener@7bf092f11] [org.hyperic.hq.events.server.session.ClassicEscalatableCreator@165] Error executing action [(id=10009, class="org".hyperic.hq.bizapp.server.action.integrate.OpenNMSAction)]

org.hyperic.hq.events.ActionExecuteException: Unable to execute action: Unable to get action

 

Where should I check ?

I am sure that, I am able to send E-Mail from the Hyperic Server.

hq-server.conf looks as follows

 

  server.mail.host=smtp.smtp.in

# Change to SMTP port

  mail.smtp.port=25

# SMTP properties

  mail.smtp.auth=false

  mail.smtp.socketFactory.class=javax.net.SocketFactory

  mail.smtp.socketFactory.fallback=false

  mail.smtp.socketFactory.port=25

  mail.smtp.starttls.enable=false

-

Sree


Unable to connect to SNMP Agent

$
0
0
I'm developing a new Hyperic plugin to monitor the hardware of our servers. They are mostly Dell servers. I want to use SNMP to read things like power supply and disk status from the Dell OpenManage software. We are already running HQ agents on these platforms and I want to add the hardware monitoring as a server resource and have power supplies, disks etc. each to be displayed as seperate services within the server resource.

SNMP is all configured and working properly. I can read all the values I need from the command line using snmp(walk|get|getnext|table|bulkget). The plugin is still very basic and only tries to enumerate all the available power supplies (which show up as services) and read the status, output and type for the individual power supplies.I have attached the current version of the plugin to this post.

However, the plugin currently only works partly and I am completely stuck because the agent keeps giving me this error:

> Invalid configuration: Error contacting resource: Unable to connect to SNMP Agent (127.0.0.1:161 v2c,public)

Searching the forums has turned up some posts describing the same problem, but the proposed solutions do not work for me:

http://communities.vmware.com/thread/348850?tstart=330
http://communities.vmware.com/message/1918450#1918450

Here's what happens:

- plugin is deployed to HQ agent and HQ server
- the "Dell Hardware" server is manually added to a platform
- using the default configuration options, the power supplies are succesfully auto-discovered by the HQ agent and each show up in HQ
- HQ starts complaining about not being able to connect to the SNMP agent when browsing to the individual power supply service resources

The strange thing is that it is simply not true that the HQ agent can't connect to the SNMP agent, as I can see the SNMP queries taking place (using tcpdump):

root@platform:~# tcpdump -vvv -T snmp -s 2048 -ni any port 161
12:47:42.137805 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], length: 78) 127.0.0.1.32824 > 127.0.0.1.161:  { SNMPv2c { GetBulk(35) R=1432613512  N=0 M=10 .1.3.6.1.4.1.674.10892.1.600.12.1.2 } }
12:47:42.139539 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], length: 305) 127.0.0.1.161 > 127.0.0.1.32824:  { SNMPv2c { GetResponse(258) R=1432613512  .1.3.6.1.4.1.674.10892.1.600.12.1.2.1.1=1 .1.3.6.1.4.1.674.10892.1.600.12.1.2.1.2=2 .1.3.6.1.4.1.674.10892.1.600.12.1.2.1.3=3 .1.3.6.1.4.1.674.10892.1.600.12.1.3.1.1=0 .1.3.6.1.4.1.674.10892.1.600.12.1.3.1.2=0 .1.3.6.1.4.1.674.10892.1.600.12.1.3.1.3=0 .1.3.6.1.4.1.674.10892.1.600.12.1.4.1.1=242 .1.3.6.1.4.1.674.10892.1.600.12.1.4.1.2=242 .1.3.6.1.4.1.674.10892.1.600.12.1.4.1.3=242 .1.3.6.1.4.1.674.10892.1.600.12.1.5.1.1=3 } }
12:47:47.433957 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], length: 78) 127.0.0.1.32824 > 127.0.0.1.161:  { SNMPv2c { GetBulk(35) R=1432613514  N=0 M=10 .1.3.6.1.4.1.674.10892.1.600.12.1.5 } }
12:47:47.435553 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], length: 335) 127.0.0.1.161 > 127.0.0.1.32824:  { SNMPv2c { GetResponse(288) R=1432613514  .1.3.6.1.4.1.674.10892.1.600.12.1.5.1.1=3 .1.3.6.1.4.1.674.10892.1.600.12.1.5.1.2=3 .1.3.6.1.4.1.674.10892.1.600.12.1.5.1.3=3 .1.3.6.1.4.1.674.10892.1.600.12.1.6.1.1=7000 .1.3.6.1.4.1.674.10892.1.600.12.1.7.1.1=9 .1.3.6.1.4.1.674.10892.1.600.12.1.7.1.2=11 .1.3.6.1.4.1.674.10892.1.600.12.1.7.1.3=11 .1.3.6.1.4.1.674.10892.1.600.12.1.8.1.1="PS 1 Status " .1.3.6.1.4.1.674.10892.1.600.12.1.8.1.2="PROC_1 VRM " .1.3.6.1.4.1.674.10892.1.600.12.1.8.1.3="PROC_2 VRM " } }
12:47:47.436757 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], length: 78) 127.0.0.1.32824 > 127.0.0.1.161:  { SNMPv2c { GetBulk(35) R=1432613516  N=0 M=10 .1.3.6.1.4.1.674.10892.1.600.12.1.2 } }
12:47:47.438017 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], length: 305) 127.0.0.1.161 > 127.0.0.1.32824:  { SNMPv2c { GetResponse(258) R=1432613516  .1.3.6.1.4.1.674.10892.1.600.12.1.2.1.1=1 .1.3.6.1.4.1.674.10892.1.600.12.1.2.1.2=2 .1.3.6.1.4.1.674.10892.1.600.12.1.2.1.3=3 .1.3.6.1.4.1.674.10892.1.600.12.1.3.1.1=0 .1.3.6.1.4.1.674.10892.1.600.12.1.3.1.2=0 .1.3.6.1.4.1.674.10892.1.600.12.1.3.1.3=0 .1.3.6.1.4.1.674.10892.1.600.12.1.4.1.1=242 .1.3.6.1.4.1.674.10892.1.600.12.1.4.1.2=242 .1.3.6.1.4.1.674.10892.1.600.12.1.4.1.3=242 .1.3.6.1.4.1.674.10892.1.600.12.1.5.1.1=3 } }

It is also very strange that the HQ agent is able to enumerate the available power supplies through auto-discovery at first (which would require a working SNMP connection), but after that can not read the related power supply status OIDs. I've tried different combinations of snmpIp's and snmpVersions, to no avail :-(

Anyone have any ideas?

Leander

SIGAR 1.4 jars + tgz posted to JBoss Maven 2 repository

Cisco IOS - Can't monitor Subinterfaces

$
0
0
I have an platform that the IOS plugin works on (finally). The plugin autodiscovers all of the interfaces on this router. It can read the statistics for the physical interfaces ok, but any of the subinterfaces that are defined off of that same physical interface just show up with a question mark next to them. Has anyone else noticed this, or found a way to get this to work?

SIGAR not working: org.hyperic.sigar.test.TestPTQL............FAILED

$
0
0
Hi Everybody,

I've got an issue with the Agent.

After trying to add Bind, I got this Error:

Failed to invoke getProcCpu[State.Name.eq=named]: Query did not match any processes: State.Name.eq=named

After a few hours spent on narrowing down the issue, I got stuck at SIGAR.
The only non-standard in my enviroment is that the nodes run in Virtuozzo (Parallels).

Any help would be appreciated.

Error-message:

ns1.somedomain.com lib # pwd     
/opt/hyperic-hq-agent-3.2.2/pdk/lib
ns1.somedomain.com lib # ../../jre/bin/java -jar sigar.jar
sigar> test
Sigar version.......java=1.5.0.1, native=1.5.0.1
Build date..........java=01/31/2008 09:43 PM, native=01/31/2008 10:10 PM
Archlib.............libsigar-amd64-linux.so
Current fqdn........ns1.somedomain.com
Current user........root

OS description......CentOS 5
OS name.............Linux
OS arch.............x86_64
OS machine..........x86_64
OS version..........2.6.9-023stab046.2-smp
OS patch level......unknown
OS vendor...........CentOS
OS vendor version...5
OS code name........Final
OS data model.......64
OS cpu endian.......little
Java vm version.....1.5.0_12-b04
Java vm vendor......Sun Microsystems Inc.
Java home.........../opt/hyperic-hq-agent-3.2.2/jre

org.hyperic.sigar.test.TestLog.............ok
org.hyperic.sigar.test.TestInvoker.........ok
org.hyperic.sigar.test.TestPTQL............FAILED
org.hyperic.sigar.test.TestCpu.............ok
org.hyperic.sigar.test.TestCpuInfo.........ok
org.hyperic.sigar.test.TestFileInfo........ok
org.hyperic.sigar.test.TestFileSystem......ok
org.hyperic.sigar.test.TestFQDN............ok
org.hyperic.sigar.test.TestLoadAverage.....ok
org.hyperic.sigar.test.TestMem.............ok
org.hyperic.sigar.test.TestNetIf...........FAILED
org.hyperic.sigar.test.TestNetInfo.........ERROR
org.hyperic.sigar.test.TestNetRoute........ok
org.hyperic.sigar.test.TestNetStat.........ok
org.hyperic.sigar.test.TestNetStatPort.....ERROR
org.hyperic.sigar.test.TestTcpStat.........ok
org.hyperic.sigar.test.TestNfsClientV2.....ok
org.hyperic.sigar.test.TestNfsServerV2.....ok
org.hyperic.sigar.test.TestNfsClientV3.....ok
org.hyperic.sigar.test.TestNfsServerV3.....ok
org.hyperic.sigar.test.TestProcArgs........ok
org.hyperic.sigar.test.TestProcEnv.........ok
org.hyperic.sigar.test.TestProcExe.........ok
org.hyperic.sigar.test.TestProcModules.....ok
org.hyperic.sigar.test.TestProcFd..........ok
org.hyperic.sigar.test.TestProcList........FAILED
org.hyperic.sigar.test.TestProcMem.........ok
org.hyperic.sigar.test.TestProcState.......ok
org.hyperic.sigar.test.TestProcStat........ok
org.hyperic.sigar.test.TestProcTime........ok
org.hyperic.sigar.test.TestResourceLimit...ok
org.hyperic.sigar.test.TestSignal..........ok
org.hyperic.sigar.test.TestSwap............ok
org.hyperic.sigar.test.TestThreadCpu.......ok
org.hyperic.sigar.test.TestUptime..........ok
org.hyperic.sigar.test.TestVMware..........ok
org.hyperic.sigar.test.TestWho.............FAILED

Time: 2.346
There were 2 errors:
1) org.hyperic.sigar.test.TestNetInfo:
org.hyperic.sigar.SigarException: No such device or address
        at org.hyperic.sigar.NetInterfaceConfig.gather(Native Method)
        at org.hyperic.sigar.NetInterfaceConfig.fetch(NetInterfaceConfig.java:30)
        at org.hyperic.sigar.Sigar.getNetInterfaceConfig(Sigar.java:839)
        at org.hyperic.sigar.test.TestNetInfo.testNetInfo(TestNetInfo.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
2) org.hyperic.sigar.test.TestNetStatPort:
org.hyperic.sigar.SigarException: No such device or address
        at org.hyperic.sigar.NetInterfaceConfig.gather(Native Method)
        at org.hyperic.sigar.NetInterfaceConfig.fetch(NetInterfaceConfig.java:30)
        at org.hyperic.sigar.Sigar.getNetInterfaceConfig(Sigar.java:839)
        at org.hyperic.sigar.test.TestNetStatPort.testCreate(TestNetStatPort.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
There were 4 failures:
1) org.hyperic.sigar.test.TestPTQL:
junit.framework.AssertionFailedError: Pid.Pid.eq=$$
        at org.hyperic.sigar.test.TestPTQL.testOK(TestPTQL.java:153)
        at org.hyperic.sigar.test.TestPTQL.testCreate(TestPTQL.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
2) org.hyperic.sigar.test.TestNetIf:
junit.framework.AssertionFailedError: getNetInterfaceStat(venet0:0): No such device or address
        at org.hyperic.sigar.test.TestNetIf.getNetIflist(TestNetIf.java:64)
        at org.hyperic.sigar.test.TestNetIf.testCreate(TestNetIf.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
3) org.hyperic.sigar.test.TestProcList:
junit.framework.AssertionFailedError
        at org.hyperic.sigar.test.TestProcList.testCreate(TestProcList.java:38)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
4) org.hyperic.sigar.test.TestWho:
junit.framework.AssertionFailedError
        at org.hyperic.sigar.test.TestWho.testWho(TestWho.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)

FAILURES!!!
Tests run: 37,  Failures: 4,  Errors: 2

no libsigar-x86-linux.so in maven repo

$
0
0
Hello!

I`m use sigar framework in my maven project, but in maven repo are no libraries for OS(Linux), then i run my simple test i recived this:

no libsigar-x86-linux.so in java.library.path
org.hyperic.sigar.SigarException: no libsigar-x86-linux.so in java.library.path
     at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:160)
     at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:90)
     at com.sith.sigartest.SigaraTest.testMem(SigaraTest.java:68)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
     at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
     at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
     at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
     at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
     at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
     at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
     at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
     at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
     at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
     at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
     at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Viewing all 52618 articles
Browse latest View live




Latest Images

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