summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms/nodes-digest-rss.xsl
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-01 14:57:24 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-01 14:57:24 +0000
commit058635947a024e68112b7721174c7bc40248aaee (patch)
treea177d52716088c64ac004b8f0ab253df63135726 /reports/xsl-transforms/nodes-digest-rss.xsl
parent7fb840f2b981c8c75158b76d2dd4b0af7635d681 (diff)
downloadbcfg2-058635947a024e68112b7721174c7bc40248aaee.tar.gz
bcfg2-058635947a024e68112b7721174c7bc40248aaee.tar.bz2
bcfg2-058635947a024e68112b7721174c7bc40248aaee.zip
(Logical change 1.272)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1105 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms/nodes-digest-rss.xsl')
-rw-r--r--reports/xsl-transforms/nodes-digest-rss.xsl43
1 files changed, 43 insertions, 0 deletions
diff --git a/reports/xsl-transforms/nodes-digest-rss.xsl b/reports/xsl-transforms/nodes-digest-rss.xsl
index e69de29bb..df6ac33a2 100644
--- a/reports/xsl-transforms/nodes-digest-rss.xsl
+++ b/reports/xsl-transforms/nodes-digest-rss.xsl
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
+<xsl:include href="xsl-transform-includes/text-templates.xsl" />
+<xsl:output method="xml" indent="no" media-type="text/xml" omit-xml-declaration="yes"/>
+<xsl:template match="Report">
+<item>
+<pubDate><xsl:value-of select="@time" /></pubDate>
+<xsl:choose>
+<xsl:when test="count(/Report/Node/Statistics/Bad) > 0"><title>Subject: BCFG Nightly Errors (<xsl:value-of select="@name" />)</title>
+</xsl:when>
+<xsl:otherwise><title>Subject: BCFG Nightly Good (<xsl:value-of select="@name" />)</title>
+</xsl:otherwise>
+</xsl:choose>
+<description>&lt;pre&gt;
+<xsl:text>
+</xsl:text>Report Run @ <xsl:value-of select="@time" />
+
+SUMMARY:
+<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node)" /> nodes were included in your report.<xsl:if test="count(/Report/Node/Statistics/Good) = 0">
+<xsl:text>
+ </xsl:text>All machines are configured to specification.
+</xsl:if><xsl:if test="count(/Report/Node/Statistics/Good) > 0">
+<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Good)" /> nodes are clean.
+</xsl:if>
+<xsl:if test="count(/Report/Node/Statistics/Bad) > 0">
+<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Bad)" /> nodes are bad.
+</xsl:if>
+<xsl:if test="count(/Report/Node/Statistics/Modified) > 0">
+<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Modified)" /> nodes were modified in the last run. (includes both good and bad nodes)
+</xsl:if>
+<xsl:if test="count(/Report/Node/Statistics/Stale) > 0">
+<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Stale)" /> nodes did not run this calendar day.
+</xsl:if>
+DETAILS:
+<xsl:apply-templates select="Node">
+<xsl:sort select="Statistics/@state" order="descending"/>
+<xsl:sort select="@name"/>
+</xsl:apply-templates>
+&lt;/pre&gt;</description>
+<link>http://www-unix.mcs.anl.gov/cobalt/bcfg2/index.html</link>
+</item>
+</xsl:template>
+</xsl:stylesheet> \ No newline at end of file