AppSpy is tool to monitor the Third Party Apps.
Currently it supports :
- Mysql
- Solr
- ElasticSearch
- Any Web API(Get / Post)
- Rabbit MQ Server
- Redis
- Memcache
It checks:
- Port Monitoring
- Data Monitoring
It pings the added service every Minute & Raise the Alert if needed(Store in Database)
a) LAMP Stack
b) JAVA 8 with JAVA_HOME variable pointing towards Java 8
c) Enable mod_rewrite for apache using(since .htaccess file is there in project)
sudo a2enmod rewrite
sudo service apache2 restart
d) Once setup is done, run the sql file, It will create the Databases.
Code contains two Parts :
a) appspy_web : This is used to add the services for which monitoring needs to be done. It does not need any configuration. If the setup is done properly, it is good to go.
The services added using this are stored in alertsConfig table.
To run it, http:///Folder e.g. http://127.0.0.1/appspy
The service to be monitored can be added using Simple Form. All the fields in the form are self-explanatory.
One field FailueCount is there, it is for number of times the response is not recieved properly before raising exception.
b) appspy: It is the actual Java Code that fetches the Services added by appspy_web & monitors them. If alerts needs to generated, it generate the alerts(store them in alertsData Table).
To run it, download the folder & navigate to appspy directory & run command
mvn clean install
This will build the code & create the jar file inside target folder(Use the one with-dependencies.jar)
Note : JAVA_HOME variable must be point to JAVA 8 or change the pom.xml file according to Java version


