'T-BAD-QUERY' => 'Invalid query returned:',
);
+
sub add_response {
my ($type,$msg) = @_;
push @{$type->{$header}} => [$msg,$perf];
}
+
sub add_unknown {
my $msg = shift || $db->{error};
$msg =~ s/[\r\n]\s*/\\n /g;
add_response \%ok, shift;
}
+
sub do_mrtg {
## Hashref of info to pass out for MRTG or stat
my $arg = shift;
exit 0;
}
+
sub bad_mrtg {
my $msg = shift;
$ERROR and ndie $ERROR;
exit 3;
}
+
sub do_mrtg_stats {
## Show the two highest items for mrtg stats hash
} ## end of check_relations_size
+
sub check_table_size {
return check_relation_size('table');
}
} ## end of check_logfile
-
sub check_query_runtime {
## Make sure a known query runs at least as fast as we think it should
} ## end of check_sequence
+
sub check_checkpoint {
## Checks how long in seconds since the last checkpoint on a WAL slave
-----BEGIN PGP SIGNATURE-----
-iEYEABEDAAYFAkmJ0o4ACgkQvJuQZxSWSsgtCACdHn3rf2QIDUcquD/O1CFmV5eE
-KIIAn3L4Mu3B7rmEQqltvdfolM6vA4wT
-=hieS
+iEYEABEDAAYFAkmMPw4ACgkQvJuQZxSWSsi7HACgx+yN8FQgTkOVy5dyhrSbK0ls
+12MAn3IaYg1Ex1GjAcA73Hb/sa4G2lB6
+=E/p9
-----END PGP SIGNATURE-----
<hr />
<h1><a name="name">NAME</a></h1>
<p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others</p>
-<p>This documents describes check_postgres.pl version 2.7.0</p>
+<p>This documents describes check_postgres.pl version 2.7.1</p>
<p>
</p>
<hr />
<h1><a name="history">HISTORY</a></h1>
<p>Items not specifically attributed are by Greg Sabino Mullane.</p>
<dl>
-<dt><strong><a name="item_0"><strong>Version 2.7.0</strong> (?? 2009)</a></strong></dt>
+<dt><strong><a name="item_1"><strong>Version 2.7.1</strong> (February 6, 2009)</a></strong></dt>
+
+<dd>
+<pre>
+ Allow the -p argument for port to work again.</pre>
+</dd>
+<dt><strong><a name="item_0"><strong>Version 2.7.0</strong> (February 4, 2009)</a></strong></dt>
<dd>
<pre>
Do not require a connection argument, but use defaults and ENV variables when
possible: PGHOST, PGPORT, PGUSER, PGDATABASE.</pre>
</dd>
-<dt><strong><a name="item_1"><strong>Version 2.6.1</strong> (February 4, 2009)</a></strong></dt>
+<dt><strong><strong>Version 2.6.1</strong> (February 4, 2009)</strong></dt>
<dd>
<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.7.0</b>, and was released on February 04, 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.7.1</b>, and was released on February 06, 2009.</p>
<ul>
- <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.7.0</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.7.1</a></li>
</ul>
<ul>
- <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.7.0</a></li>
- <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.7.0</a></li>
+ <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.7.1</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.7.1</a></li>
</ul>
<p>The latest development version can be downloaded via git:</p>