<div dir="ltr"><br>This is expected behaviour, All PCP client side tools are independent of Pgpool-II server side settings and have no visibility and access to the pgpool.conf file, Since the utility can be used to connect to any local or remote Pgpool, So PCP utilities always try to connect on the default socket directory and default port unless explicitly specified in the command&#39;s argument.<br><br>If you are using a different pcp_socket_dir and/or different pcp_port then you would be required to specify the socket file location and port in the pcp command argument,<br><br>For example to make PCP utilities use /var/run/postgresql as socket directory you should specify the directory in the host argument.<br><br># with pcp_port = 9898 and pcp_socket_dir = &#39;/var/run/postgresql&#39;<br>pcp_pool_status -h /var/run/postgresql -p 9898 -U &lt;user&gt;<div><br></div><div>Thanks<div>Kind Regards<br>Muhammad Usama</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 23, 2017 at 8:34 PM, Jeremiah Penery <span dir="ltr">&lt;<a href="mailto:jpenery@redskytech.com" target="_blank">jpenery@redskytech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m using the latest pgpool RPMs: pgpool-II-pg96-3.6.4-1pgdg.<wbr>rhel6.x86_64<br>
<br>
There seems to be some problem with the PCP socket directory setting.  I have it set as such:<br>
pcp_socket_dir = &#39;/var/run/postgresql&#39;<br>
<br>
The file is indeed created in that directory:<br>
[root@jp1 redsky]# locate 9898<br>
/var/run/postgresql/.s.PGSQL.<wbr>9898<br>
<br>
However, if I try to run some pcp command (e.g. pcp_node_info) without giving a host parameter, it seems to always want to use /tmp for the socket directory:<br>
<br>
[root@jp1]# pcp_node_info -U admin -n 0<br>
Password:<br>
ERROR: connection to socket &quot;/tmp/.s.PGSQL.9898&quot; failed with error &quot;No such file or directory&quot;<br>
<br>
If I provide the host parameter, it works fine, because I guess it&#39;s going over the network instead of using the socket file.<br>
<br>
[root@jp1 ]# pcp_node_info -U admin -h localhost -n 0<br>
Password:<br>
192.168.20.175 5433 2 1.000000 up<br>
<br>
Thanks,<br>
Jeremiah<br>
______________________________<wbr>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-general</a><br>
</blockquote></div><br></div>