<div dir="ltr"><div style="font-size:12.8px"><div style="font-size:12.8px"><br class="gmail-Apple-interchange-newline"><span style="font-size:12.8px">I am running postgresql as a resource in </span><span style="font-size:12.8px">corosync. and there is a monitor process that kicks off every few seconds to see if </span>postgresql<span style="font-size:12.8px"> is alive (it runs a select now()). My immediate </span>concern<span style="font-size:12.8px"> is that it is generating </span>alot<span style="font-size:12.8px"> of logs in auth.log, and I am wondering of this is normal behavior? Is there a way to silence this?</span></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px">##</div><div style="font-size:12.8px">## /var/log/auth.log</div><div style="font-size:12.8px">##</div><div style="font-size:12.8px">May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session opened for user postgres by (uid=0)</div><div style="font-size:12.8px">May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session closed for user postgres</div><div style="font-size:12.8px">May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session opened for user postgres by (uid=0)</div><div style="font-size:12.8px">May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session closed for user postgres</div><div style="font-size:12.8px">May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session opened for user postgres by (uid=0)</div><div style="font-size:12.8px">May 24 15:23:19 ssinode02-g2 runuser: pam_unix(runuser:session): session closed for user postgres</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">##</div><div style="font-size:12.8px">## /var/log/postgresql/data.log</div><div style="font-size:12.8px">##</div><div style="font-size:12.8px">DEBUG:  forked new backend, pid=27900 socket=11</div><div style="font-size:12.8px">LOG:  connection received: host=[local]</div><div style="font-size:12.8px">LOG:  connection authorized: user=postgres database=template1</div><div style="font-size:12.8px">LOG:  statement: select now();</div><div style="font-size:12.8px">LOG:  disconnection: session time: 0:00:00.003 user=postgres database=template1 host=[local]</div><div style="font-size:12.8px">DEBUG:  server process (PID 27900) exited with exit code 0</div><div style="font-size:12.8px">DEBUG:  forked new backend, pid=28030 socket=11</div><div style="font-size:12.8px">LOG:  connection received: host=[local]</div><div style="font-size:12.8px">LOG:  connection authorized: user=postgres database=template1</div><div style="font-size:12.8px">LOG:  statement: select now();</div><div style="font-size:12.8px">LOG:  disconnection: session time: 0:00:00.002 user=postgres database=template1 host=[local]</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">## snippit of pgsql corosync primitive</div><div style="font-size:12.8px"><div style="font-size:12.8px"><div style="font-size:12.8px">primitive res_pgsql_2 pgsql \</div><div style="font-size:12.8px">        params pgdata="/mnt/drbd/postgres" config="/mnt/drbd/postgres/pos<wbr>tgresql.conf" start_opt="-d 2" pglibs="/usr/lib/postgresql/9.<wbr>5/lib" logfile="/var/log/postgresql/d<wbr>ata.log" \</div><div style="font-size:12.8px">        operations $id=res_pgsql_1-operations \</div><div style="font-size:12.8px">        op start interval=0 timeout=60 \</div><div style="font-size:12.8px">        op stop interval=0 timeout=60 \</div><div style="font-size:12.8px">        op monitor interval=3 timeout=60 start-delay=0</div><div><br></div></div></div></div>