<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ta-postgres Authentication issue in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216928#M7952</link>
    <description>&lt;P&gt;hi!&lt;BR /&gt;
I'm trying to monitor a Postgres DB using the ta-postgres TA.&lt;/P&gt;

&lt;P&gt;I have an authentication issue: the DBA created a user "splunk" and provided me with the password. I have tried the following configuration options in ta-postgres/local/postgrestats.conf:&lt;/P&gt;

&lt;P&gt;Option 1.&lt;BR /&gt;
[default]&lt;BR /&gt;
defaultdb = &lt;BR /&gt;
host = host.domain&lt;BR /&gt;
port = 5432&lt;BR /&gt;
user = splunk&lt;BR /&gt;
password = {md5}splunk83fef3dd6477&lt;/P&gt;

&lt;P&gt;Option 2.&lt;BR /&gt;
[default]&lt;BR /&gt;
defaultdb = &lt;BR /&gt;
host = host.domain&lt;BR /&gt;
port = 5432&lt;BR /&gt;
user = splunk&lt;BR /&gt;
password = md5bacb6374010b3f7af42dc7a670da9db4&lt;BR /&gt;
(md5 coded password from the postgres db)&lt;/P&gt;

&lt;P&gt;In both cases I get the following error message on the DB in the "postgresql*.log :&lt;BR /&gt;
UTC FATAL:  password authentication failed for user "splunk"&lt;/P&gt;

&lt;P&gt;Thanks for support!!!&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2016 15:53:54 GMT</pubDate>
    <dc:creator>marcoscala</dc:creator>
    <dc:date>2016-08-09T15:53:54Z</dc:date>
    <item>
      <title>ta-postgres Authentication issue</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216928#M7952</link>
      <description>&lt;P&gt;hi!&lt;BR /&gt;
I'm trying to monitor a Postgres DB using the ta-postgres TA.&lt;/P&gt;

&lt;P&gt;I have an authentication issue: the DBA created a user "splunk" and provided me with the password. I have tried the following configuration options in ta-postgres/local/postgrestats.conf:&lt;/P&gt;

&lt;P&gt;Option 1.&lt;BR /&gt;
[default]&lt;BR /&gt;
defaultdb = &lt;BR /&gt;
host = host.domain&lt;BR /&gt;
port = 5432&lt;BR /&gt;
user = splunk&lt;BR /&gt;
password = {md5}splunk83fef3dd6477&lt;/P&gt;

&lt;P&gt;Option 2.&lt;BR /&gt;
[default]&lt;BR /&gt;
defaultdb = &lt;BR /&gt;
host = host.domain&lt;BR /&gt;
port = 5432&lt;BR /&gt;
user = splunk&lt;BR /&gt;
password = md5bacb6374010b3f7af42dc7a670da9db4&lt;BR /&gt;
(md5 coded password from the postgres db)&lt;/P&gt;

&lt;P&gt;In both cases I get the following error message on the DB in the "postgresql*.log :&lt;BR /&gt;
UTC FATAL:  password authentication failed for user "splunk"&lt;/P&gt;

&lt;P&gt;Thanks for support!!!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 15:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216928#M7952</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2016-08-09T15:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: ta-postgres Authentication issue</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216929#M7953</link>
      <description>&lt;P&gt;Actually, digging in the code of the ta, we found that the bin/postgrestats.py uses the connect method from psycopg2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;psycopg2.connect(connect_string(defaultdb, dbhost, dbport, dbuser, dbpassword))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheching online it looks like the dbpassword must be passed NOT MD5ed...&lt;/P&gt;

&lt;P&gt;so the working final config for me was:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;password = splunk83fef3dd6477
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with the password in clear!!!&lt;/P&gt;

&lt;P&gt;Hope this will help!!!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 16:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216929#M7953</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2016-08-09T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: ta-postgres Authentication issue</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216930#M7954</link>
      <description>&lt;P&gt;Here is the source of our findings:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.postgresql.org/wiki/Psycopg2_Tutorial"&gt;https://wiki.postgresql.org/wiki/Psycopg2_Tutorial&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 16:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/ta-postgres-Authentication-issue/m-p/216930#M7954</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2016-08-09T16:35:53Z</dc:date>
    </item>
  </channel>
</rss>

