Backend server (Gobbix)

This server (written in Go) handles passing data to and from html/javascript front end and dashboard to the Habbix back end and the multi-axis database.

Server source code.

Using deploy.sh to deploy the server is recommended. Compiling requires this postgres driver. Server does not start without a habbix binary present.

The server can be configured to connect to a specific (local or piped) database with -s :server-name, and ordered to run Habbix (see below) with a specific configuration file with -h :config-file-name.

Interaction with Habbix

The server does most of its thing by directly interacting with the database. However, it calls for Habbix in two cases: * habbix sync -i :id after updating some item’s parameters in the DB. This makes Habbix actually update the item-specific forecast. * habbix execute (+stuff) to get forecast data without updating the database. If Habbix execution fails for whatever reason the server logs it and carries on.

Known issues and whatnot.