Developing/NewApplication

From Observium

Jump to: navigation, search

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/<application>.inc.php
  • Applications are 'displayed' by scripts in html/pages/device/apps/<application>.inc.php
  • Graph types can be created in html/includes/graphs/<graph_type>.inc.php
  • The application name corresponds to the app_type field in the applications database table.

Examples

  • 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