Amsterdam Alert

Amsterdam Alert is a small toolkit/applications the helps in setting up guards of different services, such as that your webserver is up, that your database has correct data, that your disks are not full and so forth.

Alert is based on Ant and JUnit, wich makes it extremely easy to use; and it has been used internally for several years with good results.

Usage, setup and development of aditional modules is documented in the javadoc.

Notes on running alert

Alert uses Ant and JUnit to run its guards (so called agents). In the dist ant and junit is included. Alert should normally be run by usning the bin/build.sh file.

One runs alert by specifying the run-alert.xml as a buildfile. One also has to wrtie at least an alert.xml file wich defines all the tests/guards to run and where to mail/send any errors and or warnings. Look into the examples

It should normally be run with the following properties set on the commandline:

	     -Dalert.properties= Name of propertyfile
	     -Dalert.xml= Name of XML def file.
             -Dlog.dir= Name of directory where logs will be saved
        

Its also possible to specify a plugins directory where aditional tests or jar-files the tests are dependant on are located. -Dplugin.dir=Directory where aditional jar-files are located, for examples JDBC drivers.

Command to run the tests is run, for example:

   sh build.sh -file ../resources/run-alert.xml 
   -Dalert.xml=/home/in/etc/alert/hermes.xml
   -Dalert.properties=hermes.properties
   -Dlog.dir=/home/pra/tmp/alert/daily run