From 13a88df660fd6833919f366a1262327ee40bd690 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 20 Jun 2010 21:50:40 +0000 Subject: [PATCH] explain applications git-svn-id: http://www.observium.org/svn/observer/trunk@1225 61d68cd4-352d-0410-923a-c4978735b2b8 --- DEVELOPING | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DEVELOPING b/DEVELOPING index ae4394c3c2..0b87c83071 100644 --- a/DEVELOPING +++ b/DEVELOPING @@ -18,3 +18,25 @@ Add an OS text name in includes/static-config.php If desired, create a 32x32 logo, in html/images/os/$osname.png. When tested and satisfied, please submit a patch to the development team! ;-) + +Adding a new Application +======================== + +The applications system is quite simple, and just involves including files based on entries in the database + +Applications are 'polled' by scripts in includes/polling/applications/.inc.php + +Applications are 'displayed' by scripts in html/pages/device/apps/.inc.php + +Graph types can be created in html/includes/graphs/.inc.php + +The application name corresponds to the app_type field in the applications database table. + +for example, apache is polled by includes/polling/applications/apache.inc.php + +This populates an rrd file with data via SNMP (but could easily parse the www output, or ssh, or anything) + +the graph types have been defined as html/includes/graphs/apache_*.inc.php + +the graphs are loaded with a bit of descriptive text by html/pages/device/apps/apache.inc.php +