[check_postgres] check_postgres issue when calling from a remote server

Cédric Villemain cedric.villemain at dalibo.com
Wed Feb 25 10:40:25 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Devrim GÜNDÜZ a écrit :
> I'm having a little issue while calling check_postgres from remote
> server via ssh. Here is the command definition:
> 
> ===
> $USER1$/check_by_ssh -t 400 -4 -H $HOSTADDRESS$ -p $ARG1$ -l $ARG2$ -C
> '/usr/lib64/nagios/plugins/check_postgres_last_autovacuum -u 
> $ARG3 -db $ARG4$ -w $ARG5$ --critical $ARG6$ --port $ARG7$'
> ===
> 
> and here is the service command:
> 
> ===
> check_remote_postgres_last_autovacuum64!22!postgres!postgres!mydb!
> 604800s!1209600s!5432
> ===
> 
> When I run it on the command line in the central nagios server, I get a
> good output. However, nagios gives an error:
> 
> ===
> ERROR: Value for 'critical' must be a valid time. Examples: -c 1s -c "10
> minutes"
> ===
> 
> What could I be doing wrong?

You probably want to check how check_ssh work. I used to get issue with the
options in the commandline.

> 
> Thanks,
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Check_postgres mailing list
> Check_postgres at bucardo.org
> https://mail.endcrypt.com/mailman/listinfo/check_postgres


- --
Cédric Villemain
Administrateur de Base de Données
Cel: +33 (0)6 74 15 56 53
http://dalibo.com - http://dalibo.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmlIBUACgkQo/dppWjpEvzoOQCfYpmlqTRl9UX779PRTXLcFV/X
OZMAn3sYTS+HYDbp9z4G1ePD8N4c/P7K
=ZbfJ
-----END PGP SIGNATURE-----


More information about the Check_postgres mailing list