6 use Munin::Plugin::Pgsql;
8 my $pg = Munin::Plugin::Pgsql->new(
9 title => 'PostgreSQL replication delay',
10 info => 'Replication delay',
15 WHEN pg_last_xlog_receive_location() = pg_last_xlog_replay_location() THEN 0::int
16 ELSE (extract(epoch FROM now()) - extract(epoch FROM pg_last_xact_replay_timestamp()))::int
20 "VALUES ('delay','Replication delay')"