Nagios Java Monitoring mit Jmx4Perl und Jolokia - netways
Nagios Java Monitoring mit Jmx4Perl und Jolokia - netways
Nagios Java Monitoring mit Jmx4Perl und Jolokia - netways
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Nagios</strong> <strong>Java</strong> <strong>Monitoring</strong><strong>mit</strong> <strong>Jmx4Perl</strong> <strong>und</strong> <strong>Jolokia</strong>Dr. Roland HußConSol*OSMC, 30.11.2011
Die Chili <strong>und</strong> ich‣ DevOps @ ConSol❖ z.B. <strong>Java</strong> Projekte <strong>und</strong> Remote Operations❖ Open Source <strong>Monitoring</strong> (<strong>Nagios</strong> <strong>und</strong> Shinken)❖ www.consol.de‣ Open Source Author❖ roland@cpan.org❖ https://github.com/rhuss‣ Chili Anbau seit 2005
Agenda‣ JMX‣ <strong>Jmx4Perl</strong> <strong>und</strong> <strong>Jolokia</strong>‣ check_jmx4perl‣ Demo
JMX‣ JSR-3: <strong>Java</strong> Management Extensions(2000)‣ JMX-Operationen❖ Lesen von Attributen❖ Schreiben von Attributen❖ Ausführen von Operationen❖ Benachrichtigungen‣ Seit <strong>Java</strong> 1.5 Bestandteil jeder JVM
Architektur
Probleme <strong>mit</strong> JSR-160‣ Firewalls‣ Typisiert‣ Feingranulare Absicherung‣ <strong>Java</strong> only
Architektur JSR-160 Proxy Bulk RequestsSecurity Polyglot Tools
Architektur
AgentenJEEOSGiMuleJVM
Test PlattformenTomcat 5.5, 6.0, 7.0Felix 2.0, 3.2, 4.0Jetty 5.1, 6.1, 7.5, 8.0Equinox3.5, 3.6, 3.7,3.8 M1Weblogic 9.2.3, 10.0.2, 10.3.5Websphere 6.1, 7.0, 8.0Glassfish 2.1, 3.0, 3.1JBoss 4.2, 5.1, 6.1, 7.0Jonas 4.10, 5.1, 5.2Virgo 2.1, 3.0Spring dm Server 2.0Mule 2.2, 3.1, 3.2ActiveMQ 5.5Terracotta 3.2Geronimo2.1, 2.2, 3.0 M1Hadoop 0.20
JSR-160 Proxy
jolokia-access.xmllocalhost10.0.0.0/16readlistversionsearchjmx4perl:type=Configwrite*com.mchange.v2.c3p0:type=*properties
check_jmx4perl‣ <strong>Nagios</strong> Plugin‣ Check Typen:❖ Absolut❖ Relativ❖ Multi‣ Flexibles Ausgabeformat‣ Konfigurationsfiles („hot“)
Demo
OMD‣ Open <strong>Monitoring</strong> Distribution❖ http://www.omdistro.org‣ Integriertes <strong>Monitoring</strong> Package‣ Features❖ Core: <strong>Nagios</strong>, Shinken, Icinga❖ GUIs: <strong>Nagios</strong>, Thruk, Multisite, Icinga❖ Addons: check_mk, mod_gearman, check_logfiles,jmx4perl, .....
AufgabeWir haben da so einen ServiceMixESB, der schiebt Nachrichten ineine JMS Queue, die„bridge.output“ heisst. Jetztbleiben da blöderweise immerwieder Nachrichten hängen.Könntet ihr bitte einen Alarmeinrichten, wenn mehr als 100Nachrichten hängengeblieben sind ?
Service Mix‣ Verteilter, Open Source ESB‣ OSGi-Container für❖ Apache Camel (Integrationsplattform)❖ Apache ActiveMQ (Messaging)❖ Apache CXF (Webservices)❖ Apache ODE (WS-BPEL)‣ http://servicemix.apache.org
Wrap up‣ JMX ist cool‣ JSR-160 ist uncool‣ <strong>Jmx4Perl</strong> <strong>und</strong> <strong>Jolokia</strong> ....❖ ... sind eine JSON-HTTP basierte <strong>Monitoring</strong>Lösung für <strong>Java</strong> Applikationen❖ ... bieten spezielle Features❖ ... haben guten Tool Support❖ ... sind erste Wahl für <strong>Java</strong> <strong>Monitoring</strong> <strong>mit</strong> <strong>Java</strong>
Resourcen‣ www.jolokia.org• Reference-Manual: http://www.jolokia.org/reference/html/‣ www.jmx4perl.org• CPAN: http://search.cpan.org/roland/jmx4perl‣ Source-Repository❖ https://github.com/rhuss/jolokia❖ https://github.com/rhuss/jmx4perl‣ T-Shirts ;-)❖ http://jolokia.spreadshirt.de
Roadmap‣ Neue Client-Libraries❖ Scala, Groovy, Python, Ruby, ....‣ <strong>Jolokia</strong> Dashboard‣ JMX Notifications‣ JSR-160 Proxy: Connection Pooling‣ Dynamischer HTTP-Proxy Mode‣ Roo Addon
Fragen ?
Danke !