Application level monitoring in Tomcat using Zabbix/Nagios -
i pretty comfortable nagios , newbie in zabbix. have tomcat in have deployed 3 war files. able monitor tomcat such using nagios not able monitor individual status of 3 applications. possible individually monitor applications using nagios/zabbix ?
information regarding either of them amazing, in nagios since used it. lot.
since connecting tomcat (or whatever application server) using jmx, i'd recommend monitor status of application using jmx too.
in zabbix you'd have create item every metric want monitor.
in application have register mbean.
public void registernotikumimbean(string app){ mbeanserver mbeanserver = managementfactory.getplatformmbeanserver(); hashtable<string, string> tb = new hashtable<string, string>(); tb.put("type", "yourcustomtype"); tb.put("subtype", "yourcustomid"); objectname on = null; try { on = new objectname("your.pa.cka.ge", tb); yourcustombean mbean = new yourcustom(); mbeanserver.registermbean(mbean, on); } catch (malformedobjectnameexception e) { } catch (instancealreadyexistsexception e) { } catch (mbeanregistrationexception e) { } catch (notcompliantmbeanexception e) { } }
you can find need mbeans in link below http://docs.oracle.com/javase/tutorial/jmx/mbeans/standard.html
Comments
Post a Comment