From: Marc P. <ma...@en...> - 2007-08-29 01:03:46
|
> -----Original Message----- > From: nag...@li... [mailto:nagios-users- > bo...@li...] On Behalf Of Bayardo Rivas > Sent: Tuesday, August 28, 2007 6:14 PM > To: Nagios > Subject: [Nagios-users] Error monitoring Postresql Servic >=20 > Hello guys, I'am new to Nagios. >=20 > I need to monitor the PostgreSql service in my server. But I'am receiving > this problem: >=20 > CRITICAL - no connection to 'template1' (could not connect to server: > Connection refused Beyond the other suggestions, verify that the nagios machine has permissions to connect to postgres and the database you want to check in pg_hba.conf. You'll probably also be interested in the -d parameter to check_pgsql to specify the database to check and not the default 'template1' which might not even exist for you. -- Marc |