Commit 75bcd3cc authored by Seth D. Galitzer's avatar Seth D. Galitzer

tweak config file, update readme

parent 11649936
To use this dashboard, you must create a database to hold info on host IP and MAC addresses. Import the included `deskmon.sql` schema into your database to create the tables, and then populate them accordingly. Once done, set connection parameters in `config.php` so the dashboard can read the data. The `groups` table does not necessarily need to use group names in your icinga data, but something readable for display purposes. Loading this data is an exercise left to the reader, but the schema should be enough info to get you started.
To use this dashboard, you must create a database to hold info on host IP and MAC addresses. Import the included `deskmon.sql` schema into your database to create the tables, and then populate them accordingly.
Loading this data is an exercise left to the reader, but the schema should be enough info to get you started. The `groups` table does not necessarily need to use group names in your icinga data, but something readable for display purposes.
You will need to modify `config.php` to work with your installation of Icinga, set the list of hostgroups you want to display, and your database connection parameters.
<?php
// Icinga parameters you should change
$icinga_host = "your.icinga2.host.org"
$icinga_port = 5665 // change if using non-standard port
$icinga_api_path = "/v1/objects/hosts"
$icinga_url = "https://" . $icinga_host . ":" . $icinga_port . $icinga_api_path;
$icinga_user = "username";
$icinga_pass = "password";
$icinga_api_path = "/v1/objects/hosts"
$icinga_url = "https://" . $icinga_host . ":" . $icinga_port . $icinga_api_path;
// modify hostgroups in this list to include those you want to display
$icinga_groups = [
"group1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment