<div dir="ltr">In reference to previous email (which I accidentally sent without details)<div><br><div>I am running postgresql as a resource in corosync. and there is a monitor process that kicks off every few seconds to see if postgresql is alive (it runs a select now). My immediate conserning is that it is generating alot of logs in auth.log, and I am wondering of this is normal behavior? Is there a way to silence this?<br><div><br></div><div>also, here is the primitive snipit:</div><div><div>primitive res_pgsql_2 pgsql \</div><div>        params pgdata="/mnt/drbd/postgres" config="/mnt/drbd/postgres/postgresql.conf" start_opt="-d 2" pglibs="/usr/lib/postgresql/9.5/lib" logfile="/var/log/postgresql/data.log" \</div><div>        operations $id=res_pgsql_1-operations \</div><div>        op start interval=0 timeout=60 \</div><div>        op stop interval=0 timeout=60 \</div><div>        op monitor interval=3 timeout=60 start-delay=0</div></div><div><br></div><div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 4:06 PM, Christopher Pax <span dir="ltr"><<a href="mailto:opspax@gmail.com" target="_blank">opspax@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>##</div><div>## /var/log/auth.log</div><div>##</div><div>May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session opened for user postgres by (uid=0)</div><div>May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session closed for user postgres</div><div>May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session opened for user postgres by (uid=0)</div><div>May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session closed for user postgres</div><div>May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session opened for user postgres by (uid=0)</div><div>May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session closed for user postgres</div><div><br></div><div>##</div><div>## /var/log/postgresql/data.log</div><div>##</div><div>DEBUG:  forked new backend, pid=27900 socket=11</div><div>LOG:  connection received: host=[local]</div><div>LOG:  connection authorized: user=postgres database=template1</div><div>LOG:  statement: select now();</div><div>LOG:  disconnection: session time: 0:00:00.003 user=postgres database=template1 host=[local]</div><div>DEBUG:  server process (PID 27900) exited with exit code 0</div><div>DEBUG:  forked new backend, pid=28030 socket=11</div><div>LOG:  connection received: host=[local]</div><div>LOG:  connection authorized: user=postgres database=template1</div><div>LOG:  statement: select now();</div><div>LOG:  disconnection: session time: 0:00:00.002 user=postgres database=template1 host=[local]</div><div><br></div><div><br></div></div>
</blockquote></div><br></div></div></div></div></div>