<div dir="ltr">Even with fresher eyes, I'm not seeing anything obvious...I'm fairly certain the issue is in the headfoot.c code...possibly in the fetch_board or wanted function.<br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, Feb 5, 2014 at 1:34 AM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-size:12pt;margin:0;font-family:Calibri,Arial,Helvetica,sans-serif">
here's a unified diff that will actually apply...it's late...
<div><br>
</div>
<div>=G=</div>
<div><br>
<div dir="ltr" style="color:rgb(40,40,40)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Galen Johnson<br>
<b>Sent:</b> Wednesday, February 5, 2014 1:14 AM<br>
<b>To:</b> Jeremy Laidman<br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> RE: [Xymon] Enable/disable by class</font>
<div> </div>
</div><div><div class="h5">
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:#000000;margin:0">
Thanks, Jeremy...I took a stab at it but I'm no developer (just a lowly sys admin).  I have to be missing something.  The attached patch is what I attempted.  It doesn't appear to break existing functionality but if you actually attempt to use the class filter,
 it fails.  I can't get any useful output to figure out what I've missed.  I suspect it has to do with your comment about fetch_board since I really don't understand what you're saying and the code itself doesn't seem to be anything obvious for how it's handling
 the other XMH types.  Note, the patch was made against 4.3.15.  It does compile cleanly.
<div><br>
</div>
<div>Any assistance here would be appreciated.<br>
<div><br>
</div>
<div>=G=</div>
<div><br>
<div style="color:rgb(40,40,40)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Jeremy Laidman <<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>><br>
<b>Sent:</b> Tuesday, February 4, 2014 6:51 PM<br>
<b>To:</b> Galen Johnson<br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] Enable/disable by class</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On 5 February 2014 08:49, Galen Johnson <span dir="ltr">
<<a href="mailto:Galen.Johnson@sas.com" title="mailto:Galen.Johnson@sas.com
Ctrl+Click to follow link" 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">
<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-size:12pt;margin:0px;font-family:Calibri,Arial,Helvetica,sans-serif">
Pretty sure this isn't currently possible but what would it take to have the enable/disable script to allow en/disabling by class?  Or even just being able to select the set of hosts based on class? </div>
</div>
</blockquote>
<div><br>
</div>
<div>Interesting idea.  You could enhance maint_form to include the option, possibly in the "Filter hostlist" section, and adjust enadis.c to process it.  The host list is populated from a xymondboard search, so you could use anything that that returns, such
 as XMH_NET, XMH_OS, XMH_DGNAME (group name) or XMH_PAGENAME, and filter based on that.  What you're looking for is XMH_CLASS.</div>
<div><br>
</div>
<div>The data for matching is retrieved by a call to fetch_board() (in lib/headfoot.c), which uses this xymondboard search: "xymondboard fields=hostname,testname,disabletime,dismsg".  You'd have to add on "XMH_CLASS" to that, and then adjust the parsing code
 to handle and store the class string to be matched against.  The actual filtering is also done in lib/headfoot.c, in the function wanted_host(), so you'd need to add a bit of code to compare the host class against the filter string.</div>

<div><br>
</div>
<div>Cheers</div>
<div>Jeremy</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>