[check_postgres] cannot get options right check_hot_standby_delay
Jeff Frost
jeff at pgexperts.com
Tue Oct 4 17:04:43 UTC 2011
On Oct 4, 2011, at 7:51 AM, Bill MacArthur wrote:
> I have tried and tried to get check_hot_standby_delay working from the command line, but no go. I am missing something simple, but cannot figure out exactly what even after glancing at the source. Please make the necessary correction for me. (I am using .pgpass)
>
> I am good on connecting.......
> sh-3.2$ ./check_postgres_connection --db=network -H=db3 -dbuser1=nagios
> POSTGRES_CONNECTION OK: DB "network" (host:db3) version 9.0.4 | time=0.36s
> sh-3.2$ ./check_postgres_connection --db=network -H=db2 -dbuser1=nagios
> POSTGRES_CONNECTION OK: DB "network" (host:db2) version 9.0.4 | time=0.23s
>
> Just can't seem to get this right, though....
> sh-3.2$ ./check_hot_standby_delay --dbname1=network --dbhost1=db3 --dbhost2=db2 --dbuser=nagios --warning=100000 --critical=10000000 --dbuser2=nagios -db2 network
This seems to work for me:
./check_postgres.pl --action=hot_standby_delay --dbname1=network --dbhost1=db3 --dbhost2=db2 --dbuser1=nagios --warning=100000 --critical=10000000 --dbuser2=nagios --dbname2=network
what version of check_postgres.pl are you using?
---
Jeff Frost <jeff at pgexperts.com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mail.endcrypt.com/pipermail/check_postgres/attachments/20111004/054149ef/attachment.html
More information about the Check_postgres
mailing list