-
1. Re: Problem with jboss2nagios and Jboss AS 7.1
scastro Mar 30, 2013 9:17 PM (in response to scastro)No one has any ideas? :|
-
2. Re: Problem with jboss2nagios and Jboss AS 7.1
lafr Mar 31, 2013 5:52 AM (in response to scastro)You do not get more information in your server.log?
Using JBoss AS8 Alpha, this seems to have a problem with jboss-service.xml using a DTD.
11:46:04,379 INFO [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "collector.sar" (runtime-name: "collector.sar")
11:46:04,434 ERROR [org.jboss.msc.service.fail#startFailed] MSC000001: Failed to start service jboss.deployment.unit."collector.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."collector.sar".PARSE: JBAS018733: Failed to process phase PARSE of deployment "collector.sar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1972) [jboss-msc-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1905) [jboss-msc-1.1.1.Final.jar:1.1.1.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS017224: Failed to parse service xml ["/content/collector.sar/META-INF/jboss-service.xml"]
at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:102)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT]
... 5 more
Caused by: com.ctc.wstx.exc.WstxParsingException: Received event DTD, instead of START_ELEMENT or END_ELEMENT.
at [row,col {unknown-source}]: [4,57]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606) [woodstox-core-asl-4.1.1.jar:4.1.1]
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479) [woodstox-core-asl-4.1.1.jar:4.1.1]
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464) [woodstox-core-asl-4.1.1.jar:4.1.1]
at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1143) [woodstox-core-asl-4.1.1.jar:4.1.1]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:67)
at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:95)
... 6 more
11:46:04,465 ERROR [org.jboss.as.server#handleResult] JBAS015870: Deploy of deployment "collector.sar" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"collector.sar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"collector.sar\".PARSE: JBAS018733: Failed to process phase PARSE of deployment \"collector.sar\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS017224: Failed to parse service xml [\"/content/collector.sar/META-INF/jboss-service.xml\"]
Caused by: com.ctc.wstx.exc.WstxParsingException: Received event DTD, instead of START_ELEMENT or END_ELEMENT.
at [row,col {unknown-source}]: [4,57]"}}
11:46:04,476 INFO [org.jboss.as.server.deployment#stop] JBAS015877: Stopped deployment collector.sar (runtime-name: collector.sar) in 13ms
11:46:04,480 INFO [org.jboss.as.controller#release] JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."collector.sar".PARSE
-
3. Re: Problem with jboss2nagios and Jboss AS 7.1
lafr Mar 31, 2013 6:03 AM (in response to lafr)The downloads at sourceforge are of 2011, the are not up to date.
Make sure META-INF/jboss-service.xml looks like this https://github.com/manishdevraj/jboss2nagios/blob/master/mbean/src/META-INF/jboss-service.xml.
-
4. Re: Problem with jboss2nagios and Jboss AS 7.1
scastro Apr 3, 2013 9:01 AM (in response to lafr)Nop, recheked the files but till get the error when loading it:
13:40:20,290 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.module.service."deployment.collector.sar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.collector.sar".main: Failed to load module: deployment.collector.sar:main
13:40:20,291 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
13:40:20,293 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.module.service.\"deployment.collector.sar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.collector.sar\".main: Failed to load module: deployment.collector.sar:main"}}}}
Weird, really. Can't find anyone else o the foruns with this problem.
-
5. Re: Problem with jboss2nagios and Jboss AS 7.1
lafr Apr 3, 2013 4:28 PM (in response to scastro)You build the package from sources of https://github.com/manishdevraj/jboss2nagios/?
The output is not usable and the readme is outdated.
Almost a month a ago. module.xml was check in and collector.sar has a depency to module com.jboss.jboss2nagios.
So you have to create this module in $JBOSS_HOME/modules
with module.xml as com/jboss/jboss2nagios/main/module.xml
and mbean/lib/jboss-common.jar as com/jboss/jboss2nagios/main/jboss-common.sar.
(see attached com.jboss.jboss2nagios.jar).
After this I got a ClassNotFoundException of jboss.monitoring.memory.HeapMonitor, because this class is mentioned in jboss-service.xml but not in the codebase nor in the collector.sar.
So comment out or delete those lines in jboss-service.xml and create a new build and deploy it (attached collector.sar).
This should deploy succesful, but don't know if this is really usable then. Do not have nagios here to test.
-
collector.sar.zip 12.4 KB
-
com.jboss.jboss2nagios.jar 350.4 KB
-
-
6. Re: Problem with jboss2nagios and Jboss AS 7.1
scastro Apr 3, 2013 4:39 PM (in response to scastro)Wow, thank you.
I'll try this and get back to you.
-
7. Re: Problem with jboss2nagios and Jboss AS 7.1
scastro Apr 6, 2013 1:35 PM (in response to scastro)This does make it load correctly by Jboss AS 7.1.1
However it crashs when the mbean client sends a query (the nagios plugin).