<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Whoa! pcp_watchdog_info seems to have changed a lot in 3.5...<div class="">The documentation looks completely different than what i expected to see</div><div class=""><div class="">
<div id="signature" class="">I'm assuming this is the new output from 3.5:</div><div id="signature" class=""><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.pgpool.net/docs/latest/pgpool-en.html#pcp_watchdog_info" class="">http://www.pgpool.net/docs/latest/pgpool-en.html#pcp_watchdog_info</a></div><div id="signature" class=""><br class=""></div><div id="signature" class="">I hope that old format can still be used as I call pcp_watchdog_info in my nagios and wrapper scripts...</div><div id="signature" class=""><br class=""></div><div id="signature" class="">In 3.4.x, the node that is holding the virtual ip returns a status code of "3"</div><div id="signature" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>example:</div></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><div id="signature" class="">pcp_watchdog_info 10 &lt;virtual-ip-hostname&gt; 9898 postgres &lt;password&gt;</div></div></div><div id="signature" class="">cara0 5432 9000 3</div></blockquote><span class="Apple-tab-span" style="white-space:pre">        </span>or<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><div id="signature" class="">pcp_watchdog_info 10 &lt;virtual-ip-hostname&gt; 9898 postgres &lt;password&gt; 0</div></div><div id="signature" class="">cara1 5432 9000 2</div></div><div id="signature" class=""><br class=""></div></blockquote>The result is in the following order:<br class=""><br class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• hostname<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• port number for pgpool-II<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• port number for watchdog<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• watchdog Status<br class=""></div><div class=""><br class=""></div>Status is represented by a digit from [1 to 4]:<br class=""><br class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>1.&nbsp;watchdog is not started<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>2.&nbsp;Standby: not holding the virtual IP<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>3.&nbsp;Active: holding the virtual IP<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>4.&nbsp;Down</div><div class=""><div class=""><div class=""><div id="signature" class=""><br class=""></div><div id="signature" class="">Hope that helps!</div><div id="signature" class=""><br class=""></div></div><div class=""><div id="signature" class="">Cheers,<br class="">Gervais<br class=""><br class=""><br class=""></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Feb 9, 2016, at 3:28 PM, Travis Kirstine &lt;<a href="mailto:tkirstine@firstbasesolutions.com" class="">tkirstine@firstbasesolutions.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">Is there a way to determine the pgpool node status when running in watchdog mode or which pgpool node is using the virtual ip?</div><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">thanks<br class=""></div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">pgpool-general mailing list</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""><a href="mailto:pgpool-general@pgpool.net" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">pgpool-general@pgpool.net</a><br style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""><a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class="">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""></div></blockquote></div><br class=""></div></div></body></html>