[Xymon] Another method to group and categorize hosts - "Building Alternate Pagesets"
Don Kuhlman
Don.Kuhlman at schawk.com
Fri Apr 6 16:00:45 CEST 2012
Thanks Ralph. I did some testing with the OS directives as below. It appears as though the new pages are "hidden" as I don't see any links on the main pages to them, which means I can find them by directly entering their url. Has anyone else tried this and have you used another method to show the link to the servers by os directly on a xymon web page ?
ospage win Windows Servers
ossubpage win-prod Production
ossubpage win-dev Dev
ospage macunix Mac-Unix Servers
ossubpage macunix-prod Production
ossubpage macunix-dev Dev
Regards,
Don K
From: Ralph Mitchell <ralphmitchell at gmail.com<mailto:ralphmitchell at gmail.com>>
Date: Thu, 5 Apr 2012 17:44:23 -0400
To: Don Kuhlman <don.kuhlman at schawk.com<mailto:don.kuhlman at schawk.com>>
Cc: Xymon Email List <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: Re: [Xymon] Another method to group and categorize hosts - "Building Alternate Pagesets"
I think that works fine for pages and sub-pages, but you still get all the hosts in the non green page.
Ralph Mitchell
On Apr 5, 2012 3:07 PM, "Don Kuhlman" <Don.Kuhlman at schawk.com<mailto:Don.Kuhlman at schawk.com>> wrote:
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.
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" ?
Maybe this is only for a specific type of requirement. Would anyone care to comment further ?
Thanks
Don K
BUILDING ALTERNATE PAGESETS
With version 1.4 of xymongen comes the possibility to generate multiple sets of pages from the same data.
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:
ospage win Microsoft Windows
ossubpage win-nt4 MS Windows NT 4
osgroup NT4 File servers
osgroup NT4 Mail servers
ossubpage win-xp MS Windows XP
ospage unix Unix
ossubpage unix-sun Solaris
ossubpage unix-linux Linux
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
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.
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.
207.46.249.190 www.microsoft.com<http://www.microsoft.com/> # OS:win-xp http://www.microsoft.com/
64.124.140.181 www.sun.com<http://www.sun.com/> # OS:unix-sun http://www.sun.com/
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120406/05172182/attachment.html>
More information about the Xymon
mailing list