Skip navigation
12420 Views 6 Replies Latest reply: Nov 2, 2010 10:53 AM by glennski RSS
ttpm Rank: White Belt 19 posts since
May 5, 2010
Currently Being Moderated

Jun 22, 2010 11:19 AM

zenjmx dependency?

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 (http://community.zenoss.org/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,

  • istoptofly Rank: Green Belt 305 posts since
    Apr 20, 2010
    Currently Being Moderated
    1. Jun 22, 2010 11:26 AM (in response to ttpm)
    Re: zenjmx dependency?

    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 -

     

    http://community.zenoss.org/docs/DOC-3396

     

    and more info is available -

     

    http://www.java.com/en/download/help/linux_install.xml

     

    John

  • istoptofly Rank: Green Belt 305 posts since
    Apr 20, 2010
    Currently Being Moderated
    3. Jun 22, 2010 3:17 PM (in response to ttpm)
    Re: zenjmx dependency?

    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 -

     

    • ln -s /usr/java/jdk1.6.0/bin/java /usr/bin/java
    • ln -s /usr/java/jdk1.6.0/bin/javac /usr/bin/javac

     

    so that java can be run from from any directory.

     

    John

  • Vlad Bekker Newbie 5 posts since
    Oct 5, 2010
    Currently Being Moderated
    5. Oct 7, 2010 7:30 PM (in response to ttpm)
    Re: zenjmx dependency?

    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
    
  • glennski Rank: White Belt 21 posts since
    Aug 10, 2009
    Currently Being Moderated
    6. Nov 2, 2010 10:53 AM (in response to Vlad Bekker)
    Re: zenjmx dependency?

    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

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points