This page briefly describes how to start working with MoSKito-Control.
Since MoSKito Control is pretty new, the page may become outdated fast.
The page relies to the version 1.0.0.
Installing the Agent
MoSKito Control consists of two parts, the agent which is installed into the target (monitored) application and the MoSKito-Control webapp. For the version 0.2, that we are describing here, only the http connection between control and agents is realized.
To enable the http agent in your web-application, simply add the following dependency to the pom.xml:
If you don't use maven, simply download the lib from central and put it into your webapp/WEB-INF/libs folder.
If you are using a servlet container which supports servlet 3.0 (for example, tomcat 7) and jar scanning is enabled, that's all you need to do. The agent will be available under:
If you have an older container, add the following filter to your web.xml:
Setting up the web application
To set up the web application, start with downloading it:
- either get it from central: http://search.maven.org/#search%7Cga%7C1%7Cmoskito-control, or,
- (and that is the recommended usage), fork it on github: https://github.com/anotheria/moskito-control.git
In either case you will need to provide some configuration. The configuration file is called moskitocontrol.json and is located under etc/appdata in repository. It should be located in the classpath (maven does that during build time).
Among other settings it contains the list of supported applications and components per application, that you should fill out:
Enter addresses of your machines, build the war,put it into another tomcat and you are ready to go
Furthermore you should have the following default components within the mentioned json file:
A more detailed example of the configuration File can be found here.