title: Check Gearman Worker status on particular machine
body: <p>I am running <a href="http://gearman.org/" rel="nofollow noreferrer">Gearman server</a> along with <a href="https://github.com/brianlmoon/GearmanManager" rel="nofollow noreferrer">Gearman Manager</a>, with their PHP interface. the setup is as shown below. The Gearman server could be either on one of the two machines or on a third machine.</p>
  
  <p><a href="https://i.stack.imgur.com/7NWbJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7NWbJ.png" alt="enter image description here"></a></p>
  
  <p>For my implemnetation, I need to be able to tell from one worker if another worker on the same machine is busy or free.
  e.g. I should be able to tell if Worker 2 on machine 1 is free from Worker 1 on machine 1. Can that be done either with the PHP APIs or the telnet interface? </p>
  
  <h1>Possible Solution</h1>
  
  <p>On the Telnet interface the 'WORKERS' command gives you a list of all the workers attached to the server along with their ips. I believe I can use that to do my task. I found a PHP <a href="https://github.com/preillyme/php/blob/master/GearmanTelnet.php" rel="nofollow noreferrer">script</a> to get this information using telnet.</p>