|
The external links feature provides links from objects modelled in Tideway Foundation, to other web-based systems where additional information is stored. It is also used to create links to reports or charts specified for individual nodes or sets of nodes (result sets). For example, if you are viewing a host in the Tideway Foundation UI, you may see a link to that host in a change management application such as Remedy. See Dynamic Toolbox. The following link types are provided:
Configuration FilesAdditional link configuration has changed in Tideway Foundation 7.3 to become a form of Custom Reporting. The xml configuration files are held in the following directories:
The directories are parsed in the order given (installed before custom), and the files contained in these directories are parsed in alphabetical order, with numbers before letters. This order is important as later definitions for a named link override those loaded earlier. The standard additional links are contained in /usr/tideway/data/installed/reports/00additional_links.xml. Upgrades from previous versions of Tideway Foundation remove /usr/tideway/data/default/additional_links.xml and add the following new file: If you are upgrading, you must copy /usr/tideway/data/customer/additional_links.xml to /usr/tideway/data/custom/reports/00additional_links.xml and manually convert the file to the new format which is described on this page. Links configured in the installed subdirectory are displayed beneath the default links, those from the custom subdirectory follow them. However, if a custom link overrides an installed link it will appear in place of the installed link. Notes:
Link TagsThe link tag specifies the type of link that is being created. These may be one of the following:
Each tag must specify a name using the name attribute. Note that each link tag is in a distinct namespace. Tags AvailableThe following xml tags are available in all form of links:
The following xml tags are available within <link>:
The following xml tags are available within the remaining link types:
The default type of chart can be specified by adding the default attribute to <node-chart> or <refine-chart>. Supported charts depend upon the number of columns specified by <split>. For single columns the supported charts are:
For two columns the supported charts are:
Example 00additional_links.xml FileAn example XML file is broken down and its constituent parts are described below: <?xml version="1.0"?> <reports version="2.0"> The reports version must be 2.0. External LinksEach external link is defined under a <link> tag. The following example shows a label populated with the text "View trouble ticket for hostname." Where hostname is the name of the current host. <link name="Link.Host.Ticket">
<title>View trouble ticket for %(hostname)s</title>
<description>Browse trouble ticket system for this host.</description>
<kind>Host</kind>
<image>kind/gif/Location_16.gif</image>
<url>http://tickets.tideway.com/tickets/%(ticketNum)s.cgi</url>
</link>
Report LinksEach report link is defined under a <node-report> tag. The following examples retrieves a list of hosts with the same operating system type as the currently viewed host. <node-report name="Node.Report.Host.SameOS">
<title>Hosts with the same OS type</title>
<description>List of hosts with the same OS type</description>
<kind>Host</kind>
<image>system/gif/report_16.gif</image>
<lookup>False</lookup>
<where>os_type = %(os_type)r</where>
</node-report>
Chart LinksEach chart link is defined under a <node-chart> tag. A chart showing access methods for this Host node. <node-chart name="Node.Chart.Host.AccessMethod" default="column">
<title>Host Login Summary Chart</title>
<description>Host Login Methods on a column chart</description>
<kind>Host</kind>
<image>system/gif/column_chart_16.gif</image>
<where keyword="False">TRAVERSE :::DeviceInfo</where>
<split>last_access_method as '_|Method|_' </split>
<show>SUMMARY</show>
</node-chart>
SetReport LinksEach set report link is defined under a <refine-report> tag. Show the number of hosts per software package on which the currently viewed set of packages are installed. <refine-report name="Refine.Report.Host.Density">
<title>Package Host Density</title>
<description>How many Hosts are these Packages installed on</description>
<kind>Host</kind>
<image>system/gif/report_16.gif</image>
<show>
name,
version,
NODECOUNT(TRAVERSE InstalledSoftware:HostedSoftware:Host:Host)
AS '_|Number of Hosts|_'
</show>
</refine-report>
SetChart LinksEach set chart link is defined under a <refine-chart> tag. Summarise the currently viewed set of Software Instance nodes in a pie chart segmented by type. <refine-chart name="Refine.Chart.Host.SISummary" default="pie">
<title>Software Instance Type Summary</title>
<description>Show a Summary of the Software Instance Types</description>
<kind>Host</kind>
<image>system/gif/pie_chart_16.gif</image>
<order-by>type</order-by>
<split>type</split>
<show>SUMMARY</show>
</refine-chart>
CompletionFinally, the XML file is completed with the closing tag. </reports> |
