hyperic / hq

Hyperic open source
107 stars 91 forks source link

[jboss-plugin] Autodetect doesn't detect usage of alternate configuration file #5

Open hcgpalm opened 9 years ago

hcgpalm commented 9 years ago

ps -ef|grep jboss:

/usr/lib/jvm/jre/bin/java ... -Djboss.server.base.dir=/opt/data/jbossas/standalone -c standalone-etjsb.xml

The -c flag specifies the name of an alternate configuration file. But JBossStandaloneDetector.getProductConfig() still looks for the default config file standalone.xml:

07-11-2014 11:43:25,413 CET DEBUG [Thread-4] [JBossStandaloneDetector@281] [getProductConfig] cfgFile=/opt/data/jbossas/standalone/
configuration/standalone.xml
laullon commented 9 years ago

Hi,

Which version the plugin are you using? master? The classes and lines number on the log doesn't match the actual code.

hcgpalm commented 9 years ago

I'm using the plugin version as bundled in hyperic-4.6.6.

laullon commented 9 years ago

That's a very old version, Can you update to Hyperic 5.3?

hcgpalm commented 9 years ago

Yes I know, but no, I'm afraid not. It's a production environment. We attempted an update to 5.x some time ago but had to roll back to 4.6 because of bugs.