summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-12-20 16:20:43 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-12-20 16:20:43 +0000
commit61c1165fe8e62677ad5b288a52b61e303df008c4 (patch)
tree2f2e19fafd97d5801d38cfe89e0b423d2cb4a160 /reports/xsl-transforms
parentd4469be76426ccedba2bdd591ee38b5742266a21 (diff)
downloadbcfg2-61c1165fe8e62677ad5b288a52b61e303df008c4.tar.gz
bcfg2-61c1165fe8e62677ad5b288a52b61e303df008c4.tar.bz2
bcfg2-61c1165fe8e62677ad5b288a52b61e303df008c4.zip
Removed old versions of overview-stats templates in fulfillment of move to unified
naming scheme. They have been replaced with overview-stats-www.xsl and overview-stats-mail.xsl git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1632 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms')
-rw-r--r--reports/xsl-transforms/overview-stats-email.xsl90
-rw-r--r--reports/xsl-transforms/overview-stats-html.xsl117
2 files changed, 0 insertions, 207 deletions
diff --git a/reports/xsl-transforms/overview-stats-email.xsl b/reports/xsl-transforms/overview-stats-email.xsl
deleted file mode 100644
index a134d8048..000000000
--- a/reports/xsl-transforms/overview-stats-email.xsl
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
-<xsl:include href="xsl-transform-includes/text-templates.xsl" />
-<xsl:output method="text" indent="no" media-type="text/plain" />
-<xsl:template match="Report">Subject: BCFG Nightly Statistics<xsl:text>
-</xsl:text>Report Run @ <xsl:value-of select="@time" />
-<xsl:variable name="cleannodes" select="/Report/Node[Statistics/@state='clean']"/>
-<xsl:variable name="dirtynodes" select="/Report/Node[count(Statistics/Bad)>0]"/>
-<xsl:variable name="modifiednodes" select="/Report/Node[count(Statistics/Modified)>0]"/>
-<xsl:variable name="stalenodes" select="/Report/Node[count(Statistics/Stale)>0]"/>
-<xsl:variable name="unpingablenodes" select="/Report/Node[HostInfo/@pingable='N']"/>
-<xsl:variable name="pingablenodes" select="/Report/Node[HostInfo/@pingable='Y']"/>
-
-Summary:
-<xsl:text> </xsl:text><xsl:value-of select="count($cleannodes)" /> nodes are clean.
-<xsl:text> </xsl:text><xsl:value-of select="count($dirtynodes)" /> nodes are dirty.
-<xsl:text> </xsl:text><xsl:value-of select="count($modifiednodes)" /> nodes were modified in the last run. (includes both good and bad nodes)
-<xsl:text> </xsl:text><xsl:value-of select="count($stalenodes[count(.|$pingablenodes)= count($pingablenodes)])" /> nodes did not run within the last 24 hours but were pingable.
-<xsl:text> </xsl:text><xsl:value-of select="count($unpingablenodes)" /> nodes were not pingable.
-<xsl:text> </xsl:text>----------------------------
-<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node)" /> Total<xsl:text>
-
-</xsl:text>
-
-
-<xsl:if test="count($cleannodes) > 0">
-CLEAN:
-<xsl:for-each select="Node">
-<xsl:sort select="HostInfo/@fqdn"/>
-<xsl:if test="count(Statistics/Good) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
-</xsl:text>
-</xsl:if>
-</xsl:for-each><xsl:text>
-</xsl:text>
-</xsl:if>
-
-<xsl:if test="count($dirtynodes) > 0">
-DIRTY:
-<xsl:for-each select="Node">
-<xsl:sort select="HostInfo/@fqdn"/>
-<xsl:if test="count(Statistics/Bad) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
-</xsl:text>
-</xsl:if>
-</xsl:for-each><xsl:text>
-</xsl:text>
-</xsl:if>
-
-<xsl:if test="count($modifiednodes) > 0">
-MODIFIED:
-<xsl:for-each select="Node">
-<xsl:sort select="HostInfo/@fqdn"/>
-<xsl:if test="count(Statistics/Modified) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
-</xsl:text>
-</xsl:if>
-</xsl:for-each><xsl:text>
-</xsl:text>
-
-</xsl:if>
-
-<xsl:if test="count($stalenodes[count(.|$pingablenodes)= count($pingablenodes)]) > 0">
-STALE:
-<xsl:for-each select="Node">
-<xsl:sort select="HostInfo/@fqdn"/>
-<xsl:if test="count(Statistics/Stale)-count(HostInfo[@pingable='N']) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
-</xsl:text>
-</xsl:if>
-</xsl:for-each><xsl:text>
-</xsl:text>
-
-</xsl:if>
-
-<xsl:if test="count($unpingablenodes) > 0">
-UNPINGABLE:
-<xsl:for-each select="Node">
-<xsl:sort select="HostInfo/@fqdn"/>
-<xsl:if test="count(HostInfo[@pingable='N']) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
-</xsl:text>
-</xsl:if>
-</xsl:for-each><xsl:text>
-</xsl:text>
-
-</xsl:if>
-
-</xsl:template>
-</xsl:stylesheet> \ No newline at end of file
diff --git a/reports/xsl-transforms/overview-stats-html.xsl b/reports/xsl-transforms/overview-stats-html.xsl
deleted file mode 100644
index afcd06de4..000000000
--- a/reports/xsl-transforms/overview-stats-html.xsl
+++ /dev/null
@@ -1,117 +0,0 @@
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns="http://www.w3.org/1999/xhtml">
- <xsl:include href="xsl-transform-includes/main-js.xsl" />
- <xsl:include href="xsl-transform-includes/boxypastel-css.xsl" />
- <xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
- <xsl:template match="Report">
- <xsl:variable name="cleannodes" select="/Report/Node[count(Statistics/Good)>0]"/>
- <xsl:variable name="dirtynodes" select="/Report/Node[count(Statistics/Bad)>0]"/>
- <xsl:variable name="modifiednodes" select="/Report/Node[count(Statistics/Modified)>0]"/>
- <xsl:variable name="stalenodes" select="/Report/Node[count(Statistics/Stale)>0]"/>
- <xsl:variable name="unpingablenodes" select="/Report/Node[HostInfo/@pingable='N']"/>
- <xsl:variable name="pingablenodes" select="/Report/Node[HostInfo/@pingable='Y']"/>
-
- <html>
- <head>
- <title><xsl:value-of select="@name" /></title>
-
- <xsl:copy-of select="$boxypastel-css" />
- <xsl:copy-of select="$main-js" />
- </head>
- <body bgcolor="#ffffff">
- <div class="header">
- <h1><xsl:value-of select="@name" /></h1><span class="notebox">Report Run @ <xsl:value-of select="@time" /></span>
- </div>
- <div class="nodebox">
- <h2>Summary:</h2>
-
- <p class="indented"><xsl:value-of select="count(/Report/Node)" /> Nodes were included in your report.</p>
- <xsl:if test="count($cleannodes) > 0">
- <div class="clean">
- <span class="nodelisttitle"><a href="javascript:toggleLayer('goodsummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/Statistics/Good)" /></a> nodes are clean.<br /></span>
- <div class="items" id="goodsummary"><ul class="plain">
-
- <xsl:for-each select="Node">
- <xsl:sort select="HostInfo/@fqdn"/>
- <xsl:if test="count(Statistics/Good) > 0">
- <tt><xsl:value-of select="HostInfo/@fqdn" /></tt><br/>
- </xsl:if>
- </xsl:for-each>
- </ul></div>
- </div>
- </xsl:if>
-
- <xsl:if test="count($dirtynodes) > 0">
- <div class="bad">
- <span class="nodelisttitle"><a href="javascript:toggleLayer('badsummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/Statistics/Bad)" /></a> nodes are bad.<br /></span>
-
- <div class="items" id="badsummary"><ul class="plain">
- <xsl:for-each select="Node">
- <xsl:sort select="HostInfo/@fqdn"/>
- <xsl:if test="count(Statistics/Bad) > 0">
- <tt><xsl:value-of select="HostInfo/@fqdn" /></tt><br/>
- </xsl:if>
- </xsl:for-each>
- </ul></div>
- </div>
- </xsl:if>
-
- <xsl:if test="count($modifiednodes) > 0">
- <div class="modified">
- <span class="nodelisttitle"><a href="javascript:toggleLayer('modifiedsummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/Statistics/Modified)" /></a> nodes were modified in the last run. (includes both good and bad nodes)<br /></span>
-
- <div class="items" id="modifiedsummary"><ul class="plain">
- <xsl:for-each select="Node">
- <xsl:sort select="HostInfo/@fqdn"/>
- <xsl:if test="count(Statistics/Modified) > 0">
- <tt><xsl:value-of select="HostInfo/@fqdn" /></tt><br/>
- </xsl:if>
- </xsl:for-each>
- </ul></div>
- </div>
- </xsl:if>
-
- <xsl:if test="count($stalenodes[count(.|$pingablenodes)= count($pingablenodes)]) > 0">
- <div class="warning">
- <span class="nodelisttitle"><a href="javascript:toggleLayer('stalesummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count($stalenodes[count(.|$pingablenodes)= count($pingablenodes)])" /></a> nodes did not run within the last 24 hours but were pingable.<br /></span>
-
- <div class="items" id="stalesummary"><ul class="plain">
- <xsl:for-each select="Node">
- <xsl:sort select="HostInfo/@fqdn"/>
- <xsl:if test="count(Statistics/Stale)-count(HostInfo[@pingable='N']) > 0">
- <tt><xsl:value-of select="HostInfo/@fqdn" /></tt><br/>
- </xsl:if>
- </xsl:for-each>
- </ul></div>
- </div>
- </xsl:if>
-
-
-
- <xsl:if test="count($unpingablenodes) > 0">
- <div class="down">
- <span class="nodelisttitle"><a href="javascript:toggleLayer('unpingablesummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/HostInfo[@pingable='N'])" /></a> nodes were down.<br /></span>
-
- <div class="items" id="unpingablesummary"><ul class="plain">
- <xsl:for-each select="Node">
- <xsl:sort select="HostInfo/@fqdn"/>
- <xsl:if test="count(HostInfo[@pingable='N']) > 0">
- <tt><xsl:value-of select="HostInfo/@fqdn" /></tt><br/>
- </xsl:if>
- </xsl:for-each>
- </ul></div>
- </div>
- </xsl:if>
-
-
-
- </div>
- <br/>
- <br/>
- <p>
- <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a>
- </p>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet> \ No newline at end of file