Start monitoring

Run the Webserver

To run the Webserver:

$ cd ~/hostit-monitoring/hostit-monitoring/hsm_webserver
$ hagent-run ws_scripts/config.ini ws_scripts/logging.ini

Verify in logging.ini that the line

args=("/var/run/syslog",)

actually points to your real syslogd socket.

Run the Supervisor

When you install hostit_monitoring a console command will be available:

  • hsm-supervisor-start

hsm-supervisor-start

Use the hsm-supervisor-start providing the configuration file for running the monitoring.

$ hsm-supervisor-start -h
usage: hsm-supervisor-start [-h] CONFIG_PATH

Start the host.it monitor with specific configuration file

positional arguments:
  CONFIG_PATH  config file path

optional arguments:
  -h, --help   show this help message and exit

To run the monitoring

$ hsm-supervisor-start hostit_monitoring/development.ini

Check the Supervisor Configuration File specification for ini files format.

Run Grafana*

*Not needed

$ sudo grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins
  • port: 3000
  • user: Admin
  • pass: admin