<li><a href="#autovac_freeze"><strong>autovac_freeze</strong></a></li>
<li><a href="#backends"><strong>backends</strong></a></li>
<li><a href="#bloat"><strong>bloat</strong></a></li>
+ <li><a href="#checkpoint"><strong>checkpoint</strong></a></li>
<li><a href="#connection"><strong>connection</strong></a></li>
<li><a href="#custom_query"><strong>custom_query</strong></a></li>
<li><a href="#database_size"><strong>database_size</strong></a></li>
<hr />
<h1><a name="name">NAME</a></h1>
<p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
-This documents describes check_postgres.pl version 2.5.4</p>
+This documents describes check_postgres.pl version 2.6.0</p>
<p>
</p>
<hr />
times larger the relation is compared to how large it should be), just pass in <code>--mrtg=ratio</code>.</p>
<p>
</p>
+<h2><a name="checkpoint"><strong>checkpoint</strong></a></h2>
+<p>(<code>symlink: check_postgres_checkpoint</code>) Determines how long since the last checkpoint has
+been run. This must run on the same server as the database that is being checked. The
+data directory must be set, either by the environment variable <code>PGDATA</code>, or passing
+the <code>--datadir</code> argument. It returns the number of seconds since the last checkpoint
+was run, as determined by parsing the call to <code>pg_controldata</code>. Because of this, the
+pg_controldata executable must be available in the current path.</p>
+<p>At least one warning or critical argument must be set.</p>
+<p>For MRTG or simple output, returns the number of seconds.</p>
+<p>
+</p>
<h2><a name="connection"><strong>connection</strong></a></h2>
<p>(<code>symlink: check_postgres_connection</code>) Simply connects, issues a 'SELECT version()', and leaves.
Takes no <em>--warning</em> or <em>--critical</em> options.</p>
<dl>
<dt><strong><a name="item_4"><strong>Version 2.5.4</strong> (January 7, 2009)</a></strong></dt>
+<dd>
+<pre>
+ Add the pitr_lag check.</pre>
+</dd>
+<dt><strong><strong>Version 2.5.4</strong> (January 7, 2009)</strong></dt>
+
<dd>
<pre>
Better checking of $opt{dbservice} structure (Cédric Villemain)
</p>
<hr />
<h1><a name="license_and_copyright">LICENSE AND COPYRIGHT</a></h1>
-<p>Copyright (c) 2007-2008 Greg Sabino Mullane <<a href="mailto:greg@endpoint.com">greg@endpoint.com</a>>.</p>
+<p>Copyright (c) 2007-2009 Greg Sabino Mullane <<a href="mailto:greg@endpoint.com">greg@endpoint.com</a>>.</p>
<p>Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:</p>
<pre>
<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.5.4</b>, and was released on January 07, 2009.</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.6.0</b>, and was released on January 26, 2009.</p>
<ul>
- <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.5.4</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.6.0</a></li>
</ul>
<ul>
- <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.5.4</a></li>
- <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.5.4</a></li>
+ <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.6.0</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.6.0</a></li>
</ul>
<p>The latest development version can be downloaded via git:</p>