JON fails to discover resources if its command line exceeds 80 characters in length on Solaris machine

Solution Verified - Updated -

Issue

  • Apache instances are not discovered;
  • Error in the agent log:
ERROR [ResourceDiscoveryComponent.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerDiscoveryComponent)- Discovery of Apache process [process: pid=[14645], name=[/opt/app/jboss-ews-2.0/sbin/httpd.worker], ppid=[21910]] failed with an exception.
        org.rhq.plugins.apache.parser.ApacheParserException: java.io.FileNotFoundException: /opt/app/jboss-ews-2.0/etc (Is a directory)
        at org.rhq.plugins.apache.parser.ApacheConfigReader.searchFile(ApacheConfigReader.java:60)
        at org.rhq.plugins.apache.parser.ApacheConfigReader.buildTree(ApacheConfigReader.java:19)
        at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.parseRuntimeConfiguration(ApacheServerDiscoveryComponent.java:669)
        at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.parseRuntimeConfiguration(ApacheServerDiscoveryComponent.java:656)
        at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.discoverSingleProcess(ApacheServerDiscoveryComponent.java:326)
        at org.rhq.plugins.apache.ApacheServerDiscoveryComponent.discoverResources(ApacheServerDiscoveryComponent.java:249)
  • EAP standalone instances are not discovered;

Environment

  • JBoss Operations Network (JON) 3.0, 3.1, 3.2
  • Apache httpd server is started and running
  • Apache command-line arguments exceed 80 characters
  • Solaris 10, 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.