<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<h2 style="font-family: Times; font-size: medium; "><span class="Apple-style-span" style="font-weight: normal;">Hello again folks. Today must be my xymon question day.  I just posted a query about re-organizing our xymon structure via a lot of include files,
 by OS, App, etc.</span></h2>
<div>While researching this, I came across the bit below from the man pages in xymongen.  If I understand this correctly, isn't this another way or the best way to organize hosts in pages without duplicating a lot of host names in different cfg files or over
 dosing with "includes" ?</div>
<div><br>
</div>
<div>Maybe this is only for a specific type of requirement.  Would anyone care to comment further ?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Don K</div>
<div><br>
</div>
<h2 style="font-family: Times; font-size: medium; ">BUILDING ALTERNATE PAGESETS</h2>
<span class="Apple-style-span" style="font-family: Times; font-size: medium; ">With version 1.4 of xymongen comes the possibility to generate multiple sets of pages from the same data.</span><span class="Apple-style-span" style="font-family: Times; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: Times; font-size: medium; "><br>
</span><span class="Apple-style-span" style="font-family: Times; font-size: medium; ">Suppose you have two groups of people looking at the Xymon webpages. Group A wants to have the hosts grouped by the client, they belong to. This is how you have Xymon set
 up - the default pageset. Now group B wants to have the hosts grouped by operating system - let us call it the "os" set. Then you would add the page layout to hosts.cfg like this:</span>
<p style="font-family: Times; font-size: medium; ">ospage win Microsoft Windows <br>
ossubpage win-nt4 MS Windows NT 4 <br>
osgroup NT4 File servers <br>
osgroup NT4 Mail servers <br>
ossubpage win-xp MS Windows XP <br>
ospage unix Unix <br>
ossubpage unix-sun Solaris <br>
ossubpage unix-linux Linux</p>
<p style="font-family: Times; font-size: medium; ">This defines a set of pages with one top-level page (the xymon.html page), two pages linked from xymon.html (win.html and unix.html), and from e.g. the win.html page there are subpages win-nt4.html and win-xp.html <br>
The syntax is identical to the normal "page" and "subpage" directives in hosts.cfg, but the directive is prefixed with the pageset name. Dont put any hosts in-between the page and subpage directives - just add all the directives at the top of the hosts.cfg
 file. <br>
How do you add hosts to the pages, then ? Simple - just put a tag "OS:win-xp" on the host definition line. The "OS" must be the same as prefix used for the pageset names, but in uppercase. The "win-xp" must match one of the pages or subpages defined within
 this pageset. E.g.</p>
<p style="font-family: Times; font-size: medium; ">207.46.249.190 <a href="http://www.microsoft.com/">www.microsoft.com</a> # OS:win-xp <a href="http://www.microsoft.com/">http://www.microsoft.com/</a> <br>
64.124.140.181 <a href="http://www.sun.com/">www.sun.com</a> # OS:unix-sun <a href="http://www.sun.com/">http://www.sun.com/</a></p>
</div>
</body>
</html>