Screens

The graphs and maps we are familiar with cannot be combined into a single page on their own—for that, we may use an entity called a screen.

Let's create one together:

  1. Navigate to Monitoring | Screens, and click on the Create screen button.
  2. Enter Local servers in the Name field and 2 in the Columns field. We will be able to add more later, if needed:

As with network maps, screens may also be created and shared by users.
  1. Click on Add, and then click on Constructor next to Local servers. We are presented with a fairly unimpressive view:

So, it's up to us to spice it up.

  1. Click on the left-hand Change link, and we have an editing form replacing the previous cell's contents. The default resource type is graph, and we created some graphs earlier.
  2. Click on Select next to the Graph field. In the upcoming window, make sure A test host is selected in the Host drop-down, and then click on CPU load & traffic.
  3. That's all we want to configure here for now, so click on Add.
  4. Now, click on the right-hand Change link and then on Select next to the Graph field.
  5. In the next window, click on Used diskspace (pie). Remember how we tuned the pie chart dimensions before? When inserting elements for screens, we override their configured dimensions.
  6. Our pie chart has to share space with the other graph, so enter 390 in the Width field and 290 in the Height field, and then click on Add.
  7. While we can immediately see the result of our work here, let's look at it in all its glory; go to Monitoring | Screens and click on Local servers in the Name column:

It is not required to save a screen explicitly, unlike most other configuration sections. All changes are immediately saved.

We now have both graphs displayed on a single page. But hey, take a look at the preceding screen: the controls there look very much like the ones we used for graphs. And they are—using these controls, it's possible to do the same things as with graphs, only for all the screen elements. We can make all screen elements display data for a longer period of time or see what the situation was at some point in the past.

Two graphs are nice, but earlier, we talked about having a map and a graph on the same page. Let's see how we can make that happen.

Click on All screens shown in the preceding screenshot, and click on Constructor next to Local servers. We want to add our map at the top of this screen, but we can see here that we created our screen with two columns and single row, so we have to add more. Couldn't we do that in the general screen properties, using the same fields we used when we created the screen? Of course we could, but with one limitation: increasing the column and row count that way will only add new columns and rows to the right or at the bottom, respectively. There is no way to insert rows and columns at arbitrary positions using that form. That's why we will use a different approach.

Reducing the column and row count is only possible from the right-hand side and bottom when using the generic screen properties form. Any elements that have been configured in the removed fields will also be removed.

Look at those + and - buttons around the screen. They allow you to insert or remove columns and rows at arbitrary positions. While the layout might seem confusing at first, understanding a few basic principles should allow you to use them efficiently:

  • Buttons at the top and bottom operate on columns
  • Buttons on the left and right operate on rows
  • + buttons add a column or row before the column or row they are positioned at
  • - buttons remove the column or the row where they are positioned

In this case, we want to add another row at the bottom:

  1. Click on the lower-left + icon in the first column, the column that has + controls only, not the one that has a graph already. This adds a row below our graphs with two columns, both having a Change link, just like before.
  2. Click on the first Change link. It's not a graph we want to add, so choose Map from the Resource drop-down.
  3. Click on Select next to the Map field, and then click on First map. If we leave other parameters as they are, the map will appear on top of the left-hand column. Having it centered above both columns would look better. That's what the Column span option is—enter 2 in that field, and then click on Add.

As can be immediately seen, this screen element now spans two columns. This capability is not limited to maps; any element can span multiple columns or rows.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset