/jfr-masters/code/frontends/stdev
README
dynamic.conf
dynamic.py
host.py
hostprop.py
landing.conf
landing.py
nsconfig.py
nsutil.py
plots2.py
prop.py
stdev.conf
stdev.py
test.conf

This directory contains the second generation of the work that I started in
the directory /jfr-masters/code/frontends/plots/. I know it's possible
to take these scripts and actually set up a full web-interface for 
NodeScape.


dynamic.conf, stdev.conf, test.conf, landing.conf:

	Configuration information for several of these programs. 
	Substitute your specific information.  

dynamic.py:
	depends on nsutil.py and nsconfig.py

	This one is one of my CGI scripts. This script generates host 
	pages based on HTTP GET arguments. The script only generates new
	plots of the current plots are older than the configured max age.

host.py:
	depends on nsutil.py and nsconfig.py

	Like dynamic.py, except that it generates a page that contains all
	properties for a single host.

hostprop.py:
	depends on nsutil.py and nsconfig.py

	Generates pages for a specific property and a specific host. It 
	generates plots for 4 different time periods. Again, like dynamic.py.

prop.py:
	depends on nsutil.py and nsconfig.py

	Generates property pages (one property across all hosts). 
	Again, like dynamic.py.

plots2.py:
	depends on nsutil.py and nsconfig.py
	depends on stdev.py

	Run this program continually. It generates pages for hosts that it
	believes are behaving anomalously. It expects a configuration file.

nsconfig.py:

	nsconfig.py defines several functions necessary for reading
	configuration files (like mktxt.conf).

nsutil.py:
	depends on pymysql and rrdtool Python packages.
	rrdtool must be installed.

	nsutil.py defines many functions useful for working with the NodeScape
	back-end. 

stdev.py:
	depends on nsutil.py and nsconfig.py
	depends on numpy

	This file implements the analysis portion of this NodeScape front-end.
	I compute the standard deviation of each time series. If a series
	contains samples that fall outside of a configurable number of
	standard deviations, I flag it as anomalous.

landing.py:
	depends on nsutil.py, nsconfig.py, and stdev.py

	Run this continually. I think it's an iteration on plots2.py, but I'm
	not sure (it's been too long). This program generates a single landing
	page for this front-end. You'll need to set the webhost and webport
	variables. Each plot links to one of the dynamic generation scripts.
