Version 2.3.5
authorGreg Sabino Mullane <[email protected]>
Fri, 10 Oct 2008 01:41:14 +0000 (21:41 -0400)
committerGreg Sabino Mullane <[email protected]>
Fri, 10 Oct 2008 01:41:14 +0000 (21:41 -0400)
check_postgres.pl.asc
check_postgres.pl.html
index.html

index 894350220d858c46549106d92c71d016425df335..00c88bc4be77d2953fb10198e9122da4ce4cc285 100644 (file)
@@ -1,6 +1,6 @@
 -----BEGIN PGP SIGNATURE-----
 
-iEYEABEDAAYFAkjuTtIACgkQvJuQZxSWSsgiIgCfSkcrITqW7jll3u/mHV/CbXVj
-hIcAoN/xj/Tf3wVou+ewTAueqgWwxZzk
-=tCpL
+iEYEABEDAAYFAkjusrMACgkQvJuQZxSWSsjDUQCgu6T4M3w5UJzJ9nz8kWfilZ4l
+qcEAoM1iZv0KoMYdJsVjSen2IWMbyCoY
+=yY4X
 -----END PGP SIGNATURE-----
index 8941676c7bddc81ac620d3d6289050fd1f05c74b..51d213445b901250965069f08d6d4936f681ee6a 100644 (file)
@@ -90,7 +90,7 @@
 <hr />
 <h1><a name="name">NAME</a></h1>
 <p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, and others
-This documents describes check_postgres.pl version 2.3.4</p>
+This documents describes check_postgres.pl version 2.3.5</p>
 <p>
 </p>
 <hr />
@@ -470,7 +470,7 @@ the <code>custom_query</code> argument, and should be kept as simple as possible
 a view or a function to keep things easier to manage. The query should return one or two columns: the first 
 is the result that will be checked, and the second is any performance data you want sent.</p>
 <p>At least one warning or critical argument must be specified. What these are set to depends on the type of 
-query you are running. There are four types of custom_queries that can be run, specified by the <code>checktype</code> 
+query you are running. There are four types of custom_queries that can be run, specified by the <code>valtype</code> 
 argument. If none is specified, this action defaults to 'integer'. The four types are:</p>
 <p><strong>integer</strong>:
 Does a simple integer comparison. The first column should be a simple integer, and the warning and 
@@ -492,10 +492,10 @@ value. However, an option of <em>--reverse</em> will trigger the alert if the re
 <strong>lower than</strong> or equal to the critical or warning value.</p>
 <p>Example 1: Warn if any relation over 100 pages is named &quot;rad&quot;:</p>
 <pre>
-  check_postgres_custom_query --checktype=string -w &quot;rad&quot; --query=&quot;SELECT relname FROM pg_class WHERE relpages &gt; 100&quot; --port=5432</pre>
+  check_postgres_custom_query --valtype=string -w &quot;rad&quot; --query=&quot;SELECT relname FROM pg_class WHERE relpages &gt; 100&quot; --port=5432</pre>
 <p>Example 2: Give a critical if the &quot;foobar&quot; function returns a number over 5MB:</p>
 <pre>
-  check_postgres_custom_query --port=5432 --critical='5MB'--checktype=size --query=&quot;SELECT foobar()&quot;</pre>
+  check_postgres_custom_query --port=5432 --critical='5MB'--valtype=size --query=&quot;SELECT foobar()&quot;</pre>
 <p>Example 2: Warn if the function &quot;snazzo&quot; returns less than 42:</p>
 <pre>
   check_postgres_custom_query --port=5432 --critical=42 --query=&quot;SELECT snazzo()&quot; --reverse</pre>
@@ -1119,6 +1119,13 @@ feature requests, and commit notices, send email to <a href="mailto:check_postgr
 <h1><a name="history">HISTORY</a></h1>
 <p>Items not specifically attributed are by Greg Sabino Mullane.</p>
 <dl>
+<dt><strong><a name="item_version_2_2e3_2e5"><strong>Version 2.3.5</strong></a></strong></dt>
+
+<dd>
+<pre>
+ Change option 'checktype' to 'valtype' to prevent collisions with -c[ritical]
+ Better handling of errors.</pre>
+</dd>
 <dt><strong><a name="item_version_2_2e3_2e4"><strong>Version 2.3.4</strong></a></strong></dt>
 
 <dd>
index f5b5db41adb8bad2adfecdecae3d6c5bdcdad1f9..2b3cb6472b4edfb05db1d4425f3d36c9309fb4fe 100644 (file)
@@ -21,14 +21,14 @@ h1 {
 
 <h1>check_postgres.pl</h1>
 
-<p><b>check_postgres.pl</b> is a script for checking the state of one or more Postgres databases and reporting back in a Nagios-friendly manner. It was developed by Greg Sabino Mullane of <a href="http://www.endpoint.com/">End Point Corporation</a> and is BSD-licensed. The latest version is <b>2.3.4</b>, and was released on October 09, 2008.</p>
+<p><b>check_postgres.pl</b> is a script for checking the state of one or more Postgres databases and reporting back in a Nagios-friendly manner. It was developed by Greg Sabino Mullane of <a href="http://www.endpoint.com/">End Point Corporation</a> and is BSD-licensed. The latest version is <b>2.3.5</b>, and was released on October 09, 2008.</p>
 
 <ul>
- <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.3.4</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.3.5</a></li>
 </ul>
 <ul>
- <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.3.4</a></li>
- <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.3.4</a></li>
+ <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.3.5</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.3.5</a></li>
 </ul>
 
 <p>The latest development version can be downloaded via git:</p>