-
1. Re: jboss2nagios does not work well
jamezp Apr 23, 2013 2:33 PM (in response to helenwu)There is probably a conflict with jboss-common-core. Try removing the jboss-common.jar you have in your module directory and add a dependency to org.jboss.common.core to your module.xml.
--
James R. Perkins
-
2. Re: jboss2nagios does not work well
helenwu Apr 23, 2013 2:41 PM (in response to jamezp)Hi James,
Thank you for the reply.
Can you please give more detailed information? How to add a dependency to org.jboss.common.core to your module.xml?
<module xmlns="urn:jboss:module:1.0" name="com.jboss.jboss2nagios">
<resources>
<resource-root path=" "/>
</resources>
<dependencies/>
</module> -
3. Re: jboss2nagios does not work well
jamezp Apr 23, 2013 2:49 PM (in response to helenwu)Should look something like:
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="com.jboss.jboss2nagios"> <resources> <resource-root path="your-jar.jar"/> </resources> <dependencies> <module name="org.jboss.common-core"/> </dependencies> </module>
--
James R. Perkins
-
4. Re: jboss2nagios does not work well
helenwu Apr 23, 2013 2:59 PM (in response to jamezp)I removed jboss-common.jar from main directory, should I put
jboss-common-core-2.2.17.GA.jar under main and put <resource-root path="jboss-common-core-2.2.17.GA.jar"/> in module.xml?
-
5. Re: jboss2nagios does not work well
jamezp Apr 23, 2013 3:09 PM (in response to helenwu)No that's what the <dependencies/> section is for. It looks like nagios uses a collection.sar which should probably be in a <resource-root/>. To be honest though I'm not sure if a SAR can be a module. I'm not that familiar with them at all.
--
James R. Perkins
-
6. Re: jboss2nagios does not work well
helenwu Apr 26, 2013 10:48 AM (in response to jamezp)Can somebody help on this issue?
I still can not make it work.
Thanks.
Helen
-
7. Re: jboss2nagios does not work well
simoncigoj Nov 22, 2013 4:00 AM (in response to helenwu)you probably nead to configure right the osgi subsystem ... my configuration looks like :
<subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">
<properties>
<property name="org.jboss.osgi.system.modules.extra">
com.jboss.jboss2nagios
</property>
<property name="org.osgi.framework.startlevel.beginning">
1
</property>
<property name="org.osgi.framework.system.packages.extra">
org.jboss.util,org.jboss.util.StringPropertyReplacer
</property>
I had to add the two bolded properties to make it work.