Jun 22, 2010 11:19 AM
zenjmx dependency?
-
Like (0)
I have restored a config from a CentOS VM to a RHEL VM and zenjmx will not start.
I am not strong in Linux, but from other threads (message/38562#38562) it looks like java was not installed on RHEL.
/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.3.1-py2.4.egg/ZenPacks/zenoss/ZenJMX/bin/java-functions.sh: line 55: exec: java: not found
2010-06-22 09:36:53,642 DEBUG zen.zenjmx: Queueing event {'severity': 3, 'component': 'zenjmx', 'agent': 'zenjmx', 'summary': 'zenjmxjava ended unexpectedly: A process has ended with a probable error condition: process ended with exit code 127.', 'manager': 'net-zen.net.ksu.edu', 'device': 'localhost', 'eventClass': '/Status/JMX', 'monitor': 'localhost'}
2010-06-22 09:36:53,657 DEBUG zen.zenjmx: Total of 1 queued events
20
[root@net-zen]# rpm -qa | grep java
[root@net-zen]#
Exactly what package is zenjmx looking for?
Thanks,
Hi,
This -
REQUIREMENTS:
Zenoss Version: 2.4
ZenPack Dependencies:
External Dependencies: Sun JRE Version 5.0 or higher
Installation: 'zenoss restart' after installing this ZenPack
is copied from -
and more info is available -
http://www.java.com/en/download/help/linux_install.xml
John
John,
Thanks for the help. I've got the files but am not sure what directory Java should be installed to?
Shaun
Shaun,
Depending on what you downloaded, follow the applicable instructions in the link I provided in my previous response to assist you with installation.
On my RH box, java is located in /usr/java/ which follows the installation instructions as well. Once the install is done you can type java -version to verify it's installation. You may need to type these commands as well -
so that java can be run from from any directory.
John
John,
Thanks. That cleared things up and zenjmx is now running properly.
Shaun
Hi,
In my case, this didnt't fix the issue i was having. Any other pointers you can give me?
here is the log:
2010-10-07 19:26:38,459 INFO zen.zenjmx: Connecting to localhost:8789 2010-10-07 19:26:38,480 INFO zen.zenjmx: Connected to ZenHub 2010-10-07 19:26:38,486 INFO zen.ZenJMXJavaClient: run():starting zenjmxjava 2010-10-07 19:26:38,744 WARNING zen.ZenJMXJavaClient: processEnded():zenjmxjava process ended [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ProcessTerminated'>: A process has ended with a probable error condition: process ended with exit code 127. ] 2010-10-07 19:26:38,747 ERROR zen.zenjmx: [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: ZenJMXJavaClient could not be started, check JVM type and version: A process has ended with a probable error condition: process ended with exit code 127. /usr/local/zenoss/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/process.py:333:maybeCallProcessEnded /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.2-py2.6.egg/ZenPacks/zenoss/ZenJMX/zenjmx.py:195:processEnded /usr/local/zenoss/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:243:callback /usr/local/zenoss/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:312:_startRunCallbacks --- <exception caught here> --- /usr/local/zenoss/python/lib/python2.6/site-packages/Twisted-8.1.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py:328:_runCallbacks /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.2-py2.6.egg/ZenPacks/zenoss/ZenJMX/zenjmx.py:377:_startJavaProc ] 2010-10-07 19:26:38,754 CRITICAL zen.zenjmx: Unrecoverable Error: 1 2010-10-07 19:26:38,767 INFO zen.zenjmx: Deleting PID file /usr/local/zenoss/zenoss/var/zenjmx-localhost.pid ... 2010-10-07 19:26:38,767 INFO zen.zenjmx: Daemon CollectorDaemon shutting down
I am running a CentOS 5.4 base for Zenoss Core 3.0.1 (just upgraded from 2.5.1 - upgrade worked pretty slick). I did a 'yum install java' and it installed 3 packages:
java-1.6.0-openjdk
giflib
jpackage-utils
Prior to this I was getting this error:
/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.2-py2.6.egg/ZenPacks/zenoss/ZenJMX/zenjmx.py:195:processEnded
/opt/zenoss/lib/python/twisted/internet/defer.py:243:callback
/opt/zenoss/lib/python/twisted/internet/defer.py:312:_startRunCallbacks
--- <exception caught here> ---
/opt/zenoss/lib/python/twisted/internet/defer.py:328:_runCallbacks
/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.2-py2.6.egg/ZenPacks/zenoss/ZenJMX/zenjmx.py:377:_startJavaProc
Now the process starts with no errors and my zenjmx log looks like this:
2010-11-02 08:48:52,931 INFO zen.zenjmx: Connecting to localhost:8789
2010-11-02 08:48:52,962 INFO zen.zenjmx: Connected to ZenHub
2010-11-02 08:48:52,965 INFO zen.ZenJMXJavaClient: run():starting zenjmxjava
[2010-11-02 08:48:55,831] [INFO ] [main] com.zenoss.zenpacks.zenjmx.ZenJmxMain:151 - zenjmxjava configuration:
[2010-11-02 08:48:55,833] [INFO ] [main] com.zenoss.zenpacks.zenjmx.ZenJmxMain:152 - {v=20, zenjmxjavaport=9988}
[2010-11-02 08:48:55,834] [INFO ] [main] com.zenoss.zenpacks.zenjmx.ZenJmxMain:68 - setting root logger to INFO
2010-11-02 08:49:09,479 INFO zen.zenjmx: 0 devices processed (0 datapoints)
2010-11-02 08:49:09,480 INFO zen.collector.scheduler: Tasks: 0 Successful_Runs: 0 Failed_Runs: 0 Missed_Runs: 0
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||