Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i13Z4-00062S-4W for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2019 07:00:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i13Z1-0008Ei-MS for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2019 07:00:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i13Z1-0008Eb-Cr for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2019 07:00:47 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i13Yw-0007Zi-MF for pgsql-general@postgresql.org; Fri, 23 Aug 2019 07:00:46 +0000 Received: from [127.0.0.1] ([62.117.25.147]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MvJwN-1iIJMb3r05-00rHpe; Fri, 23 Aug 2019 09:00:37 +0200 Subject: Re: Question on pgwatch To: Bikram MAJUMDAR , pgsql-general References: <9CB8AC2E-27EA-431A-A00A-763E7DF124BA@elevated-dev.com> From: "Georg H." Message-ID: <2c6ba2e4-04dc-474b-09b7-c4ab5b6af285@silentrunner.de> Date: Fri, 23 Aug 2019 09:00:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: de-DE X-Provags-ID: V03:K1:rj3khFe5qqHfrqkvx4f0L2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-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Bikram, Am 22.08.2019 um 23:50 schrieb Bikram MAJUMDAR: > Hi, > Need help from anyone in the team who has worked on pgwatch2. > > Yesterday we installed pgwatch2 docker image and started the container. > We are running the pgwatch2 container from the database server itself - > Now we want to add our databases for monitoring using the admin interface: > We are opening the pgwatch2 admin interface at :8080/dbs.But, when we try to add the database (cemtore) in the admin interface we get the following error: > > Could not connect to specified host (ignore if gatherer daemon runs on another host): FATAL: no pg_hba.conf entry for host "172.17.0.2", user "cemtore", database "cemtore", SSL off > > Any idea what we are doing wrong? > > We would now like to add the database manually following notes below: > Usage > by default the pgwatch2 configuration database running inside Docker is being monitored so that you can immediately see some graphs, but you should add new databases by opening the admin interface at 127.0.0.1:8080/dbs or logging into the Postgres config DB and inserting into pgwatch2.monitored_db table (db - pgwatch2 , default user/pw - pgwatch2/pgwatch2admin) > > But, my question is, how do I run the psql on my database server to login to this default pgwatch2 configuration DB? > > Bikram Majumdar > Sr Software Developer/DBA, Aqsacom Inc. > c. 1.972.365.3737 As the message states (FATAL: no pg_hba.conf entry for host "172.17.0.2", user "cemtore", database "cemtore", SSL off) you have to edit pg_hba.conf of the PostgreSQL Cluster hosting the cemtore database to allow connections from pgwatch to it as your current config doesn't allow that. Also you may need the connecting user within your database with the required rights (if not added yet). regards Georg