Adding an 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/
<app_type>
.inc.php - RRD formats are defiend in
includes/definitions/rrdtypes.inc.php
- Applications are 'displayed' by scripts in html/pages/device/apps/
<app_type>
.inc.php - Graph types can be created in html/includes/graphs/application/
<app_type>
_<graph_type>
.inc.php - The application name corresponds to the
app_type
field in the applications database table - Add the correct
graph_type
inincludes/definitions/apps.inc.php
in order to see the correct graphs in application overview
Examples
- Unix agent is contacted, header is
<<<app-apache>>>
Text Only | |
---|---|
- Its results are passed to
includes/polling/applications/apache.inc.php
- This populates an rrd file with data received via the UNIX agent as defined in
includes/definitions/rrdtypes.inc.php
- The graph types have been defined as
html/includes/graphs/application/apache_*.inc.php
html/includes/graphs/application/apache_bits.inc.php
- Overview graphs are defined by an array in
includes/definitions/apps.inc.php
Text Only | |
---|---|
- The graphs are loaded with a bit of descriptive text by
html/pages/device/apps/apache.inc.php