![](https://secure.gravatar.com/avatar/a7d7e58181948e0de1e19e95dba431d1.jpg?s=120&d=mm&r=g)
There is, but it requires a fair to good working knowledge of PHP/HTML/CSS in order to do it.
You’ll also need to dig around and work out which objects (graphs/etc) that are already being rendered are handled; and how to put them into a custom page. Knowledge of how to interact with the Observium DB in the right way (the same way the rest of Observium code does) also helps; and can be leveraged to use additional tables or completely different databases if you need to create them.
Summary,
If you create “html/includes/navbar-custom.inc.php” then “navbar.inc.php” will include that file automatically.
navbar-custom.inc.php should set some values in the $navbar array, indicating how Observium should render extra top level or sub-level menus.
You’ll them need to create the necessary files and/or directories in “html/pages” so the links will work correctly.
e.g. we add nfsen and some other custom stuff in using the below,
$ cat html/includes/navbar-custom.inc.php <?php
if ($_SESSION['userlevel'] >= '5' && $config['nfsen_enable'] == 1) { $navbar['flows'] = array('url' => '#', 'icon' => 'custom-icon-flow', 'title' => 'Flows');
$navbar['flows']['entries'][] = array('url' => '/flows/source=nfsen', 'image' => 'images/icons/nfsen.png', 'title' => nicecase('nfsen')); }
if ($_SESSION['userlevel'] >= '5' && $config['thousandeyes']['enable'] == 1) { $navbar['thousandeyes'] = array('url' => '#', 'icon' => 'custom-icon-thousandeyes', 'title' => 'Thousand Eyes');
$navbar['thousandeyes']['entries'][] = array('url' => '/thousandeyes/api=agents', 'image' => 'images/icons/thousandeyes.png', 'title' => nicecase('Agents')); $navbar['thousandeyes']['entries'][] = array('url' => '/thousandeyes/api=tests', 'image' => 'images/icons/thousandeyes.png', 'title' => nicecase('Tests')); $navbar['thousandeyes']['entries'][] = array('url' => '/thousandeyes/api=alerts', 'image' => 'images/icons/thousandeyes.png', 'title' => nicecase('Alerts')); }
$navbar['dashboards'] = array('url' => '#', 'icon' => 'oicon-light-bulb', 'title' => 'Dashboards'); $navbar['dashboards']['entries'][] = array('url' => '/dashboards/dashboard=overview', 'image' => 'images/icons/overview.png', 'title' => nicecase('Overview')); $navbar[‘dashboards’]['entries'][] = array('url' => '/dashboards/dashboard=top', 'image' => 'images/icons/topx.png', 'title' => nicecase('Top X'));
// EOF
-Colin
On 25 January 2016 at 15:49, James Murty james.murty@winning.com.au wrote:
I’m looking a using Observium to generate a number of metric specific dashboards for routers and switches I have around the country.
The
$config['frontpage']['minigraphs']['ids’] = “<id>,<metric>,<title>”;
configuration looks like it’ll give me what I want but ideally I just have those minigraphs on a page by themselves.
Is there a way to define a seconds page?
i.e. $config[‘minigraphpage']['minigraphs']['ids’] = “<id>,<metric>,<title>”;
and have that show on a second screen?
- james
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium