You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Srikanth Hugar <sr...@gmail.com> on 2015/01/07 08:36:10 UTC

Karaf notify and recovery

If karaf deployment fails is there a way to notify karaf is not deployed
correctly?
So that Admin can recover easily.

Re: Karaf notify and recovery

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Which deployment ?

If you use a feature install (via command or MBean), you have an error 
(on System.err for command) or an Exception (for JMX MBean).

For deploy folder, you have to check in the log file.

Regards
JB

On 01/07/2015 08:36 AM, Srikanth Hugar wrote:
> If karaf deployment fails is there a way to notify karaf is not deployed
> correctly?
> So that Admin can recover easily.

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf notify and recovery

Posted by Achim Nierbeck <bc...@googlemail.com>.
What do you mean by "deployment fails"?
Cause basically Karaf is just a bunch of bundles, if one of them fails,
you'll notice in the logfiles.
If the framework fails, you usually see it because there are no logfiles.
If it's just your own bundles you'd like to monitor, use JMX. You should be
able to use JMX, plus
for example with Jolokia you can have a rest api on top of jmx and therfore
a nagios monitor can be applied on a rest request.
Should be straight forward.
Anything else you need?

regards, Achim


2015-01-07 8:36 GMT+01:00 Srikanth Hugar <sr...@gmail.com>:

> If karaf deployment fails is there a way to notify karaf is not deployed
> correctly?
> So that Admin can recover easily.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master