../etc/check-pazpar2.sh
authorDennis Schafroth <dennis@indexdata.com>
Fri, 11 Mar 2011 12:26:25 +0000 (13:26 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 11 Mar 2011 12:26:25 +0000 (13:26 +0100)
etc/server-status-nagios.xsl [new file with mode: 0644]

diff --git a/etc/server-status-nagios.xsl b/etc/server-status-nagios.xsl
new file mode 100644 (file)
index 0000000..56f53fa
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output indent="no" method="text" version="1.0" encoding="UTF-8" />
+
+  <xsl:template match="/server-status">
+      <xsl:apply-templates />
+  </xsl:template>
+
+  <xsl:template match="sessions">
+    <xsl:text>export SESSIONS=</xsl:text><xsl:value-of select="." />
+  </xsl:template>
+
+  <xsl:template match="clients">
+    <xsl:text>export CLIENTS=</xsl:text><xsl:value-of select="." />
+  </xsl:template>
+
+  <xsl:template match="resultsets">
+    <xsl:text>export RESULTSETS=</xsl:text><xsl:value-of select="." />
+  </xsl:template>
+
+  <xsl:template match="*">
+  </xsl:template>
+
+</xsl:stylesheet>