<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 10 January 2014 10:01, Galen Johnson <span dir="ltr"><<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Feature request: It would be handy to have xymongrep handle more than just test lookups to save some scripting time.  I think it would be awesome if it was extended to allow you to reference a host and have it return the tests for just that host (especially when it may be spread across multiple entries) and allow an argument to get the CLIENT, NAME or other modifier as needed.<br>

</blockquote><div><br></div><div>Does this help:</div><div><br></div><div><font face="courier new, monospace">$ $XYMON $XYMSRV 'hostinfo host=^hostname'</font></div><div><div><font face="courier new, monospace"><a href="http://hostname.example.com">hostname.example.com</a>|192.168.67.101|testip|delayred=dns:15,conn:15|delayyellow=dns:10,conn:10|dns=SOA:<a href="http://example.com">example.com</a>|TRENDS:*,vmstat:vmstat\pvmstat3</font></div>

</div><div><br></div><div><br></div><div>From the "xymon" man page:</div><div><br></div><div><div><font face="courier new, monospace">       hostinfo [CRITERIA]</font></div><div><font face="courier new, monospace">              Retrieves the current configuration of a  host  (i.e.</font></div>

<div><font face="courier new, monospace">              the  hosts.cfg(5) definition). CRITERIA selects which</font></div><div><font face="courier new, monospace">              host(s) to report, and is identical to  the  CRITERIA</font></div>

<div><font face="courier new, monospace">              in the xymondboard command.</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">              The  response  is one line for each host that matches</font></div>

<div><font face="courier new, monospace">              the CRITERIA, or all hosts if no criteria  is  speci-</font></div><div><font face="courier new, monospace">              fied.  The  line  is  composed of a number of fields,</font></div>

<div><font face="courier new, monospace">              separated by a pipe-sign. The first two  fields  will</font></div><div><font face="courier new, monospace">              always  be  the  hostname  and  the  IP-address.  The</font></div>

<div><font face="courier new, monospace">              remaining fields - if any - are the hosts.cfg tags in</font></div><div><font face="courier new, monospace">              no particular order.</font></div><div><br></div>

<div>I like this one because a client can query its own configuration remotely, or the test and configuration functions of the Xymon server can (potentially) be distributed.</div><div><br></div><div>J</div></div><div><br>

</div></div></div></div>