MachDB

Class-Structure


MACHDB (main class)
|  // common
|- MACHDB_CONFIG (reads config.php, checks that all options are set, ...)
|- MACHDB_DB (all database stuff - connect, query, ... using some DB abstraction like MDB2 to also get also other database types working)
|- MACHDB_SMARTY (everything releated to Smarty engine)
|
|  // gui stuff
|- MACHDB_BROWSE
|- MACHDB_HISTORY
|- MACHDB_HOST
|- MACHDB_PKG
|- MACHDB_SEARCH
|- MACHDB_SNMP
|- MACHDB_SOFTWARE
|
|- MACHDB_COLLECT

Security

The server should be able to authenticate the sending agent to be sure, that the sent data for this host has not been faked.
The client generates an sha1 hash from its token, the server compares it with the stored token for this host in the database - if the sha1 hash matches, we asume it is the server we are talking about.

Manual

  • enter token on server
  • enter token on client

Automatic

  1. initial connect of client to server, requesting a token
  2. server creates token and saves it in its database
  3. server returns token to client
  4. client save the token in its configuration file

Debian-Package

Webapps Debian Policy @ http://webapps-common.alioth.debian.org/draft/html/

Directory-Structure

Directory Description
/etc/machdb configuration (config.php)
/usr/share/machdb MachDB PHP files, themes, templates
/usr/share/doc/machdb Debian Documentation
/var/cache/machdb Smarty cache directories

Auto-reg application (conf.d)

http://webapps-common.alioth.debian.org/draft/html/ch-httpd.html

Feathers

Aka themes and skins. A theme directory contains (here as example the industry-feathers):

Directory Content
/industry/templates Smarty template files (*.tpl)
/industry/style cascading style sheet files (*.css)
/industry/images all images used
/industry/js all JavaScripts used

Also available in: HTML TXT