frontpage is great and all but can I have a second page?
![](https://secure.gravatar.com/avatar/0772a7c046637fd49496148aed62f9c9.jpg?s=120&d=mm&r=g)
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
![](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
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Hi James,
You can technically put anything you want on the front page by building custom front page (even one with multiple "pages" chosen by URL variables).
It requires writing your own PHP pages though, since we haven't come up with a GUI based system for building pages yet.
It's not really /that/ difficult, you can take apart the existing default page to do it, but it isn't ideal, indeed!
adam. On 25/01/2016 05:49:36, 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
participants (3)
-
Adam Armstrong
-
Colin Stubbs
-
James Murty